android service running in the background -
I would like to do a service that runs in the background and monitors quality. I have thought of a different service that exposes the ADL interface for an activity, the ADL will have some monitor related functions that can make an activity call. To illustrate how my service should work, think about the background Abduction app and are waiting for incoming calls (I believe this is done by a service)
- Is this a correct way of my problem?
- I am currently able to build my service and use the ADL interface, but when I stop the activity (when I return the button) the service is also destroyed! How to avoid this?
- I would like to make a continuous notification like ebudi, how to do it? I have tried with the Notification Manager, but there is no luck, I have just added to the Notification section.
OK, all you have to do is make a notification
mNotification = new notification (icon, text, when); MNotification.flags | = Notice FLAG_ONGOING_EVENT;
and notify using the Notification Manager.
If someone needs to run something on the background (no background thread), then you have to expand the service class, force you to service and get a stub, then you can use those methods Can call the stub that appears through the adil file. For more information, you can see an example of a remote service that comes with SDK, located in: /src/com.example.android.apis/app
Comments
Post a Comment