Skip to main content

Posts

Showing posts with the label different views in googlemap

Displaying different views in google map

Displaying different views in google map In order to load Google map in your application, 1. Obtain Google map API key ( how to obtain google api key  ) 2. Add permission on your manifest file to access internet 3. Add uses library in your manifest file for accessing Google Map 4. Extends MapActivity in your class (instead of Activity) main.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:enabled = "true"          android:clickable = "true"          android:apiKey = "0G