Can I use MapView without the MapActivity extension?

Currently, in my project, I have a base abstract class from which all my actions expand, however, I recently discovered that in order to use MapView you need to make your activity extended with MapActivity. Since Java does not have multiple inheritance, I was wondering if there is a way to use MapView without having to recreate my project for my application.

Thanks in advance for your help!

Regards, celestialorb.

+6
java android inheritance android-activity map
source share
2 answers

The answer is no. Cannot use MapView without the MapActivity extension. As gulbrandr pointed out, there is a similar question here , it may be useful for those trying to do the same thing as me.

+2
source share
Good question. I'm interested in what others say. If the answer is no, you should check the OSMDroid project; what map i use for my application. It's nice to have source code to work with ...
+2
source share

All Articles