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.
精彩评论