user4614918
user4614918

Reputation:

Provide custom lock screen method

I'm looking for a way to create a custom lock screen method, but was unable to find any official informations about in the API docs. Stock android currently ships with different methods such as PIN, password, pattern, face lock.. so I wondered if it is possible to create one without modifying the system itself.

Please note this is not a duplicate of the hundreds of "custom lock screen" questions here on SO, as I'm asking specifically about lock screen methods, not for creating a replacement.

Edit

Currently crawling through the android source where I found a few classes that MIGHT be interesting:

https://github.com/android/platform_frameworks_base/blob/a6ed1b9547dcd592031a415739cc7e672c068f7c/core/java/com/android/internal/widget/LockPatternUtils.java

https://github.com/android/platform_frameworks_base/blob/a6ed1b9547dcd592031a415739cc7e672c068f7c/core/java/android/provider/Settings.java

Upvotes: 1

Views: 1896

Answers (2)

Fred Grott
Fred Grott

Reputation: 3476

Seems the only answer is to do a replacement such as this OS answer: Creating an Android Lock Screen App.

But after reading the source of the github repo linked..the

API docs you want is KeyguardManager...

android.app.KeyguardManager;

javadoc is here:

http://developer.android.com/reference/android/app/KeyguardManager.html

this method:

public void exitKeyguardSecurely (KeyguardManager.OnKeyguardExitResult callback)

is depreciated above api 12 use the flags mentioned in the javadoc instead

Upvotes: 0

Cigogne  Eveillée
Cigogne Eveillée

Reputation: 2208

It's not possible unless you create your own custom lock screen. You can build one pretty easily though with the Adenda SDK. Sign up for it on their website, they usually respond pretty quickly

Upvotes: 0

Related Questions