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