Android background services example with interacti

2019-04-14 06:17发布

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..

1条回答
可以哭但决不认输i
2楼-- · 2019-04-14 06:54

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:


Here is an example of a Service:


Here is an example of an AsyncTask


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.

查看更多
登录 后发表回答