I have an idea to create my own phone lock application, similar to android lock. I need to display or run my application when the phone boots / reboots / phone, lock / phone and unlock. I do not know how to make the application appear instead of the default lock screen and hide the default lock screen. So my questions are:
How is this useful?
What
public class BootReciever extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (intent.getAction() != null) { if (intent.getAction().equals(Intent.ACTION_USER_PRESENT)) { Intent s = new Intent(context,ViewPagerMainActivity.class); s.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(s); } } } }
How is this useful?
- How do you display the homepage after completing my application?
java android boot lockscreen
SreBalaji Thirumalai Jul 06 '14 at 17:49 2014-07-06 17:49
source share