Take the 2-minute tour ×

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.

share|improve this question
There is a similar question here: stackoverflow.com/q/5494307/422931 –  gulbrandr Aug 16 '11 at 8:13
add comment

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...

share|improve this answer
add comment
up vote 2 down vote accepted

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.

share|improve this answer
add comment

Your Answer


