文件名称:LockScreen
介绍说明--下载内容均来自于网络,请自行研究使用
Android锁屏源码,Lock Screen Activity例子。了解一下流程:首先我们要获得android设备管理代理,LockScreen 继承自 DeviceAdminReceiver,得到当前设备管理器有没有激活,如果没有激活的话,就去提示用户激活(第一次运行程序时),如果已经激活的话,就执行立即锁屏,killMyself ,锁屏之后就立即kill掉我们的Activity,避免资源的浪费。-Android lock screen source, Lock Screen Activity examples. Look at the process: First of all, we want to get the android device management agent, LockScreen inherited from DeviceAdminReceiver current Device Manager is not activated, if activated, go to (the first time you run the program prompts the user to activate) If you have activated , on the implementation of the to immediately lock screen killMyself lock screen immediately kill off our Activity avoid the waste of resources.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
LockScreen\.classpath
..........\.project
..........\AndroidManifest.xml
..........\bin\classes\tjuci\edu\dl\LockScreenActivity$Controller.class
..........\...\.......\.....\...\..\LockScreenActivity.class
..........\proguard.cfg
..........\project.properties
..........\res\drawable-hdpi\ic_launcher.png
..........\...\.........ldpi\ic_launcher.png
..........\...\.........mdpi\ic_launcher.png
..........\...\layout\main.xml
..........\...\values\device_admin_sample.xml
..........\...\......\strings.xml
..........\src\tjuci\edu\dl\LockScreenActivity.java
..........\bin\classes\tjuci\edu\dl
..........\...\.......\.....\edu
..........\src\tjuci\edu\dl
..........\bin\classes\tjuci
..........\src\tjuci\edu
..........\bin\classes
..........\...\res
..........\res\drawable-hdpi
..........\...\drawable-ldpi
..........\...\drawable-mdpi
..........\...\layout
..........\...\values
..........\src\tjuci
..........\assets
..........\bin
..........\gen
..........\res
..........\src
LockScreen