一款锁屏软件app,直接上代码:
先顶一个一个服务,用来管理服务
package com.alva.system.myapp;import android.app.admin.DeviceAdminReceiver;import android.content.Context;import android.content.Intent;import android.util.Log;public class LockReceiver extends DeviceAdminReceiver {private final static String TAG = LockReceiver.class.getSimpleName();@Override public void onReceive(Context context, Intent intent) {super.onReceive(context, intent);}@Overridepublic void onEnabled(Context context, Intent intent) {super.onEnabled(context, intent);}@Overridepublic void onDisabled(Context context, Intent intent) {super.onDisabled(context, intent);}}
Activity 的代码如下:
package com.alva.system.myapp;import android.app.Activity;import android.app.admin.DevicePolicyManager;import android.conte
如果觉得《Android 锁屏软件》对你有帮助,请点赞、收藏,并留下你的观点哦!