How to extend activity from MapActivity in Android using MOTODEV?

耗尽温柔 提交于 2019-12-24 06:40:42

问题


I am using MotoDev Studio for Android Development and I am trying to Extend my Activity from MapActivity. But MotoDev does not Allow me to do this.

Can any One Tell me why this is so? On the other hand in Eclipse this is possible for me using Google Api. Plz Help me out.


回答1:


MOTODEV Studio doesn't prevent you from extending classes. It's just Eclipse + ADT and some other plugins that we created. I would advise following the direction that @PeterKnego mentioned. Just add the external library in MOTODEV Studio just as you would in Eclipse, using "Properties->Java Build Path".




回答2:


I don't use MotoDev, so I can only guess what the problem might be:

MapActivity is not a part of the Android SDK - it's a part of an external library: http://code.google.com/android/add-ons/google-apis/maps-overview.html

You should include this library in your project.

Most probably the official SDK & plugin does that automatically, while MotoDev does not.



来源:https://stackoverflow.com/questions/9312465/how-to-extend-activity-from-mapactivity-in-android-using-motodev

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!