Back to project page wakeup.
The source code is released under:
Apache License
If you think the Android project wakeup listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.niceappp.wakeup; /* w ww. ja v a2 s . co m*/ import android.app.admin.DeviceAdminReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; import android.widget.Toast; public class Admin extends DeviceAdminReceiver { @Override public void onEnabled(Context context, Intent intent) { super.onEnabled(context, intent); Toast.makeText(context, "Admin enabled", Toast.LENGTH_LONG).show(); Log.d("Admin", "onEnabled"); } }