图形页面没有MapActivity [英] MapView without MapActivity

查看:112
本文介绍了图形页面没有MapActivity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写这个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.

<一个href="https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/MapFragment" rel="nofollow">https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/MapFragment

他们听说过我们! :)

They have heard us! :)

这篇关于图形页面没有MapActivity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆