yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] gr8st:
I know what you mean, it's not a perfect solution to all usage patterns but it offers a great alternative for people who don't want the proximity/light sensor running. I really urge you to reconsider.

At the very least, can you allow 80-90 degrees as an off condition? Nobody uses their device at that angle anyhow. Thanks in any event.
[Android Apps and Games] mva1985:
I'm laying on my couch right now, phone at an 85-90 degree angle... just saying
[Android Apps and Games] gr8st:
Weird, I never see that unless the device is exactly upside down. Make sure you untick the option when it's implemented! :p
[Android Apps and Games] Flyview:
Exactly, I hold the phone up vertically all the time. Are you worried that the proximity/light sensor is too power demanding? I've optimized its use heavily. If some other rule is keeping the phone on, it only turns that sensor on briefly every few seconds.

Just put out a small update:

3.0.5 (March 21, 2016)

-Reduced max dim time to 30s for long continuous wakelocks reaching max actively-kept-on time

-Slightly updated wording

-Color spinner drop down icon
[Android Apps and Games] mva1985:
Please correct me if I'm wrong.

I find Kinscreen to be an almost perfect solution. Mostly my screen is kept on by motion, angle and the charging option.

If I put my phone in my pocket head down I'm assuming that the covering of the proximity sensor takes precedence over the motion and angle and after the set period of time (10 seconds for me) the screen is turned off.

Hopefully, that is correct [MENTION=2584205]Flyview[/MENTION] ???
[Android Apps and Games] Flyview:
Yes, turn-off rules override keep-on rules. You can test everything with KinScreen open while watching the statuses at the top. Anything green is keeping the screen on, anything red is turning it off. Yellow means it would keep it on, but something else is keeping it on. White just means nothing is detected and it's timing out normally.
[Android Apps and Games] Flyview:
It's about time I got this translated. Any volunteers? I can offer you a promo code for a free upgrade to premium.
[Android Apps and Games] sunsero:
Sounds great but I'd love to see these additional triggers:

- keep screen on while certain app is running

- keep screen on while data transfer is more than xx KB per minute (e.g. useful for app updates as I automatically disable WLAN when screen turns off)

Can these features be integrated please?
[Android Apps and Games] sunsero:
I'd be willing to do the German translation if the mentioned features eventually will become integrated.
[Android Apps and Games] Flyview:
Anything's possible! I have to look more into it but for the "while app is running" I believe the only way to know what app is in foreground is to either be constantly checking (bad) or somehow through accessibility service (confusing for people to set up). I'll look more into this as many people have requested it. Do you need this feature that often that you can't use the notification toggle?

Well.. thanks.

So I was thinking last night, how many of you would use "TURN ON" features (not just keep on)? I'm talking about how Gravity Screen will also turn the screen on when you pick it up, proximity changes, etc. I never cared much for it, especially because you have to keep the CPU awake to keep using the sensors after screen off.
[Android Apps and Games] lideweister:
I wouldn't use this. Like you said, too much of a battery hog.
[Android Apps and Games] Flyview:
Yea but could be useful for people with broken power buttons.

I hadn't used Gravity Screen in years so I checked it out to see how it compares. Seems pretty confusing and all over the place to me. I would hope KinScreen is easier to understand? What are your thoughts? How do we get KinScreen to a million downloads?
[Android Apps and Games] lideweister:
Yeah, I think it's easier. And not cluttered at all, it looks much better then Gravity Screen.

Honestly have no idea how you can get more downloads. Maybe give away some promocodes like the guy from Swifly switch does? Dunno if it's working for him though, you'd have to check.

I can see your point about it being useful for broken power buttons btw.
[Android Apps and Games] sunsero:
I think since Lollipop it requires an extra permission from the user (like device administrator). So maybe implement it as an advanced option. This feature would be very useful for e.g. using cooking receipts on the mobile. It can be very annoying if the screen turns off then because you forgot to increase the screen timeout. Currently I'm using Llama for this to increase the screen timeout. It doesn't seem to use too much CPU for this and actually you only have to check for the active app while the screen is on e.g. every 30 seconds.

So actually more important would be the feature to check for data traffic. There's no keep-screen-on app actually being able to check for traffic. It must be possible to read out traffic as e.g. the app DroidStats knows how much data or WiFi usage there's been.

Actually I'm using an app called Simple Cover Lock to turn the screen on when the proximity sensor is released. The feature doesn't seem to be a battery hog if it's implemented in the right way...
[Android Apps and Games] Flyview:
The recipe use case is actually something I've encountered. Wouldn't it be easier to use the notification toggle than have your browser app always keep the screen on?

The data traffic I could do as I already do that in my other app LeanDroid, but in what scenario would it be useful?

I don't mean to sound stand offish but I really don't want to add more complexity to the app unless there's a good reason for it.

As for the app that turns your screen on with the proximity sensor, how do you know it isn't draining your battery? Afaik to get proximity sensor values after screen off, the CPU has to be kept awake in a partial wake lock. Not to mention having to keep the proximity sensor on and reading values continuously. From my testing it's the most power hungry sensor too. Having said that some phones have a separate magnetic sensor dedicated to telling the phone (CPU and screen) to wake up when the cover is lifted.
[Android Apps and Games] sunsero:
Regarding the recipe use case: Well, for me it's the mail app that shows the recipe. Of course I could use a notification toggle but actually I don't like having too many notifications so I rather hide most of them in the App Info. Actually I'd love to have a good automatic solution and hope to finally find it with your app ;)

The use case for the traffic condition would be simply large downloads over WiFi without turning the screen (and thus WIFI) off before the downloads complete.

Regarding the battery usage of Simple Cover Lock: Even on my old mobile i8190 overall battery drain the with this app can be as low as -0.6% per hour with screen off and telephony on. Also the mobile goes into Deep Sleep mode so I think there's a way to check the proximity sensor very efficient. The only wakelock GSAM Battery Monitor shows are AlarmManager wakelocks of 0.2s overall during more than 17 hours of sensor time....
[Android Apps and Games] TNSMANI:
For the recipe case, isn't it simpler to use the angle option for keeping the screen on?

Or do you lay down the phone flat while using the recipe?
[Android Apps and Games] sunsero:
Well, mostly I'm using a tablet for the recipe use case. It's lying then almost flat for using in portrait mode but anyway it's a Lenovo Yoga tablet which due to the built-in stand almost always stands in landscape mode even when not using it.
[Android Apps and Games] JohnHorus:
Proximity sensor covered timeout

Love the app! [MENTION=2584205]Flyview[/MENTION] Thanks for all your hard work!

When setting the app to turn off after covering the proximity sensor for a certain time, my current phone/ROM implements the limit of 10s from the last touch that the in-app pop-up warns about. However, my old phone did not implement that 10s limit. I could set it to 1s and it would turn off immediately.

Do you know where in the system this value is set? Could it be possible to change it manually? I'd really like to do so if possible, it's a small difference in the time period, but it all adds up!
[Android Apps and Games] Flyview:
I'm not sure how that minimum timeout since the last touch is implemented. Until recently I didn't even realize some phones don't have it. It would be cool to figure out! Someone who makes custom ROMs might have a better idea. Let us know here if you do find out! Maybe it's even something KinScreen could change.
[Android Apps and Games] cecobbb:
create app [MENTION=2584205]Flyview[/MENTION] thank you :)
[Android Apps and Games] Flyview:
Thanks!

New update just got posted on Play store and XDA Labs!

3.1.0 (April 11, 2016)

-Fixed incorrect amount of dim time before screen times out

-Added Czech translation (Thanks Hamsa!)

-Slightly improved layout

-Other small bug fixes

-Updated support libraries to 23.3.0
[Android Apps and Games] Flyview:
Anyone else want to offer up some of their time for a translation for a free premium promo code? :D
[Android Apps and Games] tmacher:
I can translate to polish.
[Android Apps and Games] Flyview:
Email teqtic@gmail.com please :)

Sent from my Nexus 5
[Android Apps and Games] tmacher:
I already translate for you leandroid.
[Android Apps and Games] Flyview:
I have some exciting news! It turns out I may have found a battery efficient way of turning the screen on without holding a CPU wakelock. I should have something in the beta channel in the next couple of days!
[Android Apps and Games] Flyview:
Just published this on the beta channel of Play and XDA Labs. Give it a shot and please report back any issues! Turning the screen on with the proximity sensor does not require keeping the phone awake (wakelock), but it does require keeping the proximity sensor listening. The battery impact should be minimal but testing will tell.

3.2.0 - Beta 1

-Added ability to turn screen on by waving over proximity sensor!

-Fixed greyed out options when they shouldn't be

-Minor layout improvements
[Android Apps and Games] Flyview:
Any feedback on the new turn-on option? Working well?
[Android Apps and Games] JohnHorus:
This sounds interesting, I look forward to trying it out for my M8. Moto X Play includes that feature in Moto display, so not sure how they'll interact with it turned on.
[Android Apps and Games] adl:
For me the LED flashes from time to time I trigger the proximity sensor. Doesn't happen when I disable the option to wake up screen in kinetic.
[Android Apps and Games] Flyview:
On what phone? That's weird there's absolutely no code that deals with the notification LED. Just put out 3.2.0-Beta 2 so that should be available soon. Some small fixes with the turn-on function.
[Android Apps and Games] adl:
Might be the phone itself beeing wonky, had some other hickups as well. Clean flashing now to see if it´s still happening. Nexus 6 is the phone by the way.
[Android Apps and Games] Flyview:
Just published 3.2.0 - Beta 3. I added an option to disable the turn-on by proximity feature if the screen's been off for xx min. This will save battery by unregistering the proximity sensor if you haven't touched your phone for a while. This is shaping up to be a really nice tool, and as my first published app I'm quite proud of it :) Spread the word!

KS 3.2.0 - Beta 3

-Added ability to turn screen on by waving over proximity sensor!

-Added time exception for turning screen on by proximity to save battery

-Fixed greyed out options when they shouldn't be

-Fixed translations not applying to buttons

-Minor layout improvements

P.S. No other volunteers for translation? Free promo code for any one of my apps.
[Android Apps and Games] Flyview:
One more beta is out, probably the last before final release!

3.2.0 - Beta 4

-Added ability to turn screen on by waving over proximity sensor!

-Added time exception for turning screen on by proximity to save battery

-Added back the ability to change lockscreen timeout

-Fixed grayed out options when they shouldn't be

-Fixed translations not applying to buttons

-Minor layout improvements
[Android Apps and Games] adl:
Weird, I got the short notification light up again with the Beta 4. Had it with Beta 2 I think but it was gone with Beta 3.

EDIT:

Might be a ROM thing, I froze kinetic and still notification light is shown for a short time.
[Android Apps and Games] aquatix:
Can you add two intents to enable and disable "Tap to keep screen on"? I use that with Tasker to keep my devices awake when for example backing up (and syncing to NAS). Would be really appreciated :)

(Tasker keeps track of what apps I have open, so no need for Kinscreen to do so)
[Android Apps and Games] BustedFly:
This app is amazing. I use it on HTC one m8 with aicp.

I buy this app in a few days.

Thx
[Android Apps and Games] aquatix:
Do you need a Dutch translation? I'm a native Dutch speaker, but don't have my devices in that language, so don't know whether KinScreen already is done ;)
[Android Apps and Games] Flyview:
Already added in 3.0.4. The intents are:

com.teqtic.kinscreen.INTENT_START_SERVICE

com.teqtic.kinscreen.INTENT_STOP_SERVICE

Thanks, enjoy!

Certainly do! Please email teqtic at gmail dot com.
[Android Apps and Games] aquatix:
Hey thanks, but I already tried those and they seem to stop and start the whole service, so on stop the notification disappears and start shows the notification as normal. However, I would like to have intents to do the "keep screen on", like tapping the notification. Or am I doing something wrong?

Mailed :)
[Android Apps and Games] Flyview:
Oh you're right, I misread what you needed. Can you not simply get tasker to hold a wakelock when needed?
[Android Apps and Games] TNSMANI:
[MENTION=2584205]Flyview[/MENTION]

Nice to see that KinScreen is featured on XDATV and is also on XDA Labs.
[Android Apps and Games] MacDoof:
Hi, at first sorry for Bad english, i try my best that you will understand.

Since the update with the feature to wake up with sencor, the battarydrain is verry bigger.

I was use gravity screen time before. Many month, there is the batety drain not so big.
[Android Apps and Games] Flyview:
Don't worry about your English, I understand. How are you measuring the increased battery usage? Have you done a scientific test between KinScreen and Gravity Screen?

I have noticed KinScreen come up in the stock Android battery usage screen whereas it didn't before, but I don't think it's consuming as much as it claims to be. If you use GSAM Battery Monitor you will see it's still minimal (<1% in my case). The reason for the increased usage is having to keep the proximity sensor on while the screen is off. It's still better than keeping the CPU awake, which is required if you were to want to monitor the motion sensor with the screen off. For some reason proximity sensor still works without holding a partial wakelock.
[Android Apps and Games] aquatix:
That's a really interesting notion and I re-dug into Tasker. However, the only relevant option I found was the "Display > Stay on" one, which isn't supported on Android 4.2+

I also tried finding a way through Secure Settings (Tasker plugin), but no juice. I wouldn't know how to set a custom wakelock otherwise.

So, if you could expose that "notification button" functionality through intents, that would be truly awesome. I understand if it's too much of a hassle of course.

BTW, Premium is great :cool:
[Android Apps and Games] Alanon:
I've been a user of Screebl for a long time now, but due to some bugs with Lollipop I went looking for alternatives. That's how I came upon this. Your app is great, seems much more stable than Screebl and more configurable, at least from what I could gather.

The question I have concerns the gyroscope. My phone doesn't have it, and from what I understand, those functions won't work for me. But ol' Screebl manages to quantify the angle on my device nonetheless, and does so fairly accurately.

With KinScreen, I could set the phone next to my head, and the very rhythm of my breathing would perpetuate the screen-on state. I realise you could somewhat counter this with a shorter total timeout value, but it seems to me that Screebl offered a more elegant solution. I guess I'm asking whether you know how they achieved it and whether you'd consider copying that method as a back-up, in cases where the gyroscope isn't there.

Keep up the brilliant work!
[Android Apps and Games] Flyview:
Ok, I'll add intents and hook up the same functionality as the notification.

Thanks for the feedback and good question! I have no idea how Screebl does it without a gyroscope but it's definitely something I will look into. I have a device without a gyroscope that I could try Screebl on. Can you try the app Sensor Kinetics from the market and post a screenshot of the sensors you have available?

Sent from my Nexus 5
[Android Apps and Games] Alanon:
Here you go. Upon seeing this, I'm assuming it's the rotation sensor.
[Android Apps and Games] Flyview:
Thanks. What are the values when the device is flat on the table, up 90deg, and flat upside down? Do the values drift at all if you leave it sitting on the table?
[Android Apps and Games] Flyview:
Can you try this intent? It's already there and is how the notification works. If you need ON/OFF specifically I can do that.

com.teqtic.kinscreen.ToggleKeepOn
[Android Apps and Games] Alanon:
Ok, I've spent some time looking at the figures, they drift almost constantly, with sometimes inexplicable jumps for no apparent reason. Despite all that, the changes are mostly confined to the last two digits, but when a jump occurs, I have no idea why. Inasmuch as this is a constant, I've written down my best approximation of the ranges, when they were relatively "quiet".

Flat: X=0.00055/66, Y=0.0048/56, Z= 0.8150/215;

90°: X=0.3579/70, Y=6072/7, Z=6064/9;

Upside down: X=0.8197/258, Y=0.5130/50, Z=0.0020/30;

I don't know if these numbers make sense to you, to me it's all gibberish. It might be worth mentioning that my device (LG Spirit) has a slight curve to it, which might somehow mess with the results?
[Android Apps and Games] Flyview:
Yea they make some sense. Looks like I could fall back to the rotation sensor when gyroscope isn't available. From the Sensor Kinetics in-app help article: "When a gyroscope is not available, the rotation information is derived from the accelerometer and the magentometer". What I actually use currently for the angle measurement is the "gravity sensor" which like the rotation sensor is a virtual sensor computed from the accelerometer and gyroscope, but it doesn't work if there's no gyroscope. Having said that I don't expect the rotation sensor to be very accurate when calculated from the accelerometer and magnetometer alone, but it's better than nothing!

Edit: I started wondering why I didn't use the rotation sensor to begin with for my angle calculations. It looks like the rotation sensor uses all 3 real sensors consisting of accelerometer, gyroscope and magnetormeter, but gravity sensor only uses accelerometer and gyroscope. On my Nexus 5 this actually results in lower power consumption for the gravity sensor. This is confirmed by Sensor Kinetics.
[Android Apps and Games] Alanon:
Huh, go figure! It makes sense that the gyro would increase the accuracy, but even with Screebl that wasn't an issue. You could simply use a slider to set the appropriate angles for your device and it's sensitivity. Heck, in situations where the only in-depth criterion was that angle, flimsiness was almost a feature.

Either way, I'm certainly glad that there's an actual perk to the situation. So, in the end, are you mulling over a recode, an additional option, or something else? Any help I can provide?
[Android Apps and Games] Flyview:
I'll code in a fall back to rotation vector calculation if the gravity sensor is unavailable (most likely means gyroscope isn't available). I'm really glad you brought this up because it will enable the tilt angle features for some devices.

Sent from my Nexus 5
[Android Apps and Games] MacDoof:
Hi Flyview, thx for answer me, you are right in gsam batery APP kinscreen is verry down,no big batterydrain, but also no deep sleep.

Please don't worry about me, i love your APP, and before you pick the Option to wake up phone with Sensor, i was usw kinscreen in combination with gravity screen, than you build thes New feature,and i think cool just one APP,no longer two .but the drain was much bigger. To lunch time my phone musst be charge again.

Could you understand what i try to say?

But i love your APP, i use it but without sreen on function. THX again for this great APP.
[Android Apps and Games] Flyview:
If the phone isn't sleeping that's a problem. Can you confirm that with the turn on by proximity option the phone doesn't sleep? Can you provide some screenshots? Make sure you disable gravity screen while testing!

Sent from my Nexus 5
[Android Apps and Games] itblast:
It's simple and easy to use. :good:
[Android Apps and Games] Flyview:
Just released a new beta. Should already be available on Play store and XDA Labs. [MENTION=5491304]Alanon[/MENTION] see how the angle performs now. I got it to fall back to a rotation sensor calculation when there's no gyroscope. It should go up to 90deg from flat titled up in any direction (screen facing up or down).

3.2.0 - Beta 5

-Added ability to turn screen on by waving over proximity sensor!

-Added time exception for turning screen on by proximity to save battery

-Added back the ability to change lockscreen timeout

-Angle detection now works on devies without a gyroscope!

-Fixed grayed out options when they shouldn't be

-Fixed translations not applying to buttons

-Added German translation

-Added Dutch translation, thanks Michiel!

-Minor layout improvements
[Android Apps and Games] Alanon:
[MENTION=2584205]Flyview[/MENTION]: Just trying it out, it works beautifully, except one little thing. The upside-down reading is detected as zero degrees. So if you were in bed, keeping the screen flat-ish in front of your face, you wouldn't be able to use the phone. Granted, it's quite tricky to achieve such perfect 0-10° flatness mid air, as most people tilt the phone to some extent on such occasions, but since the angle trumps motion in this case, it's possible to imagine a scenario where the screen shut-off is unintentional. I remember Screebl having a special option for "back viewing" or something, I presume in order to counter this very small chance?

Anyway, I'm not saying it needs to be fixed, I'm not even sure if it's possible, but I just thought it worth mentioning. As a middle ground, or even as a separate feature, it might be useful to add some sort of indicator, making sure that folks know when the screen is not within the set margins and the timeout has started? It could be a different coloration of the status bar icon, for instance? That way, you just move the phone a little bit and get on with what you were doing. Even in instances where the phone is intentionally still, like, when you are watching movies, it could be a good way to remind folks that a timeout is about to start. It might be better than the screen starting to dim.

On a side note, are you still looking for translators? I could provide a translation to Serbian?
[Android Apps and Games] Flyview:
I actually used to have it top out at 90deg when tilted past 90deg from flat up. In that case it would be 90deg when upside down, but someone actually needed it to be 0 when upside down because they didn't have a proximity sensor and still wanted the screen to time out while motion was being detected. Like you said, the chances of it being flat while reading with it up in the air is still pretty slim, so I think I'll leave it as is. Definitely, the more languages the merrier. Send me an email and I'll send you the strings file to translate. I'll send back a promo code for a free upgrade :)