That's not really a good idea either, it's not clear what the OP wants to do within the service.
Typically you do something like set up a call back to receive location updates or something similar... kris On Wed, Aug 1, 2012 at 11:12 AM, Gabriel Augusto <[email protected]> wrote: > A Service running in background every time must end with the battery or be > killed by the os. Make a Service that run, do your work and see AlarmManager > to start the Service again. > > > 2012/8/1 bob <[email protected]> >> >> Maybe look at this? >> >> http://developer.android.com/reference/android/app/Service.html >> >> >> On Monday, July 30, 2012 1:44:39 AM UTC-5, Vijay Krishnan wrote: >>> >>> Hi all, >>> In my case,i want to update the user latitude and longitude in >>> background when he is out of the application. >>> >>> Thanks, >>> vijay.k >> >> -- >> 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 > > > -- > 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 -- 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

