On Thu, Jan 13, 2011 at 9:51 PM, Ankur Avlani <[email protected]> wrote:
> How can I get Map in both the Activities. > > I hope you understood what I mean to say. > I do, I guess you're not understanding what *I* mean to say. You cannot have multiple MapActivities - so make one. Got it? OK, now, you already have two Activities. Well, refactor them and break out their functionality into two "MapMode" classes. Now stick those two "MapModes" into your one MapActivity, with some way to toggle between the two, such that they behave how they would if you did have two MapActivities to work with. Follow? The State and / or Strategy pattern are probably worth a look. ------------------------------------------------------------------------------------------------- TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] 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

