I am not expert in android and I am looking for an example for an Android application which use a service in which there are real functional methods or in other words what a service could be useful for, when do we need it.Something beyond a simple services example..
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
I'm sure you're eager to get some working code, but if you're new to android a working example of a service will probably raise more questions...
I suggest familiarizing yourself with the types of background processes and determine which you need:
Brief explanation of Service versus AsyncTask
Matrix of types of background processes
Here is an example of a Service:
Here is an example of an AsyncTask
http://www.vogella.com/articles/AndroidPerformance/article.html#asynctask
http://developer.android.com/reference/android/os/AsyncTask.html
Decide which type of background process you need, try to get it working and if it doesn't work post the code along with your requirements.