I am writing an app in C++ that in has to lock the device at a specific moment in time, like if the user had pressed the lock button.
I found some java procedures like DevicePolicyManager
that do what I want but didn't find anything that I can use in my C++ program. Does anyone know how this functionality can be implemented in C++ (besides the DevicePolicyManager
, if there is another way)?