We help IT Professionals succeed at work.

How to write an Android app that finds my location in google maps?

Tolgar
Tolgar asked
on
Hi,
I would like to write an Android application that finds my location when I click a virtual button on the screen.

Can you please let me know in detail how to write this code?

Note: I only need the source code information. I can take care of the rest (setting up Eclipse, Anroid SDK and building the app and deploying it).


Thanks,
Comment
Watch Question

Technical Lead
Commented:
Hi  Tolgar,

From the below link you can find demos to find the current location...

http://www.firstdroid.com/2010/04/29/android-development-using-gps-to-get-current-location-2/

http://blogoscoped.com/archive/2008-12-15-n14.html


In this android developer docs you can find the best way to implement location based applications....

http://developer.android.com/guide/topics/location/obtaining-user-location.html
Commented:
Here is interesting explanation, link
Google Maps is one of the many applications bundled with the Android platform. In addition to simply using the Maps application, you can also embed it into your own applications and make it do some very cool things. In this article, I will show you how to use Google Maps in your Android applications and how to programmatically perform the following

    Change the views of Google Maps
    Obtain the latitude and longitude of locations in Google Maps
    Perform geocoding and reverse geocoding
    Add markers to Google Maps


http://mobiforge.com/developing/story/using-google-maps-android
http://www.javacodegeeks.com/2011/02/android-google-maps-tutorial.html

Explore More ContentExplore courses, solutions, and other research materials related to this topic.