Question

can anybody give example with service in android?

Thanks

Was it helpful?

Solution

In Android you basically have 2 kinds of services.

  1. Local Service
  2. 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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top