Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
DeviceAdminReceiver implementation for the Lock Screen Device App on the SSaurel's Channel
package com.ssaurel.lockdevice;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;
public class MyAdmin extends DeviceAdminReceiver {
public void onEnabled(Context context, Intent intent) {
Toast.makeText(context, "Device Admin : enabled", Toast.LENGTH_SHORT).show();
public void onDisabled(Context context, Intent intent) {
Toast.makeText(context, "Device Admin : disabled", Toast.LENGTH_SHORT).show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.