I have two xml layout files, one for each activity, I create the maps
like:

MapView myMap = (MapView) findViewById(R.id.map);
and...
MapView myMap = (MapView) findViewById(R.id.mapTwo);

Yet, even though they have different id's they control each other...

I shouldnt need to save the state of each map should I?

On Dec 7, 11:32 pm, David C <[EMAIL PROTECTED]> wrote:
> Sounds like your maps share some common underlying resource. Not sure
> if that would be a defect or by design. Perhaps you can manually call
> onSaveInstanceState() and onRestoreInstanceState() to save / restore
> the respective maps state as needed?
>
> http://code.google.com/android/reference/com/google/android/maps/MapV...)
>
> On Dec 7, 2:41 pm, mscwd01 <[EMAIL PROTECTED]> wrote:
>
> > Anyone? I cant work out what is causing this...
>
> > On Dec 7, 5:16 pm, mscwd01 <[EMAIL PROTECTED]> wrote:
>
> > > I have a weird issue, which is probably easily solvable - but the
> > > cause is alluding me.
>
> > > I have two activities, one is created as an intent from the first
> > > activity. Each activity features a MapView.
>
> > > My problem is that if I move the first map (i.e. navigate to a
> > > paricular city) the second map, when viewed, has also moved to display
> > > the same place I navigated to in the first map. Reversly, if I move
> > > the second map to another place when I go back to the first map, this
> > > too, has changed to display the same location I navigated to on the
> > > second map... confused? ;)
>
> > > Basically I have two MapViews with different id values but they act as
> > > if they are the same map. I need two distinct, individual maps that do
> > > not control one another. Am I missing something obvious or do I have
> > > to add something to stop them doing this?
>
> > > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to