How to create an android daemon application or service?

4,850 views
Skip to first unread message

LIANG YANG

unread,
Mar 11, 2011, 4:34:31 AM3/11/11
to android-platform
Hi, All:

Is it possible to create a daemon application (or we called
service) which can receive and send message from/to other service?

For example, I would like to create a service which can
boot with the Android operating system without any UI. And the service
can listen on some specific event and then send event to other
service?

I know the question seems a little generic and I'm very
appreciated for any tips about this.

1. How to create a daemon application (service run in background) ?
2. How to exchange event with others (via IBinder ?)

Thanks,
Liang

Mrinal

unread,
Mar 11, 2011, 12:38:34 PM3/11/11
to android-platform
yes you can create a daemon app by extending service
The service usually does not have any views associated with it.

Also usually activity use the service by binding with them while
starting and unbinding them while they are destroyed.

for more information look at.

http://developer.android.com/reference/android/app/Service.html
Reply all
Reply to author
Forward
0 new messages