To the generation of the Google Map API,we first find out where is our java files are stored in ubuntu.In most cases the java files should be in the File System.
Here giving commands to get the Google API using terminal.
:~$ cd /
:~$ cd user
:~$ cd lib
:~$ cd jvm
:~$ cd java-6-openjdk
:~$ cd bin
then we want to get the keystore.To get the android default debug keystore:
eclipse->windows->preferences->Android ->Build, then copy the default debug keystore.
eg: /home/anna/.android/debug.keystore \
:~$ keytool -list -alias androiddebugkey \-keystore /home/anna/.android/debug.keystore \
> -storepass android -keypass android
Then we will get an MD5 encrypted key.Copy that key,example(36:EF:BD:0C:1B:7F:7B:06:F9:34:90:A7:8E:83:34:28).
Then take the following link: https://developers.google.com/android/maps-api-signup
Then agree the teams and conditions to generate key.
then copy the given example xml layout to your application.
Here giving commands to get the Google API using terminal.
:~$ cd /
:~$ cd user
:~$ cd lib
:~$ cd jvm
:~$ cd java-6-openjdk
:~$ cd bin
then we want to get the keystore.To get the android default debug keystore:
eclipse->windows->preferences->Android ->Build, then copy the default debug keystore.
eg: /home/anna/.android/debug.keystore \
:~$ keytool -list -alias androiddebugkey \-keystore /home/anna/.android/debug.keystore \
> -storepass android -keypass android
Then we will get an MD5 encrypted key.Copy that key,example(36:EF:BD:0C:1B:7F:7B:06:F9:34:90:A7:8E:83:34:28).
Then take the following link: https://developers.google.com/android/maps-api-signup
Then agree the teams and conditions to generate key.
then copy the given example xml layout to your application.
<com.google.android.maps.MapView android:layout_width="fill_parent" android:layout_height="fill_parent" android:apiKey="0jG4xjFXTdrDqmRbIPau0v1DZnjdpNQ4Lu07qqg" />
Nice....Thanks for your tutorial.....
ReplyDeleteBut I have problem, my Fingerprint code is (SHA1) not (MD5), and when I will run in https://developers.google.com/android/maps-api-signup, the result is not valid,
Could you help me....Thanks
This comment has been removed by the author.
ReplyDeleteThank u for your tutorial. It is generated fine!!!
ReplyDeletenot so much good, as i cant find out command prompt in ubuntu, so how can i generate my api code?
ReplyDelete