how to get android:apikey - android

How to get the android:apikey for googlemap com.google.android.maps.MapView. i searched it but could not understand any of the articles. can someone please explain me how to get that key. thankyou

in command prompt set your jdk path ...
like,
C:/program files/java/jdk6/bin>
type
keytool -v -list -alias androiddebugkey -keystore "C:\Documents and
Settings\Gaurang.android\debug.keystore"
and check you debug.keystore path and hit as a below...
C:/program files/java/jdk6/bin >keytool -v -list -alias androiddebugkey
-keystore "C:\Documents and Settings\Samir\ .android\debug.keystore"
and android as a password
then copy MD5 Figerprint and add go to below link...
https://developers.google.com/android/maps-api-signup
Get-Map-Apikey

go to jdk path using command prompt :
cd java\jdk1.6.0.21\bin
then execute keytool command using this :
keytool.exe -list -keystore "c:\Documents and Settings\admin\.android\debug.keystore"
then android as password: and press enter , you ll get your api key

Basic Requirement is to have android-sdk and java. You will be needed debug.keystore.
Now the Following is a website which will give you A to Z info..
http://mobiforge.com/developing/story/using-google-maps-android.
You can usually find the Keytool.exe from the "C:\Program
Files\Java\YOUR VERSION\bin" folder
Keytool.exe will help you in Generating MD5 fingerprint.

signup link for android map api key 'https://developers.google.com/android/maps-api-signup' is not working.
showing 'Could not connect to remote server' in iframe above the fotter of the page.did any one worked on it recently?

Related

Android. Firebase: Keystore file does not exist: ~/.android/debug.keystore

Windows 10
Firebase
I want to create Firebase project.
So I use this official documentaion:
Manually add Firebase
Steps:
Go to Firebase consle
Click create new project
Create new applications
Select Android
Input name: com.myproject
I need to input debug signing certificate SHA-1:
Here screen:
So I open shell and input:
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
But I get error:
keytool -exportcert -list -v -alias androiddebugkey -keystore ~/.android/debug.keystore
keytool error: java.lang.Exception: Keystore file does not exist: ~/.android/debug.keystore
java.lang.Exception: Keystore file does not exist: ~/.android/debug.keystore
at sun.security.tools.keytool.Main.doCommands(Main.java:745)
at sun.security.tools.keytool.Main.run(Main.java:343)
at sun.security.tools.keytool.Main.main(Main.java:336)
What is wrong?
In my home folder no file "debug.keystore". So how I can get hash?
Android Studio will do the SHA key generating part to save your time and effort.
You've to find Gradle Project tab somewhere at the right edge of your Android studio. Open it up.
Under your project(root)>Tasks>android, find something called signingReport and run it by double clicking on it.
You will find your SHA1 and MD5 certificates in the Run section, below.
Copy the SHA1 and use it. Otherwise, debug signing certificate SHA-1 is optional in this case, so you can continue without this.
maybe you can try this, go to the right side of your android studio and then double click the signingReport
and you will find the SHA-1 here,
hope this help your problem
Have you tried out this guide as suggested in this solution?
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Edited:
A rather extensive guide on the same topic have been made here. I've personally succeeded with this on Win10 in Android Studio.

Android Map Certifivate Fingerprint. (MD5):

So I am trying to do a map application on android.
I wrote this code on my mac os terminal to create Certificate fingerprint
keytool -list -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android
code generate:
(MD5): C9:C1:40:66:40:07:D0:8C:FF:44:A3:7D:F4:73:57:4B
I don't know why but code generate MD5 not SHA-1
and I understand I need 20 character finger print but my terminal generated 16 character.
if my fingerprint is wrong how can I create true one. If its true than how can I create Api key for map from developer.google.com
If do you have any clue please help. Thanks
Add -v in the end of the keytool command that you gave. It might look something like this.
keytool -list -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android -v
UPDATE:
I answered somewhat related problem like this before, you might get an idea from it if my answer is not enough for you. :)
How to/Error in declaring google-play-services-component
Install plug in eclipse
http://keytool.sourceforge.net/update
Go to eclipse -> Help -> Install new software paste above link
and install it
and then open keytool in ecipse open keystore option will be provided
it will give you SHA1 finger print.
(keytool window will be opened beside errorlog and logcat
click drop down and then androiddebugkey click it you will have all the info there)

Obtain sha1 key

In android I have try to obtain a google apikey version 2 ,
I tried to obtain the sha 1 key as follows keytool -list -v -keystore "C:\Users\sapu.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android but in command prompt keytool is not recogenize as internal or external command how can I overcome this
Probably this happens because the Java home is not in your Path. Add the full path to the jdk folder to the Path variable and you'll be fine.
Where is the command keytool stored? Is it in your path? If not, then you need to give the full path.
More instructions can be found at this earlier question

Access denied when obtaining android md5 fingerprint

When obtaining my md5 fingerprint for an Android app I have encountered problems when entering the keystore command on both the cmd and jdk bin prompt:
keystore is an invalid command
In the cmd I got this error,which I researched and found that it means my keystore path is incorrect.So I double checked my path and it was correct and found a tutorial explaining to enter the same command through the jdk bin cmd prompt:
Access denied
key store address is:
C:\Users\Brian\.android\debug.keystore
The command I'm using is as follows:
keytool -list -alias androiddebugkey -keystore C:\Users\Brian\.android\debug.keystore -storepass android -keypass android
What are you trying to obtain.
Maby this answer can help
https://stackoverflow.com/a/14042038/928591
I see what your problem is, you are trying to obtain a debug key but you specify a path.
but try to just copy paste this commnad without modifying it.
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
it worked for me to obtain my debug key for a facebook app.
I could be wrong about this but I think this should work
Edit
Did some digging, the keytool comes with the java jdk. like commonsware answerd here
so do you have the JDK or the SDK installed is my next question.
Edit (another)
to answer you question in the comment take a look here.
http://docs.oracle.com/javase/tutorial/essential/environment/paths.html
finale update
this is the last update for this particular answer.
Browse to the JDK folder and execute the command from that directory.
kind regards

Error in cmd prompt for getting MD5 fingerprint

I want to get MD5 finger print in Android for google map, but when I try to run it in a command window it shows the message below. How do I overcome this problem?
Command Line:
C:\>C:\Program Files\Java\jre6\bin>keytool.exe -list -alias androiddebugkey -key
store C:\Documents and Settings\Saurabh\.android\debug.keystore -storepass andro
id -keypass android
Error:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Use
C:>cd C:\Program Files\Java\jre6\bin
first and then from bin, execute the ketool.exe
the command for it is:
keytool -list -alias androiddebugkey -key store C:\Documents and Settings\Saurabh.android\debug.keystore -storepass andro id -keypass android
use this simple command
keytool -list -keystore "C:\Documents and Settings\Saurabh.android\debug.keystore"..
Thats it.. Enter twice..
Check whether the path C:\Documents and Settings\Saurabh contains a folder .android. If not, choose the path that contains .android ( if you dont know where, then if you are using eclipse, go to Window->Preferences->Android->Build and check Default debug keystore path and give that instead of C:\Documents and Settings\Saurabh.android\debug.keystore
running the following code should get you the MD5 fingerprint if you are giving the right debug keystore path... note that there is a '\' before .android which you had missed in the previous posts
C:\Program Files\Java\jre6\bin>keytool -list -alias androiddebugkey -keystore C:\Documents and Settings\Saurabh.android\debug.keystore -storepass andro id -keypass android

Categories

Resources