Skip to main content

Posts

Showing posts from March, 2010

Use Google Map API with Android

To Use Google map API few things you have do Sign Up for Google Map API Get the MD5 from your local machine : $ keytool -list -keystore ~/.android/debug.keystore like Certificate fingerprint (MD5): 8E:EA:04:13:F2:A8:A6:E6:A3:A5:20:96:9E:0A:30:DB And enter the code here and generate the API code (Which looks like below image) and add code to res/layout/main.xml     <com.google.android.maps.MapView     android:id="@+id/myGMap"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:enabled="true"     android:clickable="true"     android:apiKey="0T3dTjk2jvhmuFEAdn4DjX08e3eEeA-IoYEnWag" /*Your API key here*/     /> Now geol.java extend the class MapActivity   instead of Activity gMapView = (MapView) findViewById(R.id.myGMap); gMapView.setSatellite(true); mc = gMapView.getController(); // Adding zoom controls to Map ZoomControls zoomControls = (ZoomControl