Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use a MapView without having to extend MapActivity?

Currently in my design I've got a base abstract class that all of my activities extend from, however I discovered recently that in order to use a MapView you need to make your activity extend MapActivity. Since Java does not have multiple inheritance I was wondering if there is any way I can use a MapView without having to recreate my design for my application.

Thanks in advance for any help!

Regards, celestialorb.

like image 911
celestialorb Avatar asked Jul 27 '10 21:07

celestialorb


2 Answers

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

like image 143
I82Much Avatar answered Nov 06 '22 11:11

I82Much


The answer is no. It is not possible to utilize a MapView without extending MapActivity. As gulbrandr pointed out there is a similar question here, this may be of use for anyone attempting the same thing that I was.

like image 2
celestialorb Avatar answered Nov 06 '22 12:11

celestialorb