hey sorry i dint read the documentation of that method... it is working fine... thank a lot for help...
On Tue, Oct 12, 2010 at 5:34 PM, guru sagar <[email protected]> wrote: > keep that method in > > @Overide > public void onStart(){ > > } > > in Your activity > > On 10/12/10, A N K ! T <[email protected]> wrote: > > 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 <[email protected] > >wrote: > > > >> 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]<android-developers%[email protected]> > <android-developers%[email protected]<android-developers%[email protected]> > > > >> 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 [email protected] > > To unsubscribe from this group, send email to > > [email protected]<android-developers%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > -- > 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]<android-developers%[email protected]> > 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 [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

