my bad on this...I was pressing the power button to lock the screen for
testing - and in phone settings - it wasn't enabled.
so the lock feature seems to be working.
now the opposite problem - i'm also trying to unlock the screen
programmatically.
devicePolicyManager.setPasswordMinimumLength( componentName, 0 );
boolean result = devicePolicyManager.resetPassword( "",
DevicePolicyManager.RESET_PASSWORD_REQUIRE_ENTRY );
but after a locking the screen - i try to unlock and a slide-to-unlock
prompt opens
up. shouldn't it go straight to the last screen - i.e. no slide-to-unlock
prompt.
On Wednesday, January 29, 2014 10:47:15 AM UTC-5, dashman wrote:
>
>
> My app enables lock-screen.
>
> Have all the device-admin privs etc.
>
> When i enable it - i just get the slider - not the password prompt.
>
>
> devicePolicyManager.setPasswordQuality(
> componentName,
> DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED );
>
> devicePolicyManager.setPasswordMinimumLength(componentName, 4);
>
> boolean result = devicePolicyManager.resetPassword("1234",
> DevicePolicyManager.RESET_PASSWORD_REQUIRE_ENTRY);
>
> Log.i( TAG, "enable-lock result=" + result);
>
> result is good.
>
>
>
>
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.