Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Java Android GimmeCode
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
Edited 16-Dec-12 22:47pm
TorstenH. at 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
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.
laila mohamed at 17-Dec-12 15:53pm
Could you give me the code please ??
Nagy Vilmos at 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
0 Sergey Alexandrovich Kryukov 6,676
1 OriginalGriff 6,056
2 CPallini 2,473
3 Richard MacCutchan 1,697
4 Abhinav S 1,560

Advertise | Privacy | Mobile
Web03 | 2.8.140821.2 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2014
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