I have a MapActivity
that contains a MapView
with some custom controls, state information, and an ItemizedOverlay
composed by some locations that I draw using the default approach (using populate()
, super.draw()
and createItem()
) and by some lines that I draw in the overrided draw()
method.
So, when the activity is paused, I have to save:
- Some state information
- The ItemizedOverlay
- [Maybe more Overlays in the future.]
I'm saving the state information as usual, putting them in the bundle. I'm thinking in doing the same with the Overlays
, implementing Parcelable
in each one of the OverlayItems
and so, but I don't know if there is a better way to store the complete state of the MapViews
.
The information depends on remote requests that I don't want to repeat each time the activity is paused.
Any recommendation?