PlatformException (PlatformException(error, Neither user 10024 nor current process has android.permission.WAKE_LOCK., null, java.lang.SecurityException: Neither user 10024 nor current process has android.permission.WAKE_LOCK.


Here is what the above code is Doing:
1. We are creating a new BroadcastReceiver object.
2. We are creating a new IntentFilter object.
3. We are adding an action to the IntentFilter object.
4. We are registering the BroadcastReceiver object with the IntentFilter object.
5. We are creating a new PendingIntent object.
6. We are creating a new AlarmManager object.
7. We are setting the alarm.

Similar Posts