services in android [closed]
can anybody give example with service in android?
Thanks
In Android you basically have 2 kinds of services.
- Local Service
- Remote Service
If you run local service then your application as well as your service will run on same ProcessID
If you run a remote service it runs as a different process you can communicate with your service using Android Interface Definition Language(AIDL)
You can find sample codes in API Demo which comes along with Android SDK as well as here
http://marakana.com/forums/android/examples/60.html
http://developer.android.com/intl/de/guide/developing/tools/aidl.html#implementing
精彩评论