java - 关于 后台service 和UI界面之间的连接问题 求大神 帮忙稍微解释下
天蓬老师
天蓬老师 2017-04-17 16:31:24
0
2
532
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
阿神

The questioner needs to sort out your problem and learn to describe it clearly.
1. Does service refer to Android's own Service component or the remote server?
If it is Android's own Service, then the connection between the UI (tentatively considering your UI as Activity) and Service can rely on Intent+Binder;
If it is a remote server, you need to rely on network protocol interaction (generally using http protocol connection).
2. BroadcastRecevier starts automatically after booting. There is a version difference. Android 2.2 and previous versions support directly monitoring system self-starting broadcasts after the application is installed. After 2.2, you need to manually start the application after installation to take effect.

迷茫

The self-starting boot broadcast needs to be launched once after starting the application in version 4.0 or above to receive it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!