Mohankumars
Mohankumars

Reputation: 93

Android Application Lock

how to make application lock for android mobile.how to lock the application. I have done locking the home screen i.e the entire mobile, but im not sure how to lock particular application.

Upvotes: 5

Views: 2566

Answers (3)

chocolate boy
chocolate boy

Reputation: 63

For this situation you need to catch the listener event to lock the installed apps..

Upvotes: 1

Alex Lockwood
Alex Lockwood

Reputation: 83303

There is currently no support in the Android SDK to reliably do this. The application locking apps that are currently on the market aren't reliable in that they exploit a security loophole and put themselves in the foreground when you try to run a given application. This can be bypassed without much difficulty if you know how, and the security flaws they exploit will hopefully be closed. Sorry.

Upvotes: 0

thepoosh
thepoosh

Reputation: 12587

I have to say that I don't quite get what you're trying to di.

If you're trying to prevent people from using an app after it's downloaded the only way I can think of is having an HTTP(S) request done to a server with an identifier that is set the first time the app is run and check a DB to see if it can run (set a boolean flag shouldRun or something like it).

If you wat to prevent it from being copied from one phone to another, you can use the Google Play built in option to prevent it.

if this is what you're trying to achieve, you should probably obfuscate your code as well

obfuscating code on android

Upvotes: 0

Related Questions