May
16
2012

Android Google Map Navigation with GPS

Demonstrates how to setup the app to get updates on device location using a GPS signal. Also shows how to simulate GPS data sent to the emulator from and Android Emulator.

6 Comments »

  • RaidenHeaven

    Thank you so much! It works Great!
    There is one thing though you have to use 1*E6 on getLatitude and Longgitude or you go from 37.422006 to 37
    like this:
    controller.setCenter(new GeoPoint((int) (location.getLatitude()*1E6),(­int) (location.getLongitude()*1E6))­);

    Comment | May 16, 2012
  • dar879me12

    Thankyou so much. Your tutorial was great help for me.

    P.S: You got very beautiful voice :).

    Comment | May 16, 2012
  • maxziman

    Think it has to do with your emulator. Create a new one in the AVD manager. Make sure to target to Google APIs.

    Hope it works!

    Comment | May 16, 2012
  • MET0306

    I managed to get the map to display thanks to your advice, but it just displays the default map. I did all the steps the same as on the video…but when I added onLocationChanged method, I got an error that I hadn’t added the unimplemented onLocationChanged method. This method implemented in the structure:
    public void onLocationChanged(android.location.Location location) {…
    I wasn’t able to change the text inside the brackets to Location location. Do you know why this happened?

    Comment | May 16, 2012
  • profgustin

    I believe you absolutely must use a Google API for the maps to work. Try changing the target to a Google API and see if it works.  It it does, then you at least know that it works with a Google API target.

    Comment | May 16, 2012
  • MET0306

    Great video. I’m trying to add a GPS map to an application I’m making. However, when I try to run the application on an emulator I get the error:

    [MatchmakerApp] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
    [MatchmakerApp] Please check logcat output for more details.
    [ MatchmakerApp] Launch canceled!
    I have installed the maps.jar file as my application was already set up for the android 2.2 built target as oppose to the Google API.
    Do you have any idea where I’m going wrong? Thanks

    Comment | May 16, 2012

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

© 2006-2011 Vietnamese GPS | Digital Mobile Map | www.streetmapmobile.com | www.j2megps.com | www.andgps.com