ANDROID-Google MAP V2

Part 1: Generating Map Key

1,Eclipse->Window->Preferences->Android->built->copy the debug key store.
2.Open cmd window then change directory to "C:\Program Files\Java\jre6\bin>"

3.  -list -alias androiddebugkey -keystore "C:\Users\yourusername\.android\debug.keystore" -storepass android -keypass android ->Enter

4.Finger print will be generate like as follows:-
   12:50:7F:C0:10:F0:A7:24:13:49:BF:42:76:76:38:83

5 Create new android key (See part 2)


Part 2: Creating New Android Key

  1. Start  google api console ( https://code.google.com/apis/console/ ).
  2. Click on left side API console
  3. Create new Android key >  One SHA1 certificate fingerprint  ( Part 1 explained )and package name of ur project (separated by a semicolon) per line. Example:45:B5:E4:6F:36:AD:0A:98:94:B4:02:66:2B:12:17:F2:56:26:A0:E0;com.example
  4. Create the Android key and copy to app manifest

Part 3:Application Manifest configuration

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.mcn"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="17" />
 
     <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true"/>
 
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uspermission>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />    

 
    <permission
        android:name="com.example.mapdemo.permission.MAPS_RECEIVE"
        android:protectionLevel="signature"/>
  <uses-permission android:name="com.example.mapdemo.permission.MAPS_RECEIVE"/>

<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>




    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
     
  <meta-data
  android:name="com.google.android.maps.v2.API_KEY"
 android:value="AIzaSyCTgiL99IA7DZLblHfscwXb0n0cFDkus1w"/>    // Android key created in PART 2

     
        <activity
            android:name="com.example.app.NAME"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
   
       <uses-library android:required="true" android:name="com.google.android.maps"></uses-library>

     
    </application>

</manifest>