Turn your screen on and off by simply shaking your phone.
Avoid breaking your power button. Just shake your phone and lock or unlock it.
Please test if the app works on your device first by installing the FREE version, "Shake Screen On Off FREE".
IT WILL NOT DRAIN YOUR BATTERY. On device's up to Android KitKat 4.4, the battery consumption should be minimal. On device's running Android 5+, due to an Android bug, there will be more battery being used, but it still should not be a huge amount. I did all I could to make the app work on Android 5+, and so I rather make it work, even if more battery is necessary to keep it working.
My main focus when I implemented the app was on not draining the battery, and it won't. Let it run for a day and then check the app's battery consumption. It should be minimal.
This is the PRO version of the app 'Shake to Screen On Off'. On the PRO version:
1 - no ads are displayed.
2 - the user can choose to start the app automatically after the device is turned on.
3 - the app can be set to unlock the screen automatically when the screen is turned back on.
4 - the app can use the proximity sensor to avoid accidentally turning on the screen when the device is on a pocket, for instance.
5 - The device can be set to vibrate every time the screen is turned on or off.
IT WILL NOT DRAIN YOUR BATTERY. Have I said it already? My main focus when I implemented the app was on not draining the battery, and it won't. Let it run for a day and then check the app's battery consumption. It should be minimal.
-------------------------
UNINSTALLATION
-------------------------
Due to the fact that the app needs admin privileges to run, if you want to uninstall it you must do it by clicking on the uninstall button inside the app. If you try to uninstall the app using the standard Android App Manager, the uninstall button will be disabled. Just remember that to uninstall the app, you must access the app itself.
---------------------
COMPATIBILITY
---------------------
Unfortunately, on some devices the app will not be able to turn the screen back on (when the user shakes the phone) after the screen is turned off. It's a hardware limitation of these devices, and there is nothing that can be done on the software side to avoid it. For instance, I've tested the app on the 'LG Nexus 4' and it works flawlessly; on the other hand, on the 'Samsung Galaxy Ace' the accelerometer sensors are turned off the moment the screen goes off. If that is the case on your device, please send me an email (there is a button on the app to do it) explaining what is happening on your specific case. The app will add the model and manufacturer of your device to the body of your email (please do not erase this information) and I will remove your device from the list of available devices on Google Play. Thank you very much for your help!
PERMISSIONS
Prevent phone from sleeping - necessary to wake the phone up after it's screen is turned off.
Vibration - necessary in case the user wants the phone to vibrate when the screen is turned on or off.
Run at Startup - necessary if the user wants the app to start automatically after the device is turned on.
This app uses the Device Administrator permission. It's necessary to lock/unlock your screen. Read the message the Android system will show you. This is the only admin permission the app needs.
Icon based on an original design by Timo Arnall, licensed under a Creative Commons Attribution License. Acessible (on september 2013) at:
http://www.elasticspace.com/images/rfid_iconography_large.gif
Thank you very much Timo.