Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[APP][2.2+] Gravity Screen > Turn Screen On/Off Automatically - Keep Screen On

OP plexnor

9th April 2013, 03:38 PM   |  #1  
OP Senior Member
Thanks Meter: 472
 
230 posts
Join Date:Joined: Oct 2012



I was tired of pressing the power button whenever I need my phone for a second. Thus I created the Gravity Screen Off app which can turn automatically the screen ON when I grab my phone and turn it OFF when I put it into my pocket or onto a table. Basically, no need to touch any button and you are ready to go.


HOW IT WORKS:

The app turns the screen off by monitoring the orientation of the device through the gravity sensor. When your phone is pointing downward by its top, below a certain angle, it's likely to be out of use. In this situation the proximity sensor is activated to determine if it is covered. If yes, the screen turns off because probably you placed the phone into your pocket or onto a table.
The screen turns on when you lift up your phone. The phone wakes up if the proximity sensor is uncovered or if it was not covered the app is looking for movements to detect the action.
The Keep Screen On feature based on screen orientation and motion detection as well. If the device is pointing upward and small movements are detected it's probably held in hand and the screen timeout is extended.


MAIN FEATURES:

- Pocket Sensor: Recognizes if your phone is in your pocket. By turning your phone below the angle you set, it'll prepare to turn the screen off.

- Table Sensor: Detects your phone is lying on a table and turns the screen off.

- Turn Screen On by Motion: If the screen is off and it's facing up the device can be woken up by any movements (ex. lift up by hand) according to the sensitivity set.

- Keep Screen On by Motion: It's a Screebl like feature but it's relying on the small movements you are doing by your hand while holding the phone. If small motions are detected while the screen is facing up the feature keeps the screen on because it can be suspected that the phone is held and probably you are reading something. If the phone is steady the timeout will work as normal in any position you leave your device unlike in another apps.

- Turn Screen On by Proximity: Turns the screen On when you take your phone out from your pocket and Off when you put it back. By swiping your finger over the proximity sensor the phone can be woken up as well.

- Turn Screen Off by Proximity: If the device is pointing downward it takes the proximity sensor into account. By turning this off the program will rely only on the gravity sensor.

- Tasker, Llama, Locale supported by plug-in.

- 3 widgets: (available in Unlocked version)
(i) pause/resume
(ii) turn screen off: It's like pressing the power button
(iii) turn screen off persistently: turn screen off and keep it off until power button is pressed. It's good when you have to keep the phone in your hand or while driving and do not want the screen turned on by the app. After pressing the power button it will work as before.
- Power Toggles plug-ins


BATTERY USAGE:

You can set the app to minimize the energy consumed by the screen and by this you can extend your battery life. Or you can extend your own life by using another features of the app In the first case the battery usage should be not significant. I experienced about 7 per cent extra consumption on the test device. However it can be higher if you are activating often the Turn Screen On by Motion feature by leaving your device face up on table and you set a relatively long timeout for the feature. Read FAQ [4] for more details.

IMPORTANT

On some devices if it's lying face down the alarm clock is switched off by the app after it had gone off! Please check if it's the case for you. If, yes, use a third party app, for example: https://play.google.com/store/apps/d...mClockPlusDock

DOWNLOAD

Gravity Screen 1.82.0


NOTE

Probably not all feature will work for everyone. It was tested so far mainly on Samsung devices with stock rom. If you think it does not work for you, please read the FAQs below or report your issue in this thread.

REPORT YOUR ISSUE

If you have an issue, do NOT post it until you read the FAQ below and try to solve it alone by trying different settings for some hours. If still no solution, please write all your settings in your question otherwise your question will be ignored. If you feel you have a battery drain, do not post it in this thread. We are not speaking about it anymore

VERSIONS: FREE vs. PRO vs. UNLOCKED by IN-APP PURCHASE (recommended)

In the Pro version, there is no 15 minutes limit for turning the screen on by motion and the Table sensor can be set more precisely. Unlocked version has everything what Pro has, plus it has an Exclude App list, a more advanced Delayed lock option and Widgets.

CREDIT
Thanks to @remidesroques and everyone who helped and keep helping the development by testing the beta versions, sending feed backs or any another way supporting this app.

Translations:
Spanish: Johandri Silva and Eduardo Iñiguez
Russian: Gljadkov Oleg
French: @gregland
Italian: @DesmoDavid
Czech: Jaroslav Vrána
Portuguese (Brazilian): Irwing Junqueira Braga
Last edited by plexnor; 25th July 2014 at 11:40 AM.
The Following 239 Users Say Thank You to plexnor For This Useful Post: [ View ]
9th April 2013, 03:47 PM   |  #2  
OP Senior Member
Thanks Meter: 472
 
230 posts
Join Date:Joined: Oct 2012
Change log:


- - v1.80.1 - -

Added:
- 3 widgets: (available in Unlocked version)
(i) pause/resume
(ii) turn screen off: It's like pressing the power button
(iii) turn screen off persistently: turn screen off and keep it off until power button is pressed. It's good when you have to keep the phone in your hand or while driving and do not want the screen turned on by the app. After pressing the power button it will work as before.
- Power Toggles plug-ins
- Translation: Traditional Chinese, Turkish


- - - v1.78.2 - -

Fix:
- works on LG P880
Added:
- Languages: Arabic, Chinese, Dutch, Hungarian. Thank you for the translations.
- Car dock detection

APKs:
Attached Files
File Type: apk GravityScreenOffFree.v1.37.MARKET.apk - [Click for QR Code] (212.1 KB, 587 views)
File Type: apk GravityScreenOffFree.v1.40.MARKET.apk - [Click for QR Code] (212.8 KB, 468 views)
File Type: apk GravityScreenOffFree.v1.45.MARKET.apk - [Click for QR Code] (213.5 KB, 385 views)
File Type: apk GravityScreenOffFree.v1.46.MARKET.apk - [Click for QR Code] (214.3 KB, 837 views)
File Type: apk GravityScreenOffFree.v1.48.MARKET.apk - [Click for QR Code] (234.5 KB, 636 views)
File Type: apk GravityScreenOffFree.v1.49.MARKET.apk - [Click for QR Code] (246.1 KB, 472 views)
File Type: apk GravityScreenOffFree.v1.50.MARKET.apk - [Click for QR Code] (261.9 KB, 497 views)
File Type: apk GravityScreenOffFree.v1.53.MARKET.apk - [Click for QR Code] (294.7 KB, 503 views)
File Type: apk GravityScreenFree.v1.58.MARKET.apk - [Click for QR Code] (311.1 KB, 423 views)
File Type: apk GravityScreenOffFree.v1.60.MARKET.apk - [Click for QR Code] (311.7 KB, 420 views)
File Type: apk GravityScreenFree.v1.61.MARKET.apk - [Click for QR Code] (321.9 KB, 471 views)
File Type: apk GravityScreenFree.v1.62.MARKET.apk - [Click for QR Code] (322.6 KB, 749 views)
File Type: apk GravityScreenFree.v1.65.MARKET.apk - [Click for QR Code] (323.5 KB, 591 views)
File Type: apk GravityScreenFree.v1.67.MARKET.apk - [Click for QR Code] (324.1 KB, 1063 views)
File Type: apk GravityScreenFree.v1.77.2.MARKET.apk - [Click for QR Code] (447.4 KB, 573 views)
File Type: apk GravityScreenFree.1.78.2.apk - [Click for QR Code] (494.3 KB, 900 views)
File Type: apk GravityScreenFree.1.80.8.MARKET.apk - [Click for QR Code] (847.8 KB, 7428 views)
File Type: apk GravityScreenFree.1.81.0.final.apk - [Click for QR Code] (847.9 KB, 202 views)
File Type: apk GravityScreenFree.1.82.0.final.apk - [Click for QR Code] (849.8 KB, 1358 views)
Last edited by plexnor; 25th July 2014 at 11:45 AM.
The Following 52 Users Say Thank You to plexnor For This Useful Post: [ View ]
9th April 2013, 03:54 PM   |  #3  
OP Senior Member
Thanks Meter: 472
 
230 posts
Join Date:Joined: Oct 2012
Gravity Screen Off - FAQ
Gravity Screen - FAQ


[1] Q: The screen not always turns off when I put my phone into my pocket, why?
A:The proximity sensor not always accurate. It can fail recognizing some materials specially if they are very close to it. If it happen occasionally, probably it's still worth to use the sensor. But even you can eliminate the accidental turning on by selecting the False Turn On Protection option.

[2] Q: The Table Sensor not really works for me when I place my phone onto a table face down, why?
A: This issue is quite common. The first problem is that the free version is limited at 10 degree. If you are turning your phone fast downward the proximity sensor is activated only when it's very close to the table. Many proximity sensors cannot judge distance accurate if the object is too close to it. This is the reason the screen remains on often. And even more the reliability of the sensor depends partly on the material as well. Thus if you are using the free version it's recommended to place your phone onto a table not too fast and try to keep it parallel to it. The paid version allows you to increase the angle and by this the problem is significantly reduced. Moreover, the problem can be reduced by selecting the False Turn On Protection option.

[3] Q: Why does the Lying Face Up feature turn the screen off regardless I'm tapping the screen?
A: Due to Android security restrictions a running service cannot detect if the screen was tapped. If you want to continue using the device you have to swipe over the proximity sensor to keep it on or turn it back on.

[4] Q: I'm experiencing high battery usage, why?
A: The app should use about 6 percent extra energy per day if you are not using too much the Turn Screen On by Motion feature. If you frequently lay your phone face up on a table and the Turn Screen On by Motion Timeout is too long, the battery consumption can be much higher. Because the CPU has to be constantly analyzing the data of to acceleration sensor to catch the movement when you lift up the device. Thus if you want to reduce the battery usage it's recommended to keep your phone often lying face down when it's on a table. Because in this situation the proximity sensor is responsible for turning the screen back on which uses much less energy. Moreover, please, keep in mind that the android en-built battery consumption measurement can show much higher results, because it shows the battery usage relatively to another apps. If the phone was not in use or the measurement period was short, it looks like my app uses too much energy however there was not too much energy used all together.

[5] Q: The Keep Screen On by Motion feature does not work for me, why?
A: On some device this feature works only if the Booster checkbox is ticked.

[6] Q: The Turn Screen On by Motion feature does not work for me, why?
A: It's likely that your device is stopping the acceleration sensor when the screen goes off and we can do nothing about it unfortunately. For example: Note 2, Note 3. More info: http://www.saltwebsites.com/2012/and...ers-screen-off If it's the case for you, please turn the feature off to reduce battery usage.

[7] Q: The screen turns off in landscape mode, why?
A: This issue has many different solutions. You can make the Pocket Sensor Angle smaller or if you have the Any Direction feature ticket, you can pause the GS app temporally. There are two ways to pause it: 1. using the Locale plug-in by Tasker or Llama; 2. using the Exclude apps list in the Free version of GS.

[8] Q: It gives me a huuuge wakelok, why?
A: The wakelock is necessary for the "Turn Screen On by Motion" feature but if you turn the screen off through the proximity sensor (i.e. put it into your pocket or place face down onto a table) there won't be wakelock held. So if you want to reduce the wakelock try to keep your phone face down. Moreover, you can limit it by the Timeout scrollbar as well but this means you will loose the feature after the timeout you set.

[9] Q: I'm prompted for my pass code immediately after screen turns on. However my Secure Screen Lock is delayed. What can I do?
A: I can recommend to try the Menu - Delayed Lock features or if no luck, you can try this app as well: https://play.google.com/store/apps/d...yedlock2.trial

[10] Q: It makes a buzzing sound when listening to music and stuff. Can you turn it off?
A: Due to a hardware problem the proximity sensor is causing the buzzing noise on Nexus 4 when it's active.
At the moment I can recommend some changes in the settings. If you turn on the Headset support and connect your headphone, you are able to turn off the "Turn Screen Off by Proximity" and "Turn Screen On by Proximity" features independently from the state when headphone is not connected. The app will remember this and always turn off the proximity sensor when headphone is connected.

[11] Q: Can you translate the app to my language?
A: At the moment I can give you the text of the app to translate it with a translator to your language to understand more the features. https://docs.google.com/document/d/1...zBdcNJLUy2yx0Y

[12] Q: Will you add an option to scheduled the app to stop it for night hours?
A: Not really. If you leave your phone for a long time somewhere just leave it face down. It's like turning off the app, but you will get the auto screen on when you lift it up.

[13] Q: Why my alarm clock does not work?
A: Unfortunately many alarm clocks cancel the alarm when the screen turns off. It can happen if you leave your phone face down at night and my app turns the screen back off when the alarm goes off. The app is trying to detect the alarm event and pause itself, but it's not possible with all alarm clock apps. Thus it's strongly recommended to test your alarm clock with this app.
You can solve this problem by using a well written alarm clock, for example: https://play.google.com/store/apps/d...mClockPlusDock
https://play.google.com/store/apps/d...bitspin.timely

[14] Q: The screen turns on during driving. How to avoid it?
A: The simplest method is to pause the app before driving. There are different widgets in the app for this. Or if you are driving often you can use the False Turn On Protection in Hand & Car but this option has some disadvantages. A more advanced method can be to pause the app when the phone is connected to the car by bluetooth and resumed when disconnected. You can do this by Llama via the Locale plug-in.

[15] Q: The notification not responding/disappearing when I try to pause/resume the app from the notification area, why?
A: Please try to un-tick the NOTIFICATION -> LOW PRIORITY option in the app. It should solve the problem.

[B][16] Q: What are the widgets for:
A:
(i) pause/resume
(ii) turn screen off: It's like pressing the power button
(iii) turn screen off persistently: turn screen off and keep it off until power button is pressed. It's good when the phone is moving but you do not want it to turn on.

TROUBLESHOOT

- make sure the app is installed on internal memory card; external sd cards can cause many kind of problems
- if it looks like the app stopped working correctly do an uninstall, re-install and a reboot
Last edited by plexnor; 4th September 2014 at 12:58 AM.
The Following 28 Users Say Thank You to plexnor For This Useful Post: [ View ]
9th April 2013, 03:57 PM   |  #4  
antukubo's Avatar
Senior Member
Flag Johor Bahru
Thanks Meter: 62
 
230 posts
Join Date:Joined: Feb 2011
More
Interesting! Downloading and testing...
The Following User Says Thank You to antukubo For This Useful Post: [ View ]
9th April 2013, 04:27 PM   |  #5  
Senior Member
Flag Vancouver
Thanks Meter: 46
 
411 posts
Join Date:Joined: Dec 2010
More
Great app, testing it now. For the proximity function, shouldn't the drain be higher because when the phone is in the pocket the proximity sensor is always on?
The Following 2 Users Say Thank You to mliou For This Useful Post: [ View ]
9th April 2013, 04:50 PM   |  #6  
OP Senior Member
Thanks Meter: 472
 
230 posts
Join Date:Joined: Oct 2012
Quote:
Originally Posted by mliou

Great app, testing it now. For the proximity function, shouldn't the drain be higher because when the phone is in the pocket the proximity sensor is always on?

Yes, that's right. When it's turned off by proximity, there is no significant drain.
The Following 2 Users Say Thank You to plexnor For This Useful Post: [ View ]
9th April 2013, 04:54 PM   |  #7  
Junior Member
Flag Bremerhaven
Thanks Meter: 6
 
26 posts
Join Date:Joined: Jan 2011
More
Great app this is exactly what i was looking for
what benefits offers me the pro version??
The Following User Says Thank You to Acousticbeatz For This Useful Post: [ View ]
9th April 2013, 05:21 PM   |  #8  
OP Senior Member
Thanks Meter: 472
 
230 posts
Join Date:Joined: Oct 2012
Quote:
Originally Posted by Acousticbeatz

Great app this is exactly what i was looking for
what benefits offers me the pro version??

You can live with the free version quite well. But by buying the paid version your life will be easier little bit:
- you can drop your phone face down onto your undone bed and your screen will turn off
- when you wake up and hardly find your phone the screen will turn on automatically at the moment you grab it and no need to find any button

Probably there are more advantages, but I could recall only these at the moment
The Following User Says Thank You to plexnor For This Useful Post: [ View ]
9th April 2013, 05:26 PM   |  #9  
antukubo's Avatar
Senior Member
Flag Johor Bahru
Thanks Meter: 62
 
230 posts
Join Date:Joined: Feb 2011
More
Some feedback

1- Pocket sensor
*** gravity - can turn off but can't turn on.
*** proximity - can't even turn off
2- Table Sensor
*** gravity - can turn off but can't turn on
*** proximity - working (both face down/up and off/on)
3- Turn Screen On by Motion
*** not working for both gravity and proximity (unless swiping finger over the proximity sensor)
4- Keep Screen On by Motion
*** not working at all (even after change the sensitivity)

Request

Keep Screen On by Angle - Sometimes, i didn't hold my phone. Just put on the table in standing position. So, 0-10 degree will off the screen while higher than that will keep the screen on. No need to keep shaking

I'm on Motorola Defy CM7.2 btw. Keep your good work
The Following 2 Users Say Thank You to antukubo For This Useful Post: [ View ]
9th April 2013, 05:31 PM   |  #10  
Junior Member
Flag Bremerhaven
Thanks Meter: 6
 
26 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by plexnor

You can live with the free version quite well. But by buying the paid version your life will be easier little bit:
- you can drop your phone face down onto your undone bed and your screen will turn off
- when you wake up and hardly find your phone the screen will turn on automatically at the moment you grab it and no need to find any button

Probably there are more advantages, but I could recall only these at the moment

sounds good... and already purchased

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes