madcoderz
madcoderz

Reputation: 4431

is Service killed along with activity

Well this is kind of confusing.
1- Is a Service killed when the Activity that created it, is destroyed?
2- Will a Service keep on running when there's no activity bounded to it (when the app is closed)?
3- Services need an inner Thread to avoid ANR so, what's the meaning with Services then, isn't it better to only use Threads?

Thanks in advance.

Upvotes: 1

Views: 312

Answers (1)

Squonk
Squonk

Reputation: 48871

I suggest you read this...

Application Fundamentals

...in particular the section titled "Application Components" - it explains a great deal.

Upvotes: 1

Related Questions