图形页面没有MapActivity图形、页面、MapActivity

2023-09-04 09:46:25 作者:血.月蔷薇...

我写这个Android应用程序在那里我有很多的活动,扩展了活动类。我还需要使用图形页面显示地图以及屏幕一个ListView因为我有它扩展了活动类的基类(类似的出租屋里列表,其中的房屋使用引脚在地图上显示)的活动,所有的其他活动扩展该基类。只有那些具有地图上特定的屏幕需要扩展MapActivity类。当我尝试这样做,我抛出IllegalAccessError异常。

I am writing this android application where in I have many activities that extend the Activity class. I also need an activity that uses MapView to show the Map along with a ListView in the screen (similar to rental house list where the houses are shown using pins on the map) Since I have a base class which extends the Activity class, all the other activities extend that base class. Only that particular screen which has the map needs to extend the MapActivity class. When I try doing that I am thrown a IllegalAccessError Exception.

项目设置 - 安卓2.1 UPDATE1和GoogleAPI 2.1更新1两种抛出同样的异常。 应用程序为片剂。

Project setup - Android 2.1-update1 and GoogleAPI 2.1-update 1 both throw the same exception. The application is for a tablet.

我已经确定,我在清单中的条目。

I have made sure that I have the entry in the Manifest.

任何帮助将是非常美联社preciated。

Any help would be much appreciated.

推荐答案

终于来了谷歌地图API第2版。

Finally here comes the Google Maps API v2.

https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/MapFragment

他们听说过我们! :)

They have heard us! :)