I have MapActivityone that contains MapViewwith some customizable controls, status information and ItemizedOverlayconsisting of some locations that I draw using the default approach (using populate(), super.draw()and createItem()) and some lines that I draw in the overridden method draw().
So, when the action is paused, I have to save:
- Some status information
- ItemizedOverlay
- [Perhaps more overlays in the future.]
I save status information as usual by putting them in a kit. I am thinking of doing the same with Overlays, implementing Parcelablein each of OverlayItemsand so, but I do not know if there is a better way to maintain the full state MapViews.
The information depends on the remote requests, which I do not want to repeat every time the action is paused.
Any recommendation?
source
share