Dans le manifest :
dans la section application :
<uses-library android:name=« com.google.android.maps » />
dans la section manifest :
<uses-permission android:name=« android.permission.INTERNET » />
Pour une carte qui occupe toute la fenetre
<?xml version=« 1.0″ encoding=« utf-8″?>
<RelativeLayout xmlns:android=« http://schemas.android.com/apk/res/android »
android:id=« @+id/mainlayout »
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:clickable=« true »
android:apiKey=« Your Maps API Key »
/>
</RelativeLayout>
Suivez-nous !