C
C
cb77772019-08-14 11:46:59
Android
cb7777, 2019-08-14 11:46:59

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>

The service usually starts when the application starts.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question