On Tue, Oct 12, 2010 at 7:35 AM, A N K ! T <[email protected]> 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

