yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Izkata:
You just reminded me of a missing setting in the Full version. Planned since day one but never implemented, will go add before the weekend :eek: (History is limited to 7-8 days (midnight split) to save space, Full version should be able to extend/reduce it. History does not affect the learning parts of the app; that is stored separately)

V1.02 Update coming sometime soon (Friday or during weekend). A bunch of updates to the Settings screen, plus now Free users can see all the settings, their defaults, and the help for them, just not modify them.
[Android Apps and Games] khaytsus:
Not sure if this is a question or a suggestion....

Curious about the mechanism you use to learn.. Does it learn "once" then use that forever? Like for example normally at work I use it X amount, but one day was light or I was trying a new program, or installing a new ROM (ahem) and used significantly more battery than normal. Does it continue to average, or would that throw it off forever?

I gotta say, the Usage Graphs are not making any sense to me... It shows different green, red, yellow.... At first I thought it was percent of battery used or such, but it doesn't seem to be.. At least not per hour? I average 3-4%/hr with the phone pretty much idle (ie: me not playing with it) running K9 online imap, weather updating, Tasker doing stuff etc... But Diviner is showing 1%.. woah, now it's showing 3-4%, I SWEAR earlier it wasn't going any higher than 1%.. I'll keep an eye on this, maybe I'm just crazy. Nope, not crazy, I just went back into Graph Usage and it's showing 1-2% again. I wouldn't expect this to be something that'd have to stabilize that much over usage, it should know exactly what I've used since I installed it yesterday evening, right?

One question... Why are the Charging Times on the main screen "to 82%" for USB, "to 88%" for AC? Is this an estimate of what I typically (so far) have charged to for each of these?

Now, a suggestion or two.. :) A "Now" button for the graphs, to make it easier to find the most recent real info (vs estimated).

Make the graphs on the main page representative of the real graphs. Not updating in real time or anything, but right now they're just static icons, right?

Fun stuff, look forward to improvements. :)
[Android Apps and Games] Izkata:
It will continue to average it in, to a maximum of whatever the learning length is. For example: Level 1, the day-by-day one that shows up as Yellow on the graphs, limits itself to 1 week. After that, it wraps around and starts to overwrite the oldest data.

So Level 1 limits itself to 1 week. It's almost fully adjusted to a new schedule after that 1 week, slowly changing over the week. "Almost", because the gaps where the phone is charging or off, doesn't get recorded.

Level 2 limits itself to 4 weeks. This one is (will be) changeable in the Settings, minimum of 2 weeks, no maximum. So it will also wrap around and only keep the most recent 4 (or whatever) weeks of data.

The colors I'm sure I mentioned somewhere. Red/Yellow/Green indicates the data it has and how accurate it thinks it will be.

Otherwise, your initial guess was right, it is percent of battery used, but it's per 15 minutes, centered on the hour, and smoothed so it makes more sense to humans just perusing the graph (Yeah, sorry, not explained anywhere). Because it's smoothed, manually doing a prediction probably won't give you exactly the same eventual percent as simply looking at the other graph. But I'm not sure.

The 15-minute decision is based on a several things:

*The number is how precise discharging predictions can be. Time left is always 0, 15, 30, or 45 minutes + however many hours.

*It's lower than an hour to give more precise information. (This has to do with how the data is collected, as well as how it displays and is used)¹

*I was considering using 5 minutes, but this part of the data would be about 3 times as large.

Since per-hour is probably more intuitive, I may separate the Usage display from what's actually stored.

¹Also, please note, that this still does not mean any polling. It has to do with the math involved in data collection.

Yes. It doesn't know how long it takes to go higher. :D

(I chose specifically to do it this way because my own phone, at above 93%, starts slowing down, and usually reports "Fully Charged" when it reaches 97% or 98%)

First one: Double-tap on the graph, and zooming doesn't change the offset at all (I'm sure I put this into the in-app help :( ) (Unless that's not what you're suggesting?)

Second one: Static yes, and it's planned, but have to figure out how to do it. Probably won't come for a while..

Keep the questions coming.. It's sometimes hard to tell what is obvious to me and weird to others (Like the Usage graph), because I'm the one making it, so I already understand it all. Your questions will help me fix up the displays and the "Help" section.

EDIT: Looks like I have URL-posting ability now. Yay! Time to work on the OP...
[Android Apps and Games] overground:
Just bought the donate version. The text boxes and such in settings are a little off.

Nexus One Miui11.26 No custom density.
[Android Apps and Games] ardax:
This looks really neat.

One thing I'm curious about, is there a way to have the history also show the expected values, so we can see how accurate the app's been? :)
[Android Apps and Games] Izkata:
Thanks. I'll try to replicate in the emulator, but not sure of how to fix at the moment.

However, I do have a suspicion. If I'm right, the changes I already made to Settings might fix it when it's released this weekend. Please post again when you get V1.02, if you haven't uninstalled it.

EDIT: Thinking about it more, no, it might not fix it, or it might fix only part of the problem. The ? Help buttons are what are making me think not, now... Eh, testing time anyway.

Expected from... The previous time it was unplugged? Not at the moment, it would require some pretty big changes/additions. Maybe in Version 2. (Actually, likely in Version 2. I like the idea, but how to display it on the graph is something to think about)
[Android Apps and Games] overground:
Don't you get uninstall / refund notifications from the market? No, I haven't uninstalled it. ;)
[Android Apps and Games] Izkata:
Sorta. The Developer's Console has been out of date for a day and a half or so (Except for ratings, those seem to update whenever), and the merchant area doesn't list usernames :p

Anyway, I think I see what caused the display problem. Some older parts of the code, that I must have missed when cleaning up for public release, were still in there (pixel values instead of WRAP_CONTENT).
[Android Apps and Games] ardax:
Good question, since your app is constantly (well, regularly, at any rate) updating its usage estimates. From unplug sounds like it'd be good though.

Changing the graphs to simpler lines graphs would take care of the graphing portion -- you'd be able to use the same view to show both what the app said your history should be vs. what it actually turned out to be.

It is quite a bit to chew on though. There might be a way to feed some kind of error information back into your heuristics for better forecasts, if you're not already doing that.
[Android Apps and Games] pzumk:
You're on the frontpage.

Will try the app, using JuicePlotter to get the battery-usage graph
[Android Apps and Games] Izkata:
I'm on a frontpage? Whowhatnow?

Anyway, along with the Version 1.02 update, I'm posing a question here:

I've made 4 mockups in the Gimp and attached them to this post, named widget2 through widget5 (widget1 being the one currently in the app). Any other possible suggestions? Or would you like one of these?

(And yes, I know widget4 is kinda out there. Also, the green and yellow is customizable in the Settings)
[Android Apps and Games] x潮騒x:
To be honest, they all look quite bad to me. What about a neutral version with just text?
[Android Apps and Games] Izkata:
I'd be willing to drop the bar and lines, but I want to keep the eye on there somewhere as an identifying mark. (One of the upcoming graphics upgrades will un-pixelize the eye, so it should look better, too)

(Offer is still open to make your own mockups - image size is 72x72)
[Android Apps and Games] Coedy:
Hi,

Hope you don't mind, I gave a widget a quick go.

The background is the bar (I don't usually pay attention to battery bars as there is one in the notification bar that gives you a good enough guestimate)

Everything widget wise with android is heading that of the Iphone (everything curvy) so just rounded things off. I didnt know font limitations so just chose a plain one (Franklin Gothic this one is).

I dont know anything about android development so dont know whats possible... :o

Im not using your app yet but am excited to give it a go! Currently I use JuicePlotter but am getting fed up of my gallery being slowed down by its 'cache' images for the graph (which I dont use). Your app seems clean, simple and no nonsense! :D

One question. If I got the free version, if I upgrade to the full one at a later date will it have to "Re-learn" everything? or will it see the settings stored by the free version?
[Android Apps and Games] Izkata:
Hmm... Looks pretty nice. I'll wait and see if there are any other suggestions before making it, though (plus I'd have to figure out the rounded-corners thing for the bar part, but that doesn't seem like it would be too hard. Maybe I'll include a "Hide the progress bar" option eventually)

By default, the font choices are Sans, Serif, and Monospace, with the Bold, Italic, or Bold And Italic modifiers. No clue what the typeface itself is. Custom fonts are certainly supported (as seen in other apps), but I haven't bothered yet. These seem good enough for now.

I was surprised myself at how well my graph scrolled, having used JuicePlotter for a while before making this. I mean, mine even is doing a complete redraw (not just scrolling an image) as it's moved.. So no cache files, either ;)

If upgrading to Full later, there's an Import/Export section in the Help that can be used. Full and Free versions don't recognize each other, so they can both be safely installed at the same time.

To upgrade, go into the Free version and choose "Export". A file is created on the SD Card called "Battery Diviner Export Data.mag". Then go into the Full version and choose "Import". That file is read, and when successful, deleted.

Import/Export could also be used if you want differently-trained data. For example, if still in school, export at the end of the semester and rename it, then choose Erase in the Help. Retrain over break, then when next semester starts, export that, rename it differently, then move the original back into place and Import it.
[Android Apps and Games] Coedy:
Thanks!

Glad you like it!

Since posting Ive installed the free version. I'll give it a few days to see if its for me (although cant see why not if there are no stupid images involved! ;)).

At the moment its running along side Juiceplotter. I found that after some usage (10mins or so) it will suddenly jump later on and remove an hour from the battery life.

However I am guessing your app will be far more accurate in that situation given that it checks every 15mins!

Ill let it get to grips and see what it says :D Impressed so far though! Worth it just to get rid of the cache images.

On the hero you literally couldnt scroll the JP graph anyway, hence I couldnt use it.

Also, Great idea about the import/export system. :)
[Android Apps and Games] dihy:
Maybe it's just me, but my graph dates are exactly one month behind. Ideas?
[Android Apps and Games] Izkata:
Mmm, close, but not quite - the widget is updated every time the current percentage changes, the phone is plugged/unplugged, or the main screen loaded. It's why I added the weekday and time as extra information - because if you have the same percentage for 3 hours, this one can result in the same type of jump. Ideally, the end-time won't fluctuate as much.

Yikes, I can't believe no one said anything before. I've been using the "Apr" format, so I never noticed. But yeah, I see now what caused it. It'll be fixed next update.

I'm thinking I'll make Friday nights the goal for updates. So this fix will probably come a week from now. (Gives me time to do stuff over the weekend, and test & fix on my own phone before it goes live. And it went for what, 3, 4 days already?)
[Android Apps and Games] Coedy:
The default widget has grown on me! I only have two suggestions for it.

Could the expected time/day part be 24 hours time style? would give the day area a bit more room then without having a PM out AM? (can look very squashed)

Possibly make the black background semi transparent? (only about 15% see through, nothing crazy) and round off the lower right corner.

Am amazed how smooth the zoom and scroll is on the graph by the way. It seemed to be pretty freaked out when I checked it this morning,186 hours remaining! probably because I set the phone to aeroplane mode overnight Lol, but it seems to be learning my usage patterns pretty quickly now.
[Android Apps and Games] Izkata:
Well, the Short Date Layout + Time Format + Weekday Format is used for it, modifiable in the Full version. Free version can look at the help for it in the Settings, too, to see what's possible. (My own is set to "W, T" and "H:M", with Weekday Format as "Mon", so my widget is showing "Sun, 16:03" right now)

Think 24-hours should be the default, though, since it's not as squished? AM/PM as simply "a" or "p" and no space is also possible.

~writes notes to try out on the dark widget~
[Android Apps and Games] Coedy:
Oh, In that case I look forward to getting the full version once this one has 'bedded in' even more! :D
[Android Apps and Games] xyellx:
great app. Try to get some design help from ppl like http://xdaforums.com/showthread.php?t=856515
[Android Apps and Games] leobg:
This is by far the most accurate battery life prediction app. And I am using it only for couple of days, but estimates the app is giving me are near spot on! I have not noticed any reducement of battery life after installing the app and placing the widget on home screen. Excellent job on the logics!! I am sure you will figure out the design - it is less important anyways. BTW - from the designs you showed earlier in the thread - the round one looks quite nice. All you need is to do some anti-aliasing on the lines and it will look very decent
[Android Apps and Games] DirkStorck:
Great app...really like it. I have used Juice Plotter for some time but it consumed much more battery.

How about that new feature?

You select the battery or usage graph. There you have an option where you can select a timeslot. From there it goes to another scene where on top you see the timslot of that graph and under that graph you see for each app that was active during that time its graph. One app under another app like a list.

With that function you could see witch app consumed how much CPU for example.

I know there is allready a similar function that works the opposite way where you can select the graph of a app and compare to the total main graph...

Thanks!
[Android Apps and Games] Ubermicro13:
I was going to use this but I use two batteries. I think that would mess with the data. :(
[Android Apps and Games] ph3nom:
Great apps, really like it. waiting for the update of that month glitch. I just wish you allowed us to try some of the setting before paying.
[Android Apps and Games] Izkata:
The round one has grown on me, too, since posting it. See bottom of this post.

If this was done each time-slot, I'm pretty sure it would consume a lot more battery, scanning all the running apps...

Heh, someone just yesterday asked me over email what would happen. I'm pretty sure this would be the result:

"If the batteries have the same capacity, it should be fine as long as you don't have some weird hardware hack to keep the phone turned on, and not charging, while they're switched. A power-off, plug in for charging, or even cutting the power by pulling out the battery, would prevent any problems.

If they have a different capacity, then the predictions and learned data would be off, since it would be trying to learn from two different sources. I'm guessing worst possible result is a prediction somewhere between what battery each is able to handle."

'Tis coming Friday, along with a few other minor things.

Unless another bug is found, after V1.03 on Friday, there won't be updates for a while. I'll be experimenting with widgets and widget configurations, to allow any of the three I've decided on to be chosen. I'm hoping to do it without mass-populating the widget list, so we'll see. (Ideally, you select Battery Diviner from the Widget list, then an activity pops up to ask you which one you want to use. Maybe with some other configurations, too)

The three I'm going to do are, the dark one that's already implemented, the round one I posted, and something close to Coedy's iPhone-like one. All will be anti-aliased (mockups are just easier without it), and Coedy's might be modified a little, mainly because I'd be recreating it from his mockup ;)

Remember to rate it on the Market!
[Android Apps and Games] Coedy:
Wooo! Glad I made the short list! :D Not that It would probably help I have the .PSD I used for the widget if its any use? I was only trying to get my idea across anyway so feel free to mess with it :)

This app is 3hours more accurate than Juiceplotter (on my phone configuration) and got the time of death right to within about 8minutes! JP was 3hours out. :P

Plan on downloading the paid one tomorrow night after work (so I can have a quiet sit down and export/import what the free version has learnt.)

Liking the widget selection idea, look forward to it. :)
[Android Apps and Games] Izkata:
Sure, I'll take a look. I use the GIMP, but it says it can read Photoshop files.. We'll see, heh.

Did you intentionally run it down as a test, or do you usually go until, what, 3% before recharging? :eek:
[Android Apps and Games] Coedy:
PM me your email and Ill send it over tomorrow ;)

I usually charge when I get the 15% warning, but this time because I was feeling brave I let it go down to 5% before charging (checking every so often to make sure it didnt die completely)

I then had to guestimate what app was closer to correct, but like I said, Juice Plotter thought I had 3 or so hours left!!! :eek::rolleyes:

Bought the full version last night by the way. :D Finally have 24hour time format! :D

I noticed as well that the text on the full version widget is a tiny bit smaller than the free version before I changed to 24hour mode? (had both widgets loaded at the same time to check my data had transferred)
[Android Apps and Games] Izkata:
They use the same code, so it really shouldn't be, if all the settings are the same. Although I do have a guess as to what might have happened, can you get a picture or screenshot? (If you're rooted, on the market is "screenshot" by "Gik Soft", I've been using that)

At some point, the comma was added to the default Short Date Format - if that extra width was enough to push the text over the edge of the widget, the font size would be reduced... My guess is that the original Free version did not have it, so anyone who downloaded it then and upgraded still would not, while anyone who has started with 1.02, would. (It wasn't automatically changed to prevent me from accidentally overwriting custom Full settings, but I think I now have a way to force it back, in just the Free ones) :( (I'd thought I made that change before putting it on the market, though, not after 1.01 was already out..)
[Android Apps and Games] leobg:
Can I throw in couple of suggestions?

1) - in the battery history graph - to use different color for the time when phone is on charger - I think this will be useful feature

2) - for the multi battery scenario - it is relatively easy to detect when battery was swapped - if percentage jumps significantly, especially up to 100% within a short period of time (few mins) - obviously the phone was rebooted and battery was changed during that.

I don't think using multiple batteries throws out the stats especially if they are same capacity as Izkata said. I am using two batteries with my Droid 2 Global as often I can't make the day on a single charge :) Stats are spot on! Amazing app!!!

Another idea - maybe normalizing the graphs will make them look cooler (especially on devices that do not count the battery by single percentage like Motorola's - graph looks quite like a stariway :) But that's just aestetics/data presentation.

I just bought the full version to show my appreciation to Izkata's work.
[Android Apps and Games] fictive:
AM/PM issue?

I don't know how long this has been going on, but I just noticed this morning that the AM/PM in my history graph is reversed (ie: says AM when it should mean PM, vice-versa).

Well, actually, it seems that as I was writing this post, it flipped back to the correct AM/PM designation. Any idea?
[Android Apps and Games] Izkata:
I did consider this at some point, but decided against it for now, because pretty much any time the graph is increasing, it's on the charger. Didn't really feel another indicator was needed. If I do make it soon, it'll just be a quick percentage-comparison so whenever the history is increasing, it's treated as though it's on the charger. Otherwise I'll hold off until I think it's time to rewrite everything for version 2.

Yeah, I only use the battery that came with mine, so I never thought of that. Another problem is, what if someone (for whatever reason) has 3 batteries? If I implement that, it would end up taking far longer to train - once for each battery - and if the number is 3 or more, there'd need to be some sort of way to identify which is which.

It's probably just better as it is, with the note somewhere that different-capacity batteries will put the predictions somewhere between their capabilities.

I think all of them will - I know mine does. It looks like Android in general is designed to report battery in full percentage points, and not more precise.

The stairway-style is a bit easier, since you can see exactly where the percentage dropped, and takes less processing power to draw (so the graphs scroll faster/etc).

(Plus Battery Snap and Juice Plotter do the same thing, so I think it's what most people are used to. Juice Plotter just hides it a little, since the line is thick and has stuff coming off the top and bottom)

That's a new one.. I have no idea what could have caused that. Are you sure you weren't looking at the top of the graph? The date/times there are for the left and right edges, and default to 12 hours before and after the middle line, so the graph spans a full 24 hours

---

Side note - if anyone is able to transfer their apps to the SD card (Froyo and above?), can you confirm something for me? I got an email from someone that, any time he reboots his phone, the widget disappears from the home screen *and* the widget list. Did a quick Google search, and it looks like putting apps on the SD card does that.

Can you check if that happens here, and if so, if moving it back to the phone and rebooting allows the widget to reappear without reinstalling it?
[Android Apps and Games] tonymy01:
I seem to have a bit of a problem with this for the history displayed. It seems to suddenly make the history horizontal from a point, despite the history being tracked as I check it during the day (i.e. I will go to look at it to see what happened in the last 24hours, and notice that previously it was fine, and then would have the blue across well past the point of charging or discharging. Please see the following attachment, notice the approx 65% horizontal line? This was actually a full discharge/charge cycle in there (yes, my battery life is garbage, typically 9 to 12hours, Samsung Galaxy S Froyo). And notice the 100% charge, it was discharging actually from about 11pm there, but that has it at 100% till 9am, when previously I checked it today and it was fine.