views:

164

answers:

1

Is there a way to display a MapView without extending MapActivity? I have other Activity class which I'm extending and I would prefer not to change that... I've seen that you can inflate using MapActivity, but didn't find any spec/examples on how to do it.

+1  A: 

Is there a way to display a MapView without extending MapActivity?

Not that I am aware of.

I could extend my class with MapActivity, but that would mean all my activities would extend it

Then you need to refactor your code, such that your activities do not all inherit from your own base class. Inheritance is not a very flexible OO technique, particularly in Java.

CommonsWare