rayman
rayman

Reputation: 21616

application and local service lifetime

As I understoond, if we have local service of some application, as soon as the application goes down, the service goes down as well - is that true?

and if it is, how can we make an application to run all the time without go down? (without using Alarm manager). I though that the purpose of local service is to answer this situation: " to make the application everlasting"

Upvotes: 0

Views: 432

Answers (2)

CommonsWare
CommonsWare

Reputation: 1007359

how can we make an application to run all the time without go down?

You can't.

i though that the purpose of local service is to answer this situation: " to make the application everlasting"

Absolutely not. Services can run for a while, but they can be:

  • Closed by the user via the Running Services screen in Settings
  • Closed by the user via a task killer
  • Closed by Android to free up memory in times of need

Upvotes: 2

Robby Pond
Robby Pond

Reputation: 73494

That is incorrect. BackgroundServices(like Google Maps Navigation/Music Player) are intended to never be killed by the system.

Upvotes: -1

Related Questions