I was reading this two docs about Service in the Android SDK
http://developer.android.com/reference/android/app/Service.html
http://developer.android.com/guide/components/services.html
I would like you to explain how the following architecture should be implemented.
I need a Service that every X minutes checks $something, updates a db and eventually notify on the status bar the updates.
Then I need an Activity from where I have to read from the same db to show a more complete set of information.
The service basically has to run accordingly to a delay time and even if the Activity is not used.
Is it possible to have this “architecture” in a single apk?
Use
AlarmManagerand anIntentService. If you need the every-X-minutes logic to occur even if the device is asleep, you will need to use something like myWakefulIntentService.Absolutely.