Answer the question
In order to leave comments, you need to log in
How to restore the service after rebooting the phone?
Good afternoon, how to implement this function, at the moment it works for me, if you just remove the application from quick access.
Registered in manifesto did not help.
<service
android:name=".MyNotifications.MyService"
android:enabled="true"
android:exported="true"
android:process=":myservice" />
<receiver android:name=".MyNotifications.AlertReceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
</intent-filter>
</receiver>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question