Search code examples
androidgpslocationmanagerandroid-locationlocationlistener

how to get latitude & longitude from google location services in android


I've successfully implemented LocationListener and could get geo coordinates from GPS. Now I am looking to implement the same and get latitude, longitude from Google location services. is this different from getting location from GPS ? could not find enough info. Help please.


Solution

  • Also you could write a code which chooses the best provider to obtain the most correct location.

    Here is a very good tutorial at how to use Google Location Service API: http://www.vogella.com/articles/AndroidLocationAPI/article.html

    Another good information provider is Android's Developers Web Page: Location and Sensors