I want to use googleAPI. I have tried the following: 1)I have generated a googleAPI key using the keytool and the debug.keystore. 2) I have also generated another key using Myactivity.keystore.
Following these instructions, from fere and other sits: You'll have to do following things to get it working:
You'll have to generate a MD5 hash of your application debug key You'll have to provide that MD5 hash to Google while signing up for a map key Google will then give you a key that you can put in your mapview This is going to work in these steps:
Locate the android debug key in your system. it is found on the following locations depending on your operating system (This path will be useful):
Windows XP: C:\Documents and Settings\<user>\.android\debug.keystore
Mac OS X and Linux : ~/.android/debug.keystore (where ~ is the path of your home directory.
In a terminal, use the following keytool command to generate the MD5 Hash:
keytool -list -alias androiddebugkey -keystore <path_to_debug_keystore>.keystore -storepass android -keypass android
Copy the generated hash
Go to : code.google. com/android/maps-api-signup.html (you maybe required to login with your Google account)
Paste the above generated MD5 hash there, accept the Terms and Conditions and click on Generate button
You'll get the API key for your map. paste this in your
When you plan to release the app, generate a release key and repeat the same procedure with the release keys.
Although, all the above steps are exactly what the links contain, but this is a summary.
I have tried them both but non of them seems to work. I see only the grid ant in the logcat i get Couldn't get connection factory client
and through all the search I have done this is a problem with my api key. how should I know that my api key is correct?