I am attempting to put a device to sleep and I have found references all over about using the PowerManager class\'s goToSleep(long) method but I do not see it in the documen
PowerManager manager = (PowerManager) getSystemService(Context.POWER_SERVICE); PowerManager.WakeLock wl = manager .newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "YOUR_OWN_TAG"); wl.acquire(); wl.release();
Try this way and give some feedback.