yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] StrangerWeather:
I have the Pro version and I'm loving it, but my problem is that the turn off function stops working quite regularly. A reboot isn't enough, I have to uninstall and reinstall the app, which gets quite tedious. Any ideas why this might be?

Stock rooted Moto G. JB 4.3.

Thanks!
[Android Apps and Games] Adolflow:
Maybe same reason one my moto x I have to reinstall after every update... It's a finicky thing I guess
[Android Apps and Games] plexnor:
Thanks for reporting this issue. If you have some time could you investigate the issue little bit?

If the app fails, would be good to test what happens if the app data is cleared by Android app manager or set back to default from the app.

An update maybe can be simulated if the last two versions are installed one after the another from here: http://xdaforums.com/showpost.php?p=40101815&postcount=2

Moreover, could you check your proximity sensor by this app:https://play.google.com/store/apps/details?id=zausan.zdevicetest ?

I'm interested the values it reports when you are approaching the sensor by your finger. Does it show 0cm when it's covered and 5cm when uncovered? If not, please, let me know the values.

Thank you for helping the development of the app.
[Android Apps and Games] StrangerWeather:
Thanks for your reply. I will do the test when the app fails again.

In the meantime, I have installed the device test app and my results are 3cm when covered and 100cm when uncovered.
[Android Apps and Games] denzel09:
Hi. I have a motorola moto g.

App works but after 1 reboot app doesnt work anymore. I need simply to unistall and re-install app. And then it works again. I tried to reset setting and other but only solution is above: unistall and install again.

So, is there a fix for this?

Thank you for beautiful app.

Obviuosly i m talking of pro version.
[Android Apps and Games] Rudjgaard:
Plex i have the same problem as the guys above and it's present across multiple updates (I started using app in sept...)

After any reboot the proximity related functions stop working. (both for screen on and off)

It works fine for days, until you reboot, then proximity is gone.

Wipe data, cache, restore...nothing works, only solution is uninstall/reinstall

Tried also as system app but that doesn't help either

Proximity works fine (i think?) using cpuz i get close 3cm and far 10cm (no 0, i've been wondering for some time if this was normal, but i resetted and recalibrated so it should be fine)
[Android Apps and Games] plexnor:
Thank you for adding extra info to this issue. I attached a modified apk. Could you try it, please, and let me know how it works.
[Android Apps and Games] Theworld2020:
Great

Great application, Unlock Working fine. But lock is not working.

May i know about the battery consumption????
[Android Apps and Games] neutralnn:
Interesting application! Thanks:victory:
[Android Apps and Games] StrangerWeather:
Hi, thanks for your help. I tried the modified apk but the problem persists.
[Android Apps and Games] denzel09:
I tried but it doesn t work after a reboot yet. Only solution is unistall and so on..

I ll wait a new possible fix. Thank you
[Android Apps and Games] Xieon1:
Looks like a cool app. I'm having problems with the phones I have, and almost no battery life. I can't afford the 7% right now, but once I can afford a better phone, this is def an app I'm looking to try out.
[Android Apps and Games] plexnor:
Thanks, it looks like a bug. Next version will fix it.

But if you untick the Any direction, it will work fine.
[Android Apps and Games] Rudjgaard:
I also tried modded apk without success
[Android Apps and Games] plexnor:
Thank you for trying it. Looks like in that case the problem is not related to the first run of the app after installing it. It need a full reinstall which shows maybe something goes wrong somewhere else. Do another proximity related apps work when my fails?
[Android Apps and Games] denzel09:
Hi. Honestly i don t know about other apps, never tried other apps. I always used only this. So what can i do on moto g? Thanks

---------- Post added at 03:11 PM ---------- Previous post was at 03:01 PM ----------

I founded something.

If when blocked i first reset setting and then for second move for example angle from 60 to 90 sensor seems unblocked and works again now. Maybe is it fixable?
[Android Apps and Games] Rudjgaard:
Well it is curious you ask. I'm not sure that they do (at least in my case)

Yesterday I tried fixing a rule for 'automate it' which involved proximity sensor

I used the in app function to record sensor state and it would only read 'far' (10cm) and not near state

(aamof it was a rule that needed near proximity that wasn't working)

Then again I thought it was because my 'near' state is 3cm and not 0 and this hasn't been disproven yet i think

In any case screen on/off during calls works fine..
[Android Apps and Games] yanleites:
Hi.

Isn't it making damage to the proximity sensor?
[Android Apps and Games] Rudjgaard:
proximity is an ir receiver/transmitter...how would that even...?

no
[Android Apps and Games] yanleites:
Cool. So please explain me then how it can be broken / damaged on Samsung Galaxy 3 or 4 new phones?
[Android Apps and Games] plexnor:
Does it happen even if you are using the default settings?
[Android Apps and Games] plexnor:
This is interesting finding. Yes, the 3cm, near state can confuse apps. I think the best way to test if it's working or not by using the sensor tester app.
[Android Apps and Games] Rudjgaard:
Z device test gives same results as cpuz. Proximity recognized and working fine,

the two recorded distances are same as before, 3cm/10cm

I asked around in my device forum and it appears to be a widespread "bug" since it also happens on stock rom

I think apps look for a 0 reading and this messes them up since for some devices

a 3cm distance is almost equal to the value for their 'far' state...

I think i'll have to take this up with the guys at lg, since it happens on stock it seems like a pretty big fault on their side..

I can't ask you to make the app fit just my needs so enough bug reporting on my side (the app was rated 5 nonetheless ;) )

Just one curiosity though, why do you think it works fine until reboot?
[Android Apps and Games] Williams.Joe:
Very good app, i hate power key cannot work sometimes.
[Android Apps and Games] plexnor:
Someone else reported that needs a reinstall after reboot, in that case, It's hard to track separate issues here.

The thing is that my app is prepared for the different proximity values and should work for you.

Did you make the second test while my app was not working? Because my idea is to test the proximity sensor in that situation when my app fails. It would show if the proximity sensor does not work at all in that time.

Moreover, please send me a feedback from the app to have a look of your settings and for further investigation of the issue.
[Android Apps and Games] plexnor:
Could you test the proximity sensor by this app (https://play.google.com/store/apps/details?id=zausan.zdevicetest) when my app fails to work.

I'm interested it the values it reports when it's covered and uncovered. Maybe this time the sensor does not work at all. And this test can reveal it.

Moreover please send me a feedback from the app to get your settings.
[Android Apps and Games] denzel09:
Ok.

Test after reboot with all stock: not work. Also after several reboot.

Tested with zdevice test.

I have same values: 100,0000 when uncoverd, 3 when covered, both when gravity works and not works.

Thanks

---------- Post added at 05:23 PM ---------- Previous post was at 05:17 PM ----------

I sended you feedback mail from app when it doesn t works.

Now if i change something in option and THEN reset setting to default, app returns to work again.

---------- Post added at 05:26 PM ---------- Previous post was at 05:23 PM ----------

Sended you SECOND email with feedback while app works.
[Android Apps and Games] StrangerWeather:
Same here: 100cm when uncovered; 3 when covered.

Sent you a feedback mail.
[Android Apps and Games] Rudjgaard:
Also for me it is the same. Readings from sensor is the same when app is working and not.

Sent you feedback with my settings.

It is curious how 3 different devices that have the same issue all have 3cm as 'near' distance

We might be getting to something here..

Just to add an extra piece of info, my sensor (apds990x) is both light and proximity sensor,

and anything light related works fine in 3rd party apps.

---

Ok so I tried what denzel09 suggested and also for me it starts working again.

Open app, change any settings then from menu "restore default"

It starts working without even rebooting
[Android Apps and Games] denzel09:
[MENTION=4914137]plexnor[/MENTION]

Last test version send me by mail works!

After several reboots seems to have no problem. I ll wait pro version. Beautiful.

I sended you a feed by mail
[Android Apps and Games] denzel09:
Hi [MENTION=4914137]plexnor[/MENTION]. Any news about fix for pro version?

Thank you
[Android Apps and Games] stickmage:
This might have been answered but I noticed this app stops working after few minutes. Unless my device recently powered off, app doesn't work until i open the app itself. Does this have anything to do with greenify? I disabled greenify for this app.
[Android Apps and Games] mbush78:
I'm having a hell of a time getting this working correctly on my Moto X, it worked perfectly on my S2 but on the MotoX it seems to have all sorts of issues and it seems to be related to the proximity sensor. It also causes the phone to refuse to turn off of lying face up and on a table unless that specific option is set and then it instantly turns it off. If I put it in my pocket and turn of by proximity is on, it won't turn off but turn that option off and it'll them work somewhat.

sent from my Moto X
[Android Apps and Games] matchqq:
Got the same problem with the latest version on 4.2.2.
[Android Apps and Games] freakxapps:
this one is really cool app... as i wanted
[Android Apps and Games] mbush78:
Same here, 3 vs 100

My Moto X has the CT460 proximity / light sensor
[Android Apps and Games] airgigorluck:
Pause not kill

I'm sorry if this is basic Tasker config, but, how do I set the task to "pause" gravity screen and not just kill it?

Edit: ok I'm sorry I was being silly. Didnt realise gravity screen has a plugin on tasker.
[Android Apps and Games] plexnor:
Please, send me a feedback from the app and we can investigate the issue further.

However I attached a beta apk which may works already.
[Android Apps and Games] mbush78:
Looks like that has helped alot.

The only problem now, and I dont recall if this was happening on my other phone, is without the option to turn screen of face up turned on, the phone will not turn off not even after the system defined time out (set to 15 sec)... Is that intended or unexpected?

sent from my Moto X
[Android Apps and Games] remidesroques:
Users - please read this

USERS - PLEASE READ THIS

I have been working with plexnor to help him develop this app for months now.

This app is simply the best I have found!

I looked for days to

replace the smartstay

on my SG3 because I am now using rootbox Rom so I lost all things samsung.

None of the app I found works as well as this one simply because it detects if it is in my pocket which is a MAJOR difference. The other will just turn the screen on if I shake....always!

One function that was not really mentioned is the audio one. If you plug your headphones and put your phone in your pocket then it won't be upside down. So tick that function in the settings and your screen will turn off after 2 seconds if I recall using only the proximity sensor that time ( a longer turn off is to prevent from accidentally turning of the screen if you are using the phone and your finger went over the sensor while sliding the notification bar for example)

The turn screen on by motion is not working on all devices and plexnor have been trying to fix it for weeks, I probably shake my phone phone thousands of times while testing the different betas with him BUT the number of devices using android makes it so hard.

POSSIBLE FIX

: I use Tasker and have some gesture programmed on it. Shaking my phone will start my voice command. If that profile is on, then the "turn the screen on by motion" will work.

IF the keep screen on is not working on your phone, check the booster function.

If you put the phone on the table facing up and have that function that turns it off instantly in the table sensor. You can swipe once over the sensor and it will turn the screen back on and then follow the screen timeout that you set in your phone settings.

Sometime the screen won't turn off if you put it in your pocket, just because of fabric OR you actually made it turn off but back on because maybe you didn't have the right move. With a little pratice I'm sure y'all figure it out. I also have my timeout set at 15s in my phone settings so anyway it will turn off pretty quickly and not turn back on if it's in my pocket.

If I come up with more stuff I'll let you know!

Peace
[Android Apps and Games] aldroidx:
really appreciated app, hope to see an update that fixes some bugs :) thanks dev
[Android Apps and Games] karinkato:
Point noted.. Sir

it will be my pleasure to help you to make this app more stable for other android devices. :highfive:

i am not a dev like you but will do my best to make thing better.

p.s - if some day xda will make ranking bar for Devs then i have 5 stars ready for you..
[Android Apps and Games] plexnor:
Thanks for reporting it's working fine on your device.
[Android Apps and Games] Front-Line:
This aplication works very fine in my device, but please change the notification icon, is ugly :p anyway great work bro :D
[Android Apps and Games] plexnor:
thx, an update coming soon ...
[Android Apps and Games] plexnor:
Yes, it's quite ugly on ICS :) just I never have mood to fix it :rolleyes: but maybe soon comes the time ... :)
[Android Apps and Games] plexnor:
Thank you for your contribution to make the app better! :cowboy:
[Android Apps and Games] AK211990:
just updated and no longer turns off when face up on table..:(
[Android Apps and Games] plexnor:
New release

Gravity Screen Off 1.33

----- Changes ------

Fixes:

- the Turn Screen On by Motion feature works on more devices

- the "turn screen off when on table by face up" function improved:

- - - harder to activate by mistake in hand

- - - if you turn the screen back on by swipe the screen is kept on for 60s because the normal 15s timeout can be too short without Keep Screen On by Motion

- - - screen can be turned off by swipe if you intend to turn it off earlier

------------------------

This release was not tested too long due to there were no major changes. However it looks like, I'll have to release a fix of the fix :)

Please let me know if the "turns screen off when face up on table" feature does not work for you anymore!
[Android Apps and Games] plexnor:
The new version takes into account the "keep screen on by motion" feature as well. If it's set too sensitive it can cancel the screen off event.

Could you set the sensitivity little bit smaller to see if it's the case on your device?
[Android Apps and Games] mdfzhi:
Thank you for the update. Now no more spamming Logcat with warnings :thumbup:
[Android Apps and Games] floyd372:
Works great on my SE LWW ,:thumbup:
[Android Apps and Games] plaktoets:
Really like the app but i am running into a serious bug. I have an N4 stock rom 4.2.2. Since i installed the app yesterday evening, for four times my sim stopped working. Just like it just rebooted, but it didnt.

Had to punch in the pincode in order to make / receive calls. I assume (but i am not sure) this happens after the 10 minutes of standby has passed.

The problem completely dissapeared after i unintalled the app.

This is probably not really useful since i dont have any logs or anything, but i thought i'd mention it anyway.
[Android Apps and Games] plexnor:
Thank you for reporting the issue, which is quite mine blowing. After 10 min, only a wakelock is released by my app but looks like it interferes probably with an another app I guess and android solve the problem by a reboot or I do not know ... I have not met this kind of issue before.

If you can guess which another app may interferes with mine on your device you can try to switch it off and see if it solves the problem.

Anyway I'll keep in mind the issue and let you know if I know more about this problem.
[Android Apps and Games] plaktoets:
Please disregard, i just experienced the same thing after i removed your app. Seems i have another issue at hand :(
[Android Apps and Games] PhantasmRezound:
Re: Troubleshooting Gravity Screen Off on HTC Rezound

Very nice so far, thank you. I'm using it with an HTC Rezound that is showing a bit of age and have a custom ROM, so take some of this feedback with a grain of salt haha:

1. The proximity sensor was not detecting NEAR and FAR modes properly, or at least was a poor judge of distance. A can of compressed air for electronics may have helped loosen any debris that settled in there, but ultimately I had to recalibrate the sensor with the Rezound Proximity Sensor app. That helped with the function of your proximity options; perhaps add a similar calibration feature for any other devices out there within this Gravity app, if the setting is relatively generic across different Android platforms? Noted you had others with proximity issues in the Q&A, perhaps the air or app may help.

2. While I can set the Android option Security > Screen Lock to None on this Sense 4 ROM, there is still the HTC lockscreen pop-up every time the screen comes back on. The Disable Screen Lock option on your app had no effect. I cannot resume immediately what I was doing as such. Not sure why the setting won't stick when secure lockscreen is disabled, if HTC version is to blame or what.

3. I'd like to request a delay for the screen off function of the Table Facing Up mode when transitioning from Facing Down. I'd like to simply flip the phone over in place to resume use. However, the screen will quickly come on and go back off with the current settings. Perhaps add a 1.5 second delay or some other way of sensing this event as an exception for the Facing Up ruleset?

Thanks again for your work on a quite smart smartphone app.
[Android Apps and Games] plexnor:
New release

Gravity Screen Off 1.34

----- Changes ------

----- v1.34.MARKET ------

Fixes:

- In the Table Sensor feature the "turn screen off when on table by face up" function improved again:

- - - - No more accidental screen off. Need to cover the proximity sensor for 1.5 second to turn the phone off.

- - - - If the phone was lying on a soft surface and was in use, the small motions could activate again this function and the screen turned off unexpectedly. From now it'll happen not as often.
[Android Apps and Games] plexnor:
1, To recalibrate the proximity sensor may be a good idea and could solve some issues. I'll have a look of this and try to do some tests but I'm afraid it's not supported by all device.

2, Interesting why the screen lock remains on your phone, I guess it's an issue with the rom. Maybe you can try to use third party apps to see if it helps (for example https://play.google.com/store/apps/details?id=de.j4velin.delayedlock2.trial ). In my app the Disable Screen Lock option mainly was intended to use on GB where not easy to get rid of the screen lock.

3, The Lying Face Up feature has got exactly 1.5 second delay in the new 1.35 release, I think you are right it's more convenient now. But I did not understand exactly the another improvement you are recommending for this feature.

Thanks for the detailed feed back!
[Android Apps and Games] mikelav456:
I was also having problems with the Market version. With this attached version it works only ONCE when I turn it on, but then after one screen off then screen on, it stops working until I toggle the app off/on.

I am on Paranoid Android 4.4.2
[Android Apps and Games] anaglich:
Are there any plans to support the Nexus 5 motion co-processor for increased battery life on the phone?
[Android Apps and Games] epithetic:
Seconded. Having an option to individually configure, enable and disable all of the features (pocket sensor, table sensor, etc.) would be fantastic.
[Android Apps and Games] Taomyn:
+1
[Android Apps and Games] plexnor:
Please, send me a feedback from the app and we can investigate the issue.
[Android Apps and Games] plexnor:
That cannot help real time monitoring.
[Android Apps and Games] anaglich:
Darn. Thanks for the knowledge.
[Android Apps and Games] Rashiel:
Is this eating much battery?
[Android Apps and Games] denzel09:
Hi [MENTION=4914137]plexnor[/MENTION] Any news for update pro in play store.

Thanks and good year!
[Android Apps and Games] ymy3890:
Turn screen on by motion

Hi, may i know what is the impact if i set to 15 minutes or 16 hours?
[Android Apps and Games] Cintra2:
Not for me :)

---------- Post added at 06:58 AM ---------- Previous post was at 06:50 AM ----------

Hei,

I just solved the irritation of the phone turning off when I was using it, by turning off the 'lying face up' option, though the phone (SG Nexus) still turns off (sometimes) after approx 6 seconds when put on the table :)

mvh
[Android Apps and Games] plexnor:
I had some time today for investigating this issue further and it looks like the app will work from now without the hack I applied in the previous test version.

If everything goes well I will release a new version soon.

Please let me know how this apk works.
[Android Apps and Games] primetimelive:
This is the app I've been looking for.

I primarily use it to turn on the screen when my phone is on my car mount. The swipe over the proximity sensor to turn on the screen makes it way easier to turn on my phone when it's in the car dock.

The other stuff are just extras.:)

Bought the paid app to support the Dev!
[Android Apps and Games] lcdsantos:
Hi, I´m a registerd Pro user, but tried to deinstall the app due too much false positive turn on and some not-turn-off while it should.

I sucessfully deinstalled Gravity Screen. But now the phone is turning the screen on (and keeping on forever) if I put any object next the proximity sensor.

I also has Dynamic Notifications installed.

Does anyone knows how can I fix this?

Att

Luis Santos
[Android Apps and Games] denzel09:
Last test version works!!!

I wait the pro version.

Thanks!
[Android Apps and Games] mbush78:
Been using this patch for 2 days now, no issues so far.
[Android Apps and Games] Taomyn:
Great app, got the Pro version.

Is it possible to limit the proximity control for switching on the display to only work when the phone is in table mode and the phone is still?

The reason is because on my Nexus 5 I have to set Pocket Sensor to any direction as the headset socket is at the top, but this means that nearly every time I pick up the phone I end up switching the screen on e.g. I pick up the phone from the table I put it in my pocket and the screen comes on and often stays on in my pocket - it's like the proximity sensor isn't switching the screen off again even though the options are set to do so. I can pick up the phone with the screen on, hold my hand in front of the sensor and it doesn't switch off the screen until the standard timeout.

Also, I have discovered that if I use the Tasker 3rd party option to enable/disable Gravity Screen, it prevents any WiFi actions (On/Off/Toggle) from working so my profiles cannot control WiFi - it may affect other tasks as well. If I disable the Gravity Screen actions my tasks work again and WiFi will be controlled.

Lastly the app settings screen will not rotate 180 degrees so when checking the sensors and rotating the phone the display is at 90 degrees when the phone is upside down.