Hi

Thank you for the hint.
I already tried with this and it did work. But when the app runs for
the first time, it asks to activate the app as Device administrator.
Since this is my internal project, in my requirement, there should not
have any user inputs to run the service. So this solution failed at
that point.

Thanks
Kelum.


On May 31, 12:55 pm, Alger Lin <[email protected]> wrote:
> You has to implements DeviceAdminReceiver interface, and turn-off screen by
> lockNow() method of 
> DevicePoliceManager.http://developer.android.com/reference/android/app/admin/DevicePolicy...()

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