google maps (com.google.android.maps) вылетает приложение - PullRequest
0 голосов
/ 10 июня 2011

Я пытался работать с Google Maps в Android. Но приложение вылетает. (

Вот мой код xml:

<?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>

Я включил (после):

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

а также (после):

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

Я не могу найти ошибку.

1 Ответ

0 голосов
/ 10 июня 2011

Просто нужно расширить MapActivity вместо Activity.

...