Android – How to obtain Google API key for Windows?
C:\Documents and Settings\.android\debug.keystore ( Windows XP ) C:\ Users \ .android \ debug.keystore (Windows 7 / Windows Vista)
C:Program FilesJavajdk1.6.0_25bin>keytool -list –alias androiddebugkey –keystore
Now navigate the path of keytool.exe in command prompt. keytool.exe is located inside Java –> JDK – > bin folder inside program files. In command prompt window write the following command
The
Androiddebugkey, Dec 4, 2011, PrivateKeyEntry,
Certificate fingerprint (MD5): BE:05:C8:F2:42:7A:97:37:78:EE:BD:4A:31:7D:A6:69
Copy the fingerprint. Now, load the page https://code.google.com/android/maps-api-signup.html in your browser. Enter your Certificate fingerprint and hit “Generate API key” button.
Now you will get Google API key
Here is an example xml layout to get you started on your way to mapping glory:
Android:layout_height=”fill_parent”>
Android:id=”@+id/mapview1″ Android:layout_width=”fill_parent” Android:layout_height=”fill_parent” Android:enabled=”true” Android:clickable=”true” Android:apiKey=”0ZzHJOolD-XzqDu5o4ZU5SBQo66sCis9eNTXd0g” />