how to get a fingerprint from my android device - android

I would like to get a fingerprint from my android device ?
I have done a research it gave me following command :
C:>keytool -list -alias androiddebugkey -keystore C:\Users\abc_username.android\debug
.keystore -storepass android -keypass android
I would not think the above command is my answer ? what does about command do ?

see this link, it explains obtaining Maps API key through MD5 fingerprint with debug .keystore of Android:
http://eagle.phys.utk.edu/guidry/android/apiKey.html

Please go through this
With the following command you dont generate Fingerprint (MD5 Fingerprint more specifically)
for you android device. You generate MD5 Fingerprint against keystore (C:\Users\abc_username.android\debug .keystore in your case) you are using for android development.
C:>keytool -list -alias androiddebugkey -keystore C:\Users\abc_username.android\debug .keystore -storepass android -keypass android
In Android this Fingerprint is useful to get Google Map api key which we can use in MapView.
If you change keystore, you will have to regenerate this fingerprint regarding to new keystore for getting api key from Google for MapView
About keytool
keytool is a key and certificate management utility. It enables users to administer their own public/private key pairs and associated certificates for use in self-authentication (where the user authenticates himself/herself to other users/services) or data integrity and authentication services, using digital signatures. It also allows users to cache the public keys (in the form of certificates) of their communicating peers.
Hope this will help you

Related

Cannot get SHA1 certificate fingerprint Android Studio [duplicate]

This question already has answers here:
How to get the SHA-1 fingerprint certificate in Android Studio for debug mode?
(47 answers)
Closed 7 years ago.
I'm very new in Android, i'm building an app what will uses the googleMaps API, before i can use it, i need SHA1 certificate fingerprint, i follow many tutorials to get SHA1 certificate fingerprint and this displayed on my commandPrompt:
(sorry i'm not allowed to post an image here) :
Lists entries in a keystore
options:
-rfc output in RFC style
-alias <alias> alias name of the entry to process
-keystore <keystore> keystore name
-storepass <arg> keystore password
and e.t.c...
after i go into bin folder inside java\jdk 7\
and ran this command:
eytool -list -v -keystore C:\Users\leon.android\debug.keystore -alias androiddebugkey -storepass android -keypass android
The easiest way to do this (for debugging) is to run the app in debug connected to Android Studio. Check the messages (logcat) in Android studio and you'll see a message, in red "Unable to connect Google Maps: Authorisation Failure" and then underneath that will be the exact string you need to copy into the Google API Console (SHA1 + app name). Copy, paste, wait a bit for Google to spread to all the servers and then try again.
Otherwise, you just need to run
keytool -list -v -keystore mystore.keystore
(No need for the other parameters) and it's the entry under SHA1 that you need.

Google API Key Access and Android App

It's my first time that i use Google API. I use it with my Android App by using the beta google java api client. To test my app in the emulator, i took an API Key access from my google account and all work well. But now, what is the procedure about this API Key access if i want share my app in Google Play ? Do I leave my same Key access in the code or in the app, do i must ask final user to register with his own key acces with his google account ? Thank you for answer.
This is simple steps that u need to follow instead of registering it in the site just register the key in Google play .Here is the link example to follow up also follow up with this SO chat u might get some idea click
You should go this path in terminal (cd Library/Android/sdk/platform-tools/) Mac os, after that you can run command below
Create Debug key
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
Create Release Key
keytool -list -v -keystore /Users/macbook16/Documents/AndroidProjects/natural-therapy-android/app/keystore.jks -alias myaliassample
Note : /Users/macbook16/Documents/AndroidProjects/natural-therapy-android/app/keystore.jks this path is my project .jks file path, therefore you should replace your project jks file path, And myaliassample is exampl alias, you should replace the command like of your alias

can not verify google api key- only grid showing- android

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?
Try This to get Correct API key:--
That is the exact path--
keytool -list -keystore "C:\Users\XYZ\.android\debug.keystore"
Total path for cmd prompt to get the MD5 fingureprint for the GoogleMap API Key***
D:\eclipse\jre\bin>keytool -list -keystore "C:\Users\XYZ\.android\debug.keystore"
MD5 fingurePrint will look like this--
3E:F4:D6:E6:93:4D:BB:B8:62:3A:A6:0F:E0:FC:4C:65
When u get the fingurePrint number afterthat to get the API Key use this link---
http://code.google.com/android/add-ons/google-apis/maps-api-signup.html
Then u will get API key of your system and can get the Map easily....

Map key generate issue on android

i get knowledge from http://mobiforge.com/developing/story/using-google-maps-android.
i get fingerprint key from my machine.
I use below command :
keytool.exe -list -alias androiddebugkey -keystore "D:\Android\Key Store\debug.keystore" -storepass android -keypass android
Certificate fingerprint (SHA1): FB:8E:56:83:06:C6:AA:39:56:A8:04:DD:0F:ED:3E:71:BD:8A:3A:4A
But when i put on google map api, it throws "The fingerprint you entered is not valid. Please press the Back button on your browser and enter a valid certificate fingerprint. "
If i give "FB:8E:56:83:06:C6:AA:39:56:A8:04:DD:0F:ED:3E:71" only google generate Map key. But its not woking on my device.
pls help me wtats the problem and how to generate map key.
With Windows 7 installed, keytool outputs by defaultSHA1 fingerprint, not MD5. Adding -v option allows to see MD5 as well.
list -alias androiddebugkey
keystore "C:\android\debug.keystore"
storepass android -keypass android
-v for verbose..
All the best

Android apikey Not Supported for Google Map

I got a fingerprint
73:F9:85:F8:14:56:4A:E7:D1:D4:31:6F:23:AA:4D:38:EB:16:5C:EE
but when i used to generate api Key using this link
http://code.google.com/android/maps-api-signup.html it shows
"The fingerprint you entered is not valid. Please press the Back
button on your browser and enter a valid certificate fingerprint".
If i omit last four Character and use
73:F9:85:F8:14:56:4A:E7:D1:D4:31:6F:23:AA:4D:38
it generate api key that not support to create Google map in android Application
Set Your java Path in Command Prompt And also set debug.keystore path.
C:\Program Files\Java\jdk1.7.0_02\bin >
keytool -v -list -alias androiddebugkey -keystore "C:\Users\UserName\.android\debug.keystore" -storepass android -keypass android
And use MD5 fingerprint .....
Super easy with Eclipse Keytool addon-tool
You can use the android.debug key for debugging or your own key for using it on a device.

Categories

Resources