Wednesday, 28 August 2013

Why do we need to create android service

Why do we need to create android service

This is very basic question but I am unable to figure it out because as I
read that Service runs on main thread. So why do we need to create a
Service? and because for intense CPU task we need to create Async task or
thread in Service then why don't we create them in activity or application
class?
I wanted to create a service which will continuously perform a set of task
when it is started. I can't find any method in Service which will run in
loop. Is there is such method? or do I have to create a thread in service
to set a loop?

No comments:

Post a Comment