can anybody give example with service in android?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Android you basically have 2 kinds of services.
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