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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With