You might have missed something in the implementation - it should
cause the Device Administrators window to pop up, and you need to
Activate your app as a Device Admin.

Then only isAdminActive() will return true.


On Jan 18, 2:58 pm, ashiq sayyad <[email protected]> wrote:
> I have checked the  lockNow implementation in API demos & tried the
> same thing in my app. But I am not able to lock the device(Google
> nexus)
>
> Is there any restriction on this API call for thrid party application?
> isAdminActive() method is returning me false...
>
> One more doubt,how to implement screen lock functionality for below
> 2.3 devices as there in no direct APIS  for tat..
>
> Awaiting for help
>
> Thanks & Regards,
> Ashiq Sayyad

-- 
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

Reply via email to