yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] velis74:
I spent the entire day trying to replicate the issues described. Without success.

So I will now try to do this:

1. revert to the old version on Play store

2. Make separate .apk's, each including one more of the new features

3. upload these .apks to the OP so that you guys can take a look at them and tell me which is the one actually causing all the issues.

The features introduced will be in order of relevance to the issues reported (as I see it):

1. app language

2. Separate setting for smoothing time when dimming

3. Excluded apps (will disable VAB when an excluded app is on top)

4. Super dimming

To be honest, I'm expecting only superdimming to be at fault, but the issues are so strange that I can't be sure. So I will just prepare all the .apks - it will make finding the problem that much easier.

It will take some time for me to prepare all this, so I ask for a little more patience.
[Android Apps and Games] burgess_boy:
Re: [APP][2.1+] Velis auto brightness 2.81.92

The install button issue I have. Screen filter app has the same issue it is something to do with interfering with the Android interface.
[Android Apps and Games] velis74:
This was supposed to have been solved already, but it seems it persists under some conditions. I managed to get my phone stuck today a couple of times too.
[Android Apps and Games] DisruptiveMind:
Glad I came and read this now, been trying to figure out what was causing the install button issue for hours didn't even think it could have been an issue with the app. Thanks for trouble shooting this for us.
[Android Apps and Games] velis74:
Google Play and OP now updated with the .apk that is supposedly without the new issues.

I'm going for custom language selector now. Will be done within an hour, I hope.
[Android Apps and Games] velis74:
Reimplemented the custom languages. This is an even better-working solution than the previous attempt, but that's beside the point. The apk attached to this post.

Please let me know if it's working as expected.
[Android Apps and Games] DisruptiveMind:
Install is working again, cannot comment on others as not experienced them.
[Android Apps and Games] velis74:
Here's the apk with separate setting for smoothing when dimming.
[Android Apps and Games] velis74:
And the .apk with excluded apps support. This should work much better now - I found a couple of nice insects inside :D

This one is very important for those that reported lag. It contains some code that is executed periodically - the check for top activity, that is - and that could cause some issues. Unfortunately so far I haven't found a way to actually get notified when top activity changes (which would eliminate the need for periodic checks).
[Android Apps and Games] velis74:
This one is very similar to the above, but includes one optimization that could also affect lagging. Please test.
[Android Apps and Games] Kameeeleon:
Re: [APP][2.1+] Velis auto brightness 2.81.92

Excluded apps works!

One bug is that when leaving preferences all profiles disappear - they only return when quitting and restarting app.

Sent from my HTC Sensation
[Android Apps and Games] velis74:
Ooops. Will fix asap. Thanks.
[Android Apps and Games] velis74:
Fixed.

Plus find the last .apk with superdimming re-enabled attached.

Please let me know which of the .apks starts making problems.
[Android Apps and Games] timothyung:
1st apk smoothing w/dimming lagless

2nd apk excluded apps lagless

3rd lagless

4th was a tiny bit laggy when I first enabled superdimming, but after a while smooth as butter

I will report again after testing for a day:good:Nice job!
[Android Apps and Games] cukierkas:
Re: [APP][2.1+] Velis auto brightness 2.81.92

Thanks dear developer for last update. For my phone, s-curve seems for work best. And excluded apps work finally. I'd say upload this version to market, looks best in whole crew. :)

Hows yours youngster?

Sent from my GT-I9003
[Android Apps and Games] velis74:
Which one: the excluded apps (one before last ) or the final one with superdimming enabled?

Great!! She's laughing all the time. The only time she gives me a bit of a hard time is when she needs to go to bed for the night. Otherwise she's all joy :D Best decision we (my wife and me) made in a decade :angel: :D :D
[Android Apps and Games] cukierkas:
Re: [APP][2.1+] Velis auto brightness 2.81.92

The final one with superdimming.

good luck with your child:)

Sent from my GT-I9003
[Android Apps and Games] timothyung:
Velis, it is working great:good: No noticeable lag at tall.

One minor problem I do notice is that when it tries to superdim, I can notice a filter running from the top of the screen to the bottom. Not a big problem, but it would be nice for it to be fixed (if possible).;) Otherwise it is perfect!:D
[Android Apps and Games] velis74:
I noticed that too. However I don't do that animation. I just set the window to the screen (without the filter I place it far off screen). It seems Android then decides it would be nice to decorate the transition with a slide-in :)

Not sure how I could fix that except maybe by actually removing / re-adding the window. I guess at some point I will have to fix this because otherwise it will be too annoying to use.

Edit: I think I fixed it.
[Android Apps and Games] velis74:
2.81.101 (11.2.2013)

Custom app language selection

Excluded apps (will disable VAB when an excluded app is on top)

Super dimming: in addition to backlight also add a screen filter for deeper blacks

Separate setting for smoothing time when dimming

Android 2.1 & 2.2 compatibility fix (store will still never work below 2.3)

Hope this time it fares better :)
[Android Apps and Games] velis74:
I thought about this a couple of times now and I think it's a great idea. Added to TODO so that I don't forget to add that when I delve into averaging next time (I'm really scared of that piece of code ;) ).

I'm sorry, but I already had this thread locked because somebody thought app description was too similar to his app's description. I don't want to go there again.

I will however always gladly accept suggestions for new features either in this thread, by e-mail or any other means available to fans of my apps.
[Android Apps and Games] DisruptiveMind:
Velis you genius loving the super dimming, me and bright lights don't get along and when its late and my eyes are tired with the screen super dimmed I don't half blind myself in the dark switching screen on to check time or perform a quick task etc. Thank you so much!

Only thing I would ask is the popup you get when the value is wrong on super dimming the warning textbox closes to fast by far so still never got to the end :D could you either increase screen time for it or add an OK button to close once read. The reason I had asked previously about decimal points is because whatever that box says it has a 0.15 in it so had tried to enter it. Now my brain is working I realise what a dumbass I was actually asking about that! :D

Edit: Any chance we could save the super dim setting within a profile for easy switching between normal and super dimmed settings? Also any chance of adding say another two super dimmed settings of varying strengths say medium and light to help resolve the working with one phone but as you said previously not with yours because it is too dark. I'll pop back if I think of anything else?
[Android Apps and Games] WibblyW:
Small bugette I think. Brightness preset in the settings does not update to 'Custom' after a custom preset is selected from the main UI.
[Android Apps and Games] velis74:
Hm, that's a Toast message telling you that it's too dim to enable super-dimming right now because you might not see anything at all. I have already set it to display as long as possible (2 secs I think). There are only two constants there: short and long...

I hear you about storing more than just the graph in a profile. I'm just not sure how I'd go about doing that. Perhaps a list of checkboxes where user could select which settings get saved in a profile?

I don't understand what you mean by two additional superdim settings. Superdimming is linear. There's no strong, medium and light effect: the effect just intensifies the closer you get to zero brightness - from 0 at threshold to 1 (full dimming) at zero brightness.

Yep, confirmed. It was a minor bug so I left it alone so far :) :angel:
[Android Apps and Games] WibblyW:
Enhancement?

How about building the data points in the graph from a mode where you can add points based on current conditions?

So have an 'Add reference point' button which opens a dialogue with a brightness slider and a 'Set" button. Usage would be to set the brightness slider for the current ambient (sensor) level and add this ambient-brightness-to-screen-brightness link as a new data point in the graph.
[Android Apps and Games] velis74:
But this is how it works right now!?!?! The red lines reflect sensor reading and brightness. If you only move the horizontal bar, you will be doing just what you described.
[Android Apps and Games] WibblyW:
Re: [APP][2.1+] Velis auto brightness 2.81.101

Haha. Ok. I think I was confused but how the whole graph changes shape as it smooths the points. I'll go back to sleep now :P
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.81.101

On Tapatalk when I click on share, the brightness increases significantly for a while. What could be the reason for this?

I can reproduce the same each time.
[Android Apps and Games] azrash:
Re: [APP][2.1+] Velis auto brightness 2.81.101

Have just tried replicating it on my end, the same issue doesn't happen here on the Nexus 4

Sent from my Nexus 4
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.81.101

Okay, tried it again. Now on doing the same instead of getting bright it gets little dim for a while. :S
[Android Apps and Games] velis74:
Seems like excluded apps at work.
[Android Apps and Games] Kameeeleon:
Re: [APP][2.1+] Velis auto brightness 2.81.101

I have the same when I click share in imdb app, the only things I have set in excluded apps are package installer and maps.

Sent from my HTC Sensation
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.81.101

I noticed that it happens whenever a pop up comes up. Like long pressing on the homescreen to change wallpaper, sharing anything (which gives an option to share via multiple apps), clicking on a media file (which gives an option to select the media player, etc.).
[Android Apps and Games] rapttorx:
ì rly dont have any problem with the latest version so far ....and i like the exculded app thing...now i can use the screen flashlight :)
[Android Apps and Games] velis74:
For all those suffering from temporary service disables:

I have updated the OP with an .apk that should report these situations to logcat.

So if you have time, please either send me a logcat (default log level 3 is fine) or just paste the line containing "Service.checkTopBanned" (without the quotes).
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.81.101

Have you pushed an update to the Play Store too?

Well I just realized that whenever a choice option pops up, the brightness increases or decreases depending on the system brightness set. Basically what happens is that the Velis Auto Brightness app stops functioning till a choice is made in the pop up.
[Android Apps and Games] kmcrane:
Re: [APP][2.1+] Velis auto brightness 2.81.101

It seems the application stops controlling brightness when the os pops up those options. I adjusted my regular brightness to be lower, that way the changes were more suttle...
[Android Apps and Games] rapttorx:
great ! ....now i'm getting those stops aswell -, - .....brightness sensor was stuck at some value. :rolleyes:
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.81.101

Figured out the problem. For some reason 'Package Installer' was checked in the list of excluded apps. Unchecking it did the trick.
[Android Apps and Games] velis74:
Of course disabling excluded apps helps, but I need to know why the app thinks a popup dialog is package installer.

For that I need a catlog from someone with the issue.

Can someone please check catlog as described below?
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.81.101

Where can I check the logs?
[Android Apps and Games] velis74:
i'm using https://play.google.com/store/apps/details?id=com.nolanlawson.logcat

It seems OK.
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.81.101

02-15 17:17:49.622 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:49.645 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:49.645 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:50.145 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:50.145 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:50.153 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:50.645 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:50.645 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:50.653 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:51.145 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:51.145 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:51.153 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:51.653 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:51.661 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,

02-15 17:17:51.661 I/velis.vab.Service.checkTopBanned(1793): Current Activity: android banned: true ,com.android.packageinstaller,
[Android Apps and Games] velis74:
Thanks, this is most interesting. Will fix tonight when I get from work.

LP,

Jure
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.81.101

These logs were generated after clicking the share button of Tapatalk.

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

Okay. Sounds good. Thanks. :)
[Android Apps and Games] velis74:
2.82.101 (15.2.2013)

Fix for app service disabling itself when a popup is active

I think this should do it. Updated OP and Google Play store.
[Android Apps and Games] velis74:
Seems I cant read any more :(

OP and Google Play updated again
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.82.102

Yay!!! Problem solved on the latest build. :D
[Android Apps and Games] Marx2:
Odp: [APP][2.1+] Velis auto brightness 2.82.102

If I would suggest new feature... I would like to have possibility to tell "it's too bright" or "lighter lighter !". That way curve would be build automatically. It would be done in learning mode with visible icon on top bar. Then I would be able to press +/- , something like controlling music player.

Now it's rather hard to set all points of curve manually or by changing numbers one by one.
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.82.102

Just a little practice and you'll master the art of building a curve suitable for you. :)
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.82.102

@Velis: Out of curiosity would like to know that what was causing the issue. :)
[Android Apps and Games] velis74:
Re: [APP][2.1+] Velis auto brightness 2.82.102

i do have something like that planned for notification, but as abishek said: it's not too hard to adjust through graph imo.

Package name of top app was "android" instead of expected com.company.product. since Google is quite clear on this in documentation, i wasn't expecting that and thus found "google" in "com.google.apkinstaller", which was of course wrong.
[Android Apps and Games] AbhishekS:
Re: [APP][2.1+] Velis auto brightness 2.82.102

Oh that makes sense. Glad you solved it so soon. The issue was really bugging me a lot.

BTW I have the APK attached in the OP installed and I just received an update on Google Play. Did you push another update?

I haven't updated from the Play Store yet as I'm afraid that it may be an older version and the issue may come back again.
[Android Apps and Games] velis74:
Re: [APP][2.1+] Velis auto brightness 2.82.102

The play store only has a higher version number. I forgot to raise it when i was preparing the apk so the store refused to upload the package.
[Android Apps and Games] andQlimax:
R: [APP][2.1+] Velis auto brightness 2.82.102

I don't understand if the package installer need to be excluded or not and why?

I removed the checkbox to it and I don't seems to have issues installing apps on a galaxy nexus here

Thanks

Inviato dal mio Galaxy Nexus con Tapatalk 2
[Android Apps and Games] velis74:
Re: [APP][2.1+] Velis auto brightness 2.82.102

That is only a problem if you have super dimming enabled. But it would feel awkward if there were separate excluded app settings for super dim on/off, so i decided to simply include installer in all cases.

That way I'm hopefully on the safe side for all usage cases.
[Android Apps and Games] xanthrax:
sure ! i`ll buy it too ! just launch it , do your best and we ALL will be happy !
[Android Apps and Games] velis74:
No, I currently don't have such a setting. I have initially planned to have something like that, but then I found that the system will re-launch it by itself because of the sensor and other listeners. So far I have not detected any situation when the app would not re-launch in due time.

This was one of things I wanted to test before releasing, but so far no one detected anything like that.
[Android Apps and Games] kubics:
This app is really great :good: .

After installing it, I placed Brightness control widget from Extended controls on my home screen to see, how it works. It has the possibility to show brightness percentage, so I see how your app instantly changes brightness as light conditions change. Autobrightness response is perfect.
[Android Apps and Games] velis74:
After much ado I have now published the app on the marketplace. I can't however yet post the url since the app doesn't register in searches yet. Should be found under "Velis Auto Brightness" some time during the night (I'm in Europe).

This took me the whole afternoon, so sorry for no functionality improvements.

Update: App is now available on marketplace.

+Someone already gave it a 5 star rating. Thanks Cesar!
[Android Apps and Games] Juzman:
+1. I installed it from Play Store, found it. :)

I just wonder how much battery this uses vs having screen on manual brightness. Hmph.

Also added 5 stars. :)
[Android Apps and Games] Christiancs1969:
5 stars added:D

Will follow your build ....thanks. I like it when you can see brightness bar adjusting in notification bar when down :D please keep this .also being able to use notification bar custom brightness when up:D fingerslide adjust:D. Good luck

s2 RR 308 dori
[Android Apps and Games] siggey:
5 stars here

phone: sgs2 GT-I9100

kernel : dorimanx 5.83beta 2

main rom: rr 2.7

second rom: aokp JB build 3

baseband: XXLQ6
[Android Apps and Games] kantjer:
Installed from Play store and added a 5 star rating. Thanks!!!!!!!!
[Android Apps and Games] :
5 Stars and positive review added.

Thankfully my previous issue has now been fixed. Thank you.
[Android Apps and Games] bgx:
Yeah would also pay for an version with tasker support. I have another tasker script witch reads the sunrise and sunset and setting a task that at daytime my screen is brighter than at nighttime! would love to do this also with your app.

Ah and another bug or thing to fix. the brightnes adjust of mxplayer isn't working anymore after your app is startet!

Great work, keep it!
[Android Apps and Games] situ1962:
I can't download from the play store on my galaxy ace with GB rom.It shows device incompatibility message.
[Android Apps and Games] velis74:
That should be correct. Galaxy Ace doesn't have a brightness sensor nor does it have two cameras. I'm afraid that even if it had the cameras, they wouldn't be able to give satisfactory results. I intend to support them in order to better handle extremes (near-complete darkness, sun-shade transitions). But that can't be a replacement for a real brightness sensor. Dunno, will see how it works when I support them.

Stil, for you that wouldn't help since you only have one camera which is not enough for accurate environment detection (when you place your phone on a desk, the camera can't "see")

Hm, does that work when you have system auto-brightness on? This brightness opoeration is pretty much system-wide. Any app can set its brightness, but that brightness then works for the entire device / all apps. The most I could do in case of such app is temporarily disable my app while that app is running.

I will have to see about that paid stuff. Seems google doesn't like me though I live less than half an hour away from two supported countries. It's interesting, really since the entire EU has a common payment system. But I disgress...

In the mean time, I'm looking into this. I got some pointers from Tasker developer and am hoping to start work on that soon.

I should have an update up later today. I already have jitter working, going for smooth transitions atm. Then profiles. Will see how fast I make progress.
[Android Apps and Games] ysuleman:
Does this use a lot of battery? Cause for me it shows something like 30% battery usage.
[Android Apps and Games] velis74:
I can't imagine how. Except maybe if you just unplugged then played A LOT with the graph before looking at battery consumption.

On my galaxy nexus, screen off takes days, screen on is ~4 hours. The app never even registers in the battery graph / most greedy apps.

Edit: Please let me know if you continue to have these issues. I may be able to get my hands on a SGS 2 to see for my self how it fares.
[Android Apps and Games] andryyyy:
Hey, thank you for this app! I already gave it 5 stars in market and left a comment.

Would be cool to see something like a delay or tolerance before changing the brightness. How about a "custom amount" of steps? In some rare situations it starts flickering like it cannot decide between two values.

By the way, I can confirm this:

But it happened just like 2 times so far. :) Same phone: HTC ONE S, 4.0.4. If you need more information, let me know! :)
[Android Apps and Games] velis74:
Thanks for the praise, everyone. Means a lot to me.

Jitter and averaging are already working so your initial woes are (hopefully) taken care of. I'm currently implementing presets. I'm shooting for a mega-patch this evening. Please be patient just a little while longer.

About the brief flash in HTC ONE S: This is probably due to the same reason that was reported already on the first page. The service can't re-acquire the sensor and the phone in that instant decides to do something funny. I think we'd need some logging to pin this one. However, I'd suggest waiting for the update. Maybe averaging will already take care of that.
[Android Apps and Games] fcpelayo:
Will try
[Android Apps and Games] Christiancs1969:
Battery all good:D

s2 RR 308 dori
[Android Apps and Games] andryyyy:
No problem. :) But I could reproduce a FC: When I set everything to "high" (upper right corner) and apply, it closes. I run Catlog and monitored it, see attached file :)

That's what i meant by "Everything on high" :D ..