How to get SHA finger print to get my own google API key for my Android app of Codename one ?
333 views
Skip to first unread message
fromyo...@gmail.com
unread,
Jul 18, 2014, 10:33:26 AM7/18/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com
Hi , I planed to create an app for searching places around us I used the guide of Codename One demo, but to get my own Key for Android App I need SHA finger print or so according my referance in Google ( They posted One SHA1 certificate fingerprint and package name (separated by a semicolon) per line. Example:45:B5:E4:6F:36:AD:0A:98:94:B4:02:66:2B:12:17:F2:56:26:A0:E0;com.example
Kindly Assist me how to solve this problem in multiply ways if possible. And I'm using NetBeans With Codename One.
Sincerely S.A.Arulvannan
Shai Almog
unread,
Jul 18, 2014, 11:26:50 AM7/18/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com, fromyo...@gmail.com
Hi, just follow their instructions. They are identical between Codename One and native Android since this only applies to Android and your certificate. The keytool command line is part of the JDK which you should already have.
Diamond Mubaarak
unread,
Jul 18, 2014, 1:15:41 PM7/18/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to codenameone...@googlegroups.com, fromyo...@gmail.com
Right click on your project and choose property. Under "Categories" click on android
Click the "generate" button and fill the form to get your app signed and get the keystore.ks file. Take note of the Alias your give your app because you will need this later.
Click "browse" to locate the keystore file, Copy this file to a path similar to this "C:\Program Files\Java\jdk1.7.0_51\bin". Depending on your computer and the version of Java you are running.
Open "Command Prompt" as an administrator. Type "cd C:\Program Files\Java\jdk1.7.0_51\bin" or a similar path to the "bin" folder of your Java JDK. This also depends on your computer and the version of Java you are running.
Enter the following command "keytool -list -v -keystore keystore.ks -alias Your_Alias_Name"
Enter the password you use during the generation of the keystore file (Note the password doesn't change when you're typing, but the password is being read silently)
If everything goes well, Your SHA1 finger print should appear
Just in case you don't know how to copy this, Right click inside the Command Prompt and select "Mark". Starting from the beginning of the SHA1 code highlight to the end and press enter.
Paste this code to your Google API console along with your package name.
Package name can be found in your project properties. It should be shown when you open your project properties in Netbeans without clicking any tab or link.