General Board

Lock Unlock device programatically.

Forums View
monac3@, Dec, 05, 2012 08:41
 Hello.

I just saw samsung smart school (http://www.youtube.com/watch?v=TK_rw07Qng8) demo and it has a feature to control device lock/unlock.
When teacher (server) locks student (android) device, it shows a message 'Attention please' and device is locked. and later teacher can unlock the device again.

So following two functions I wonder if possible:

1. lock/unlock android device programtically.
2. show custom messages in locked screen.

Locking itself somehow seems possible via management api (http://developer.android.com/guide/topics/admin/device-admin.html).
Unlocking and showing custom message is unknown to me.

Device is limited to samsung galaxy note 10.1 (for now).
Thanks in advance.

Board View
k.krakowiak@, Dec, 05, 2012 09:29 Post #1
Hi,
There is no way to absolutely lock device. I think that on this movie, application was running but user can kill process in task manager. When you connect your device with computer you can control device via adb and you have more control but it is not related to API Android. You should look on AllShare Framework. I think that you find there some interesting proposition.


Regards,
Konrad Krakowiak
Samsung Developers

This content has been quoted from monac3@’s thought. (Link to original post)

 Hello.

I just saw samsung smart school (http://www.youtube.com/watch?v=TK_rw07Qng8) demo and it has a feature to control device lock/unlock.
When teacher (server) locks student (android) device, it shows a message 'Attention please' and device is locked. and later teacher can unlock the device again.

So following two functions I wonder if possible:

1. lock/unlock android device programtically.
2. show custom messages in locked screen.

Locking itself somehow seems possible via management api (http://developer.android.com/guide/topics/admin/device-admin.html).
Unlocking and showing custom message is unknown to me.

Device is limited to samsung galaxy note 10.1 (for now).
Thanks in advance.