Android 启动MapActivity时出现问题
当我尝试从HelloLogleMaps教程启动相同的MapActivity时,我的应用程序强制关闭。我从我的主要活动开始,这只是一个列表:Android 启动MapActivity时出现问题,android,Android,当我尝试从HelloLogleMaps教程启动相同的MapActivity时,我的应用程序强制关闭。我从我的主要活动开始,这只是一个列表: @Override protected void onListItemClick(ListView l, View v, int position, long id) { super.onListItemClick(l, v, position, id); Intent i = new Intent(this, He
@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
super.onListItemClick(l, v, position, id);
Intent i = new Intent(this, HelloGoogleMaps.class);
startActivity(i);
}
HelloLogleMaps本身工作正常,类在我的清单中。我试图用调试器跟踪问题,但在创建意图时,调试器在某处崩溃。有什么想法吗
谢谢。对不起,我想好了。我把头发拔了很长一段时间,然后在我贴出这个问题的几分钟后就想出来了 我忘了放
<uses-library android:name="com.google.android.maps" />
在我的清单中。此方法是活动子类的一部分吗?您能否显示此方法所属的更多活动?