What mechanism to use for a monitor in Android -


i have application accepts data user , stores in db.

i need monitor data (whether application running or not) , create notifications based on this. data may change without user interaction, need monitoring system run when application not running.

i have read on asynctask, services , handlers, confused should use this. can give me direction?

my current idea use background service, intentservice.

yes, need use service:

a service application component representing either application's desire perform longer-running operation while not interacting user or supply functionality other applications use.

you need host app outside of user interface. application definition must running monitor data, ui (and associated activities) not. service how accomplish this.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -