Click here to Skip to main content
12,953,700 members (48,239 online)
Rate this:
Please Sign up or sign in to vote.
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 16-Dec-12 8:46am
Updated 16-Dec-12 22:47pm
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
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 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
OriginalGriff 6,429
CHill60 3,490
Maciej Los 3,103
ppolymorphe 2,020
Jochen Arndt 1,975

Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 17 Dec 2012
Copyright © CodeProject, 1999-2017
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