02-28-2013 02:28 PM
I would like to build a function that it can detect charging state of a phone, and if the phone is charging, then I want to write a statement to lock the phone. After it detect the phone is fully charged, the phone can be unlocked. Anyone know how can i implement that? I looked over the documentation, there are some data types are related to lock/unlock, but i dont know what function should I use?