I need that when I unlock my cellphone, my app shows up inmediately
Clash Royale CLAN TAG #URR8PPP I need that when I unlock my cellphone, my app shows up inmediately I need my cell phone to unlock it in my application automatically. The question is what do I do with a receiver ACTION_USER_PRESENT, but it has not worked for me. Some help? I am working in android studio. Java Receiver: package com.example.juan.educandote; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class Monitor extends BroadcastReceiver { Monitor screen; @Override public void onReceive(Context arg0, Intent arg1) { if (arg1.getAction().equals(Intent.ACTION_USER_PRESENT)) { Intent IntentInitiateApplication; IntentInitiateApplication = new Intent(arg0, MainActivity.class); IntentInitiateApplication.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); arg0.startActivity(IntentInitiateApplication); } } } manifest <?xml version="1.0" encodi...