Click here to Skip to main content
12,360,037 members (62,774 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: Java Mobile Android
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 16-Dec-12 8:46am
Updated 16-Dec-12 22:47pm
TorstenH.34.9K
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100