Click here to Skip to main content
15,850,751 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to do lock and unlock android application using fixed password??

i want code to do this android application

This application used to lock and Unlock mobile using fixed password
please help me
Posted
Updated 16-Dec-12 23:47pm
v3
Comments
TorstenH. 17-Dec-12 4:47am    
You want to lock one app or the complete mobile? Cuase that would be subject to the mobile, not an application.

1 solution

There are two events, onResume() and onRestart(), they are the point at which the app will re-enter it's active life cycle and it is there you can do your unlock code.
To lock, just ask for a password, if needed, and then pause it.
 
Share this answer
 
Comments
laila mohamed 17-Dec-12 15:53pm    
Could you give me the code please ??
Nagy Vilmos 18-Dec-12 4:02am    
Simply put, no. We are all willing to help, but we won't write your code for you; well I wont.

30 seconds on Google, other search engines are available, should give you a good starting example.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900