Application description:
The application is intended as a safety program for a specific client (not to be deployed publicly). When the application has not detected movement for a certain period of time, the application should sound an alarm and bring …
In my application, I need to lock and unlock phone. I searched for it, I found many answers, I tried them but no one is working.
I need to unlock phone on onCreate() and lock phone again while I'm finishing …
I want to control enabling/disabling keyguard on the device.
To do that I'm using DevicePolicyManager and KeyguardLock API of Android SDK.
Below is my implementation to manage this:
public class DeviceLocker {
private static DeviceLocker instance;
public static synchronized DeviceLocker …