开发者

google maps (com.google.android.maps) crashes application

I have been trying to work with google maps in android. B开发者_JAVA技巧ut the application crashes. :(

Here is my xml code:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
   <com.google.android.maps.MapView 
    android:id="@+id/mapView"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:apiKey="0E8T-qQndWDg8lEScymvQro3kJ1bGlSKLolDE3Q"
    />            
 </LinearLayout>

I have included (after ):

<uses-permission android:name="android.permission.INTERNET" />

and also(after ):

 <uses-library android:name="com.google.android.maps" />

I am unable to find any error.


Just need to extend MapActivity instead of Activity.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜