ProgramName: Mobile Phone program lock
Version 1.0
Website: http://blog.csdn.net/icemanyandy
Introduction : Applock is a security tool for encryption applications on Android. It is easy to operate and efficient. You can lock Multiple software programs at the same time, such as text messages, mobile album, mobile book software, mobile video player, and mobile music player, when entering the software program, you need to enter your own password. If the password is incorrect, you cannot enter the software.
This version is the first version. It meets users' requirements for application encryption. The interface is easy to operate and will be updated later, making operations more convenient and providing better security protection.
Charge type: free
Developer information: softboy
Official website address: None
Supported mobile phone systems: Android 1.5 and above
Keywords : Software lock mobile phone software encryption program lock Software Encryption mobile phone encryption lock
See: applock1.jpg
Applock2.jpg
Applock3.jpg
Applock4.jpg
Design principle:
Use final activitymanager AM = (activitymanager) getsystemservice (activity_service );
/** We only need to get one runningtasks. In general, it will be obtained from the top of the stack according to the number of incoming
There is always an activity in a set and it will not be blank. Please rest assured
*/
String name = aM. getrunningtasks (1). Get (0). topactivity. getpackagename ();
Obtain the package name of the currently running program.