I follow this link: Here
But when i run in my device. Can not show map. It's just show white screen with logo google at left.
Some body can help me please? Sorry because my english.
Create debugging API key and Release API key.
Step 1:
In Commend Prompt
Now locate to jdk in C drive(Considering for windows and assigning C drive)
C:\Program Files\Java\jdk1.7.0\bin>keytool -list -v -keystore E:\A.keystore -alias A
So it will create SHA-1 finger print.
A.keystore is an Keystore, for debugging this file found in C:\Users\User\.android file name is debug.keystore, for release you created the Keystore file.
Step 2
Go to google api console.
Generate new api key for android you have to used this SHA-1 and current playstore package name.
Put Api key into your map.
Related
I've tried V1 and V3, and both of them got me the same result: no map , no error , just grid.
I'm sure that I put the key.
Is the problem in the version. Should I use V3?
I don't find clear tutorials for V3 like V2 & V1. (Videos are the simplest way)
If V2 is still working, what do u think is the problem?
You should be using V2. and Your api key is most likely the culprit for this issue.
I've seen it multiple times. Verify your api key is included correctly and is the right api key to use with your app.
The easiest way to get started using Google Maps API v2 is to generate a debug key using the debug keystore. On Windows the debug keystore is called debug.keystore and should be located in the following directory:
C:\Users\your_user_name\.android
Once you locate the debug keystore get the SHA1 by entering the following command in the command prompt:
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
Use this SHA1 to generate your API key and you should be able to finally see the map.
More detailed information about creating a debug and release API key can be found here.
I'm stuck in this issue, when i run my project in eclipse it shows map correct, but when i upload it to Google play store and when i install it in my device , it shows the blank map,
I don't know what is a problem my map key is correct, package name is correct, i also generate new map key and try, but it also doesn't work. I don't know where is the issue.
Please follow the check-list :
1) Sign the app with new .keystore.
2) SHA1 of new .keystore should be used.
3) Map key should be made using this SHA1.
4) If new Google account is used, then make sure Android Maps V2 services is turned on for that account.
As this type of issue was already raised and there was the solutions
Google Map Android API v2 can't display map in play store application
This problem is because of map api key.
You need to sign your app and find keystore for signed app.
Right click on project
Android Tools->Export Signed application pachage->next -> create new keystore
then use this new keysore to find new SHA1
Now find new API key for your app.
And replace the old map API key with this in manifest.
Next time whenever you want new signed app just use this keystore no need to create new again.
Make sure you update the SHA-1 in the play store from the location
Select your App --> App Integrity --> App signing key certificate --> SHA-1 certificate fingerprint.
Paste it into Release Key along with the app package name.
You need to do the following things to get your Maps Visible for both Debug Mode and release mode
-1 Add debug key to package combination at Google API console
-2 Add release key to page combination at Google API Console
Note : you need to add at lease 2 combination to get your maps visible when you are testing and when you generate *.apk file.
What you are missing right now is not adding the release key to application package combination to API console add this and after that do the following:
replace your debug map key with release key and generate your *.apk and install aplication to your device you will get your maps
there are several Tutorial available on net i would to suggest you the following one
Google Maps
To Generate the Release key do the following steps
Open CMD (in Windows) terminal (in Linux?MAC os) find the path to your jdk dir and then to bin like following:
C:\path-to-jdk\jdk1.7.0_07\bin>keytool -v -list -alias tt -keystore path-to-keystore -storepass password -keypass passowrd
for me the path is following for Jdk/bin and that for key store
C:\Program Files\Java\jdk1.7.0_07\bin>keytool -v -list -alias tt -keystore D:\ke
yStore -storepass password -keypass password
you need to give the following things of your own
-1 path to jdk
-2 path to keystore
-3 keystore passoword
-4 keypass password
Also look http://android-er.blogspot.in/2012/12/displaying-sha1-certificate-fingerprint.html for more information
I have always used the Google Maps API page to get the API-key also for the debug.keystore file so I could view the maps also in the emulator during test of the app. Now to get the API Key you have to go in Google Api console and create a new project. Is there a way to get API KEY for debug.keystore without create another clone project with different package?
Just search your debug.keystore (in linux is located on ~/.android) and add it to your current key. To add it, do it as you will do it with a normal keystore getting the SHA1 fingerprint with:
keytool -list -v -keystore debug.keystore
You can add several keystores to the same key, just remind to have one fingerprint per line.
When i am exporting apk the google map does not shown in my application. I need to put production key for exporting apk. I don't have any idea about how to get production key. If any one knows answer just share with me. Pls, give me a step by step solution. I already tried with below link.
http://developer.android.com/tools/publishing/app-signing.html
Generally there are two keys debug key and release key. while signing app, you want to use release key. For that you want to compare that with signed apk
Step 1:
Say for example your apk name is A and you are signing and creating a keystore for A.apk ie A.keystore will be created in some drive location.Let's consider it in E drive.
step 2:
Now locate to jdk in C drive(Considering for windows and assigning C drive)
C:\Program Files\Java\jdk1.7.0\bin>keytool -list -v -keystore E:\A.keystore -alias A
So it will create SHA-1 fingure print
copy and paste that in google map console, it wll generate a key.use it in maps.
You didn't specify which version of Google Maps you want to use. Note that Google stopped giving away keys for the first maps version, so you'll need to use Maps V2 (or API V3).
I need to generate a new API key for my android application. But when I follow the steps on http://code.google.com/android/add-ons/google-apis/mapkey.html it always gives me the same key. I think there is something wrong with my old key. How can I get a different and new one?
Any help will be appreciated.
Creating API key for MAP
For debug mode:
1.in cmd direct the path to C:\Program Files\Java\jdk1.7.0_07\bin>
2.paste the following keytool.exe -list -alias androiddebugkey -keystore "c:\users\pradeep.android\debug.keystore" -storepass android -keypass android
3.copy the MD5 fingerprint and go to the link https://developers.google.com/maps/documentation/android/v1/maps-api-signup , copy the fingerprint to the box and check the check box hit the button..
4.Thats it API key for debug mode was generated.
5.Copy the AP key in the XML file where u have to give api key and run the app.
For Release mode:
1.Generate a keystore using eclipse
i.Right click the project and android tools-> Export signed application package -> hit next and create a new keystore( Choose a location to store it and don't forget the location . its important).
ii.choose a location and keystore name and password,press next, and give alias name and password for that ,peroid and name and choose the destination file where to store the .apk file and press finish.
2.follow the same steps which for the debug mode . the only difference is in the second step that the path we will enter should be the above keystore path(replace this path c:\users\pradeep.android\debug.keystore to the created path). thats it.
3.do the other steps as follows. over.....
load the signed apk file to your android device ,and check the map part
Did you try using a newly generated key? If the key signature is different than the existing one, it should give you a different API key.
As far as i know API keys follow the 1 key per domain rule.
Please go through the links below, maybe they will help.
http://drupal.org/node/183021
and http://drupal.org/project/keys