Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Android and the fly likes How to run Google maps using self signed certificate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to run Google maps using self signed certificate" Watch "How to run Google maps using self signed certificate" New topic
Author

How to run Google maps using self signed certificate

Charles Joseph
Greenhorn

Joined: Aug 19, 2009
Posts: 6
Hi all,

Google maps works fine using debug certificate provided by Android build tools. I tried to run self signed certificate for maps api key in Android Dev phone, it is not working.

Could anyone help me?
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

  • You will have to generate a MD5 print for the key you are using to sign your apk files.
  • Using this MD5 print you will have to generate a new Map Key and use it in your project.


  • to generate MD5 print for your key use Keytool utility bundled with JDK:


    Copy paste this MD5 print and sign up with Google Maps service to get a new Map Key.
    http://code.google.com/intl/ko/android/maps-api-signup.html

    Make changes in your code(whereever you need to use this key).

    If you dont know how to create a new Keystore refer this tutorial
    For more detail, refer official documentation

    Hope that helps...


    [List of FAQs] | [Android FAQ] | [Samuh Varta]
    Charles Joseph
    Greenhorn

    Joined: Aug 19, 2009
    Posts: 6
    I tried as in the document.

    I have done the following to create keystore



    then



    to get certificate fingerprint after that i obtain maps api key using Google Maps service and paste

    the key in my application. But maps is not working. Should i follow some other steps for maps?.






    Monu Tripathi
    Rancher

    Joined: Oct 12, 2008
    Posts: 1369
        
        1

    Well, if you signed your application with the same key (for which you genenerated the MD5 print and thereby the Map Key), Google Maps should work.

    What happens when you launch your "Map Activity"?
    Depending on your network speed you might have to wait for the Maps to display.
    vina parmar
    Greenhorn

    Joined: Nov 09, 2009
    Posts: 22
    Hi Monu,

    I have problem in google maps.
    I have done all to get the google maps Api key and for keysore.

    I have use this to take MD5 fingerprint.


    Got the Maps Api key.

    I have set all the permission, including google library.

    After that then it will showing me google map with good picture.
    But after 4 times running the application it is not showing me pictures, it shows me only grids. Means my Google maps not displaying pictures now. See the attachment.
    I am doing since last 3 days but not get the success.

    What will be the problem?

    Thanks,
    vina



    [Thumbnail for device.png]

    vina parmar
    Greenhorn

    Joined: Nov 09, 2009
    Posts: 22
    Is there any one?
    Many developers getting same problem.

    here is another person who facing the same as my problem.

    Google Maps Problem

    Is it Android problem or other because MapsDemo working fine with my mapsApi key.

    Any one there??

    Akil Kumar
    Ranch Hand

    Joined: Jun 08, 2009
    Posts: 83
    vina parmar wrote:Hi Monu,

    I have problem in google maps.
    I have done all to get the google maps Api key and for keysore.

    I have use this to take MD5 fingerprint.


    Got the Maps Api key.

    I have set all the permission, including google library.

    After that then it will showing me google map with good picture.
    But after 4 times running the application it is not showing me pictures, it shows me only grids. Means my Google maps not displaying pictures now. See the attachment.
    I am doing since last 3 days but not get the success.

    What will be the problem?

    Thanks,
    vina




    I am not able to get the google API key. I am working on windows vista. I was able to locate the debug keystore in my machine. But how will I execute this step?

    Once you have located the keystore, use this Keytool command to get the MD5 fingerprint of the debug certificate:

    $ keytool -list -alias androiddebugkey \
    -keystore <path_to_debug_keystore>.keystore \
    -storepass android -keypass android

    Where will I execute the command to print the api key? Can someone please let me know the steps in vista?

    I am not able to use Google maps in my application.

    Thanks,
    Akila
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: How to run Google maps using self signed certificate