Im trying to manually send a broadcast in Android Studio
Intent intent = new Intent(Intent.ACTION_USER_PRESENT);
sendBroadcast(intent);
does not work.
Error code:
Permission Denial: not allowed to send broadcast android.intent.action.USER_PRESENT
Is there any way to send a Broadcast or execute the receiver manually?
thx :)