[android-developers] How to get Location values..?

2010-09-14 Thread Rubin
Hi

   I am new to android development, My new requirement is find
Latitude and longitude for current position where device is present.
how I get this.









Cheers,
Rubin

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] How to get Location values..?

2010-09-14 Thread Mark Murphy
On Mon, Sep 13, 2010 at 11:16 PM, Rubin jeff.rubi...@gmail.com wrote:
           I am new to android development, My new requirement is find
 Latitude and longitude for current position where device is present.
 how I get this.

Use LocationManager. Register for location updates. Process the
updates when they come in using your supplied LocationListener.
Unregister for updates when you are done.

http://github.com/commonsguy/cw-android/tree/master/Service/WeatherPlus/

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en