ya i know it is the method in LocationManager. but how to use it that it
listen everytime a location change occur..
can u give a example here it will be very helpful.

On Tue, Oct 12, 2010 at 5:15 PM, Mark Murphy <mmur...@commonsware.com>wrote:

> On Tue, Oct 12, 2010 at 7:35 AM, A N K ! T <ankit.awasth...@gmail.com>
> wrote:
> > so should i send a broadcast from activity ..
>
> No.
>
> > but i want to send broadcast every time a gps location changed not only
> when
> > my app in background and i dont want to service running in background.
> > how to do it.
>
> As I wrote in my previous message:
>
> "Use requestLocationUpdates() to arrange to have location updates
> delivered to your BroadcastReceiver."
>
> requestLocationUpdates() is a method on LocationManager.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android 2.2 Programming Books: http://commonsware.com/books
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 

 A N K ! T......

-- 
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

Reply via email to