yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] khaytsus:
Yes, moving any app with a widget to the SD card using the Froyo Apps2SD method will break widgets at some point, certainly at reboot time. Moving it back to internal storage and rebooting will fix it. Probably restarting the VM will as well.

It however works just fine with Apps2Ext. :)
[Android Apps and Games] Izkata:
Erk. I can think of 3 possibilities:

*If it was disabled for a while, or the phone off, the last-known value will be stretched like that. Not the case here, as you said it was working fine in the middle of that block-period.

*The data wasn't being saved during that period, just held in memory. The next time you looked at the Main screen or a graph, it would load the memory and erase the recent data. Shouldn't be the case, as it's supposed to save every time something new happens.

*The data file got messed up somehow, and couldn't be loaded. Each day, when the data is successfully loaded, a backup is made. If it couldn't load the data and instead when for the backup, this is what happens. There should have been a popup at some point, though, explaining why data is missing...

If you go into Help and Export, can you email me the file? "Battery Diviner Export Data.mag", on the SD card. I don't know what the problem is, but there might be a clue in there...

An idea that might mean the second possibility in some roundabout way: Did you create a shortcut to one of the graphs, skipping the Main screen? Someone appears to have tried it, which caused a force-close and an error to get reported to me. I wasn't able to duplicate it (LauncherPro wouldn't let me do that for some reason), so I don't know if I fixed it.

Thanks! I'll update the main post tonight/tomorrow when I do the next update.
[Android Apps and Games] ph3nom:
maybe you can put a battery usage graph on the widget, just a suggestion.

It will be good if your app show battery usage link or graph for apps. x = the percentage of power that the apps use and y = the apps name.
[Android Apps and Games] Izkata:
Version 1.03 Update!

*Several bug fixes (Yeah, there was more than just Month being off. Shhh, don't tell anyone.. ;) )

*A few small graphics upgrades

*Added a 2x1 light widget!

*Full version has a real color picker instead of a list of predefined colors! (AmbilWarna library, if anyone wants to know)

*Many internal widget changes in preparation for the big one.

That last bullet, unfortunately, means RE-ADD YOUR WIDGETS. They will not work until you do!

(EDIT2: Main post updated)

EDIT:

Never even considered something like that for the widget. Don't really see how helpful it would be, so small, unless I made a 2x2 or 3x3 widget or something. I might look at the idea.

Not sure what you mean on the second one... There's a built-in usage thingy, accessible in the Settings -> About Phone -> Battery use.
[Android Apps and Games] MKairys:
I think this app is very cool; well-conceived and well-executed. (It only remains to see how accurate it is :)

What I would really like to see as an enhancement (to the paid version perhaps) is an (optional) ongoing notification item which would display the current percentage in the notification bar and basic information (such as what is now in the widget) in the notification entry. I think notification is preferable to widget in this case, for general availability. I am using Battery Status Bar by Modded Logic for this purpose, but since I now have your app running, this is wasteful duplication of effort!

I would immediately donate if you added this feature! :) :)
[Android Apps and Games] Izkata:
Hm. Never really considered that - it would definitely be optional (Settings on/off), as I don't really want it myself ;)

I'll add the idea to the main post, but I'll have to look into how notifications work. I've toyed with them before, but not much - I think they just sit there doing nothing until the app updates them, they don't poll at all like widgets usually would do, right? So this idea shouldn't be any issue in affecting battery life.
[Android Apps and Games] MKairys:
TIA...

Thanks for considering! I believe you're correct about notifications; I know Battery Status Bar uses almost no battery.

The thing about widgets is I always seem to be on the wrong page to get at the one I want, and I usually want to know my battery percentage as soon as I turn on the display.
[Android Apps and Games] ph3nom:
Paid for this app. Very good. But I still dont really understand about the graphic usage. Keep updating and improving Dev.

Maybe you can put the widget to be seen in lockscreen. I don't if that possible or not.
[Android Apps and Games] Izkata:
It's explained in the OP in this thread, but yeah, I should add something to the in-app Help and try to make it more obvious on the graph itself. Both graphs could use an update, eventually.

Not sure what you mean about the lock screen. If your lock screen supports adding widgets to it, then I would think it would already be possible.
[Android Apps and Games] ph3nom:
I'm a noob regarding android things. and I just realize can't put things on stock lock screen.
[Android Apps and Games] darkmindgame:
if you grab widgetlocker you can put almost anything on your lock screen
[Android Apps and Games] dsMA:
feature request

Hi there.

Been running your app for a few days now. I have a feature request. Is there a way you could break down battery usage by app? By this I mean present a list of the apps that have run and how much of the battery they have used.
[Android Apps and Games] Izkata:
That already exists, and not as part of an app: Settings -> About Phone -> Battery use. The percentages there are, of the empty part of the battery, how much of it was used by what, since the last time it was charged.

For example, I'm currently at 20% battery (80% depleted), and Voice calls is at 36%. Of that 80% battery used up, 36% of it was used solely on voice calls.

If an app is below 2% usage, it doesn't show up on the list.
[Android Apps and Games] dsMA:
I am aware of that battery break down in settings I just don't trust it because the screen is always the biggest battery drain (usually 70% or more) with everything else being below 5%. I understand the screen does consume a lot of power but when the screen has remained off yet I have still lost 10% of my charge then there has to be something else eating up the battery.
[Android Apps and Games] Izkata:
I don't really see the problem. Unless you don't even touch your phone just to allow the display's battery usage to be low, it's going to be the largest battery drain, because the CPU isn't running at full speed 24/7, not even while the phone is in use. Nor is that true even on laptops or desktops. So if you do that, radio (for calls), bluetooth, and wifi are going to get up there, provided they're turned on.

As for the drop you're experiencing, most likely you have an app that's preventing the CPU from sleeping.

Besides, that list in the settings is provided by the OS. It's the most accurate you're going to get - everything else is going to be either estimates, or using information provided by the OS (if it's accessible from apps, I don't know).
[Android Apps and Games] x潮騒x:
Does the level 2 mode just use information of the particular weekday or is there some sort of supervised learning to learn eg. weights for a linear combination of different templates (like level 2&3)?

Im just asking as i think the idea of this application is really good and works better than everything else but level 2 doesnt seem to give me so promising results. That wouldnt be surprising as data is way too noisy and sparse if its just for particular weekdays - at least for my life.
[Android Apps and Games] Izkata:
Once it has enough data, yeah, it is just for that weekday. If there is data for a weekday, but not much (Like, just one week), it does a straight averaging of Level 1 and 2.

I've taken a data mining course a year ago, and it's given me ideas that might manage to make this even more accurate (for example, noticing a pattern that, if it happens in the morning, alters the rest of the day. Like a day off of work, and a large drop when you're on the train isn't there that day, so it would treat that weekday like the weekend). But however much I want to do this, I instead went for keeping it simple. Training would cause extra battery drain (unless it only happened after starting charging.. hmm), make the phone work reeaally slooowly while training, and it would require -tons- of testing to see that it doesn't mess up and make the predictions go waaay off.

Mmk, that gives me reason to add something I was considering: The ability to enable/disable Level 2 in the settings. Maybe even enable/disable Level 1, although I don't think it would be too useful, more just for kicks ;)

Though, it stores 4 weeks by default so that fluctuations from week-to-week like that wouldn't mess with the predictions very much. We're just approaching 3 weeks total on the market (dunno when you installed it), so I'll put the enable/disable on the "upcoming" list, and if you're still having issues like that around New Year's, I'll bump it up. Like notifications, it shouldn't take very much to do, but right now I'm focusing on the widgets.
[Android Apps and Games] Izkata:
V1.04 - Minor bugfix release.

In the last update something I did made the History graph act a bit funny, if the current battery stretches past where the prediction sees a drop.

Usage graph has a bit more explanation in the Help.

Clean up on the Main Screen - columns are now aligned.

No new features.
[Android Apps and Games] x潮騒x:
Hey, sorry for my late reply.

I have a strong background in AI in general and stuff like data mining, pattern recognition and so on, so its rather tempting for myself to do something with the data here. Basically you can collect training data for supervised learning on the fly, as long as you always save the prediction time and compare it to the real outcome. Learning could be batchwise on behalf of the user, or even just on your side to adjust general parameters.

But simple is always good, especially if it works :D

A setting to disable Level 2 would be really helpful (and easy fix) indeed. I started installing it pretty early.. and im still changing my usage patterns - now even more because of Christmas and stuff.
[Android Apps and Games] Izkata:
So yeah, thanks to family + Christmas, the widgets aren't coming along like I'd hoped (I wanted them out by Christmas, but hit a few snags with some surprises I'm planning, and haven't had time to address them).

So I'll have to think about that, and in the meantime, I think I'll work on both the Disable Level 2 and the Notification (plus a few bugs that I finally figured out), and try to get them out somewhere around New Years.

I've decided to completely forget about that extra learning stuff, because of how the predictions adjust anyway as the day goes on - current percent is always the baseline it starts from, so unless I get sudden unexpected inspiration, it seems to adjust over time well enough. ;)

EDIT: Erk - Notification icons cannot be made dynamically. Percents 1 - 100 would require 100 small images. I'm going to stick to one image, with the information in the pull-down, at least for now.

EDIT2: Oh hey, look at what's not in the official guide: Notifications can have a number superimposed on it, although the reason for its existence isn't exactly this. Looks like it cannot be styled, though. So forget the previous edit, a percent will be visible on the icon in the status bar.
[Android Apps and Games] Izkata:
New Version: 1.05

*Several bugfixes

Among them, the widget should never show "Error Loading" unless there was an actual error. Previously it was showing it for a moment before an update was received.

New Features (Full Version):

*Notification bar

Settings -> Misc -> Status Bar

The image is a tiny version of the app icon, and the number on it shows the current battery percentage. The number style and red circle (or however it appears) is Android's styling, which I can't seem to modify at all.

In the pull-down is the same information that would be on the widget.

Selecting the notification opens the Main Screen

*Level 2 predictions can be temporarily disabled

Settings -> Misc -> Level 2

Since Level 1 only needs a week to switch almost entirely, changing schedules may at times be more accurate if only Level 1 is used.

Data is still gathered for Level 2, so it can be turned back on at any time.
[Android Apps and Games] DirkStorck:
Today I have bought your full version cause I think it is a great app and the most accurate one.

Could you please seperate the option from turning on the icon in the notification bar from the info displayed in the pull down cause I allready have a battery percentage and would like to have the pull down too :D
[Android Apps and Games] khaytsus:
I'm pretty sure the battery % used graph isn't quite right.. I've observed this on my Nexus One and on my Nook Color, and it just doesn't match reality.

Last night I was doing some pretty steady stuff on it, basically idling in irc. Device was awake, semi constant stream of traffic but not really that much data, wifi, everything else pretty constant. I watched the battery drop 7-8%/hr for about three hours total but Diviner showed a constant 3% during that time.

Always seems low on my Nexus One as well. This graph is intended to show you at a given snapshot how much battery % per hour is being used at a given time, right? You said a few weeks ago that this is averaged every 15m, but if say 6 15 minute snapshots are done and all 6 are the same, the inner 4 would (minus some smoothing) show the actual usage during those times, right? Or does one have to multiply times 4 to get the hourly rate?
[Android Apps and Games] Izkata:
The entry in the pull-down and the icon are tied together due to how Android notifications work. I guess the pull-down without the icon could be faked with a transparent image and no number... It'd probably look odd, though, if there's anything else up there.

For that example, it would be the inner 2 that should show the exact number. It uses the given span, and the two on each side (which may be a bit overboard given the time span), with the weights [.1 .2 .4 .2 .1]. I don't remember when I added the weights, they used to be uweighted/equal. I did notice a little bit of oddness I couldn't explain showing up sometimes. It appeared to fix itself over time.

And yeah, to get the hourly rate, multiply by 4.

Both the graphs are due for a rewrite anyway. They were originally based on the same codebase, but split early on, and there's artifacts in the code that show it. The new version of the usage graph will have the current stepped style showing the data directly, with a line with the smoothed data overlayed on top of it. It'd also have its own section in the Settings, one example option being "rate per span"/"rate per hour", since it's such a confusing point.
[Android Apps and Games] MKairys:
Thanks!

New Features (Full Version):

*Notification bar

Well, I said I would donate if you added that, and so I have :)
[Android Apps and Games] khaytsus:
Cool, makes sense now. :) Look forward to the future options :)
[Android Apps and Games] MKairys:
This may have been requested before, but would you please put somewhere a link to the system battery usage page?
[Android Apps and Games] Izkata:
Looks like a bunch of you wanted that, so thanks to you all ;)

So far there's been one request for me to make my own, as he doesn't trust the one in Settings. A link to the existing one is possible (Quick Settings does it), but I don't have the slightest clue how to launch a named activity from a different process. Or what the full name of it is. And I'd have to find a nice place to put the button (probably on the Main screen, but without making it look more cluttered/more confusing to someone new to the app). Soooooooo....
[Android Apps and Games] jonny68:
looks good will give this a try
[Android Apps and Games] bongd:
Mine keeps resetting the Status Bar value to No even though the app is still running. It's happened about a dozen times now. Any fix for this on the way?

Too premature to comment on the app but I've rated it a 5 and purchased the full version. Looks very promising!
[Android Apps and Games] Izkata:
During testing it was doing something like that to me, but I'd fixed the problem I was seeing before uploading it. So since it's not doing that anymore over here, I'll need more information before I have any idea what the problem for you might be...

*When it resets itself and disappears, does it ever reappear without you reactivating it?

*Are any other settings resetting themselves, or just this one?

*If you look in the History graph, is there a block that looks like data is missing? (a sudden large drop without the stepping pattern, after a long span of the same percent, usually means this. Make sure to zoom in, they may just be short steps, which is fine)

(..."Status Bar"'s options should really be "On" and "Off", shouldn't they...)
[Android Apps and Games] bongd:
The only change I observed was just the value going from Yes to No. Graph seems to be fine and I couldn't find that anything else changed.

I can recall the app by holding the Home key so it's not a make or break deal. But it does make baby Jesus shed a tear... lol jk... I appreciate the follow up. Hopefully it can be nailed.

I am using SetCPU and have min/max values set to the lowest so perhaps it could be that.
[Android Apps and Games] Izkata:
I think that might be related, but I'm not sure how.

I'd reinstalled the Full version on my phone last night, and set it to display the notification. Today during high CPU activity*, it disappeared and the setting switched to "No" (Off). So I can confirm there is some sort of bug somewhere.

I now have my (slightly updated) version running side-by-side with the Full one, and am hoping to replicate what happened earlier. But I'm not sure exactly what caused it - no luck so far on making either one turn itself off.

*Specifically, GOdroid was open and in the middle of a game, and I was altering both Tasker preferences and Tasker profiles, and had just opened Quick Settings to turn WiFi off.
[Android Apps and Games] chispa9:
Really Nice!! Going to try this out!!!
[Android Apps and Games] Izkata:
There's going to be a "ha ha, I'm an idiot" release later today.

Everything with the settings and notification bar is working perfectly fine. But! I somehow managed to forget reading the setting when it's loaded. So any time the app is unloaded from memory, this setting gets reset to "No". The line required to load the setting was commented out, probably for testing...

With this release is going to be a minor bug fix or two, that can only show up when the data is empty (has to do with Level 0 on Usage graph, and the percentage dropping right after it first starts).

The Notification setting has changed from Yes/No to On/Off, since it makes more sense.

The APK will also be larger, since there's more Widget code now, but none of it is visible yet. It's not exactly working (or even finished), and so is disabled.
[Android Apps and Games] uliyha:
I was wondering if you could upload all the image data to look at? Thanks
[Android Apps and Games] vhtija:
Just bought the full version from the Market. Awesome app.

Just one small thing is bugging me - how do I remove the stock battery indicator in the status bar? Now that I've enabled the indicator that comes with Diviner, the stock indicator just seems redundant and a wastage of space.
[Android Apps and Games] khaytsus:
Some custom ROMs can do this. It's a framework difference, no app can change it.
[Android Apps and Games] Izkata:
What image data do you mean?
[Android Apps and Games] vhtija:
Thanks khaytsus. I am on a Nexus One with CyanogenMod 6.1.1. Searches got me nothing. Anybody know of a working mod (modded services.jar?) that can remove the stock battery icon?
[Android Apps and Games] uliyha:
I am meaning the images?
[Android Apps and Games] dsMA:
I really like your app and what it does for monitoring and estimating battery time remaining. Unfortunately I think your app is very lacking in the graphics department. I do not mean to offend you with this comment especially since just as much work goes into creating the graphics of an app as does the actually coding of the app.

ccounotte from this forum and creator of Battery Monitor Widget have some very beautiful and a variety of widgets that they have created for their battery monitoring app. Here is a link to their thread:

http://xdaforums.com/showthread.php?p=10663323#post10663323

It would be awesome if the two of you could get together and produce a combined app that utilized his graphics and low cpu overhead with your algorithms.
[Android Apps and Games] bongd:
Just chiming in to sing a tune of praise. App is working very well since I've installed it. Regretfully I need to do a few more tweaks to fix my battery life and optimize my settings, but it's great to know approximately how long I have left before my battery dies. I plan ahead, but sometimes life throws curveballs and this app really helps out.

Wouldn't mind updated graphics though. It does look extremely archaic. :D
[Android Apps and Games] Izkata:
...All the images used are visible in the screenshots in the first post

I fully agree that mine isn't very good in the graphics department, as that's not my strong suite, and that ccounotte's app is very impressive looking.

However, I do want to keep mine separate, as my own project. Sharing ideas, I'm open to (earlier in this thread I was asking for alternative widget designs (and am still looking for a 2x1 Dark style), plus there's short descriptions of pieces of the algorithm when questions arose)

There's another catch, too, that I want to mention: I haven't actually had time to work on the Battery Diviner since Jan. 10, when I started working downtown in Chicago. The new widget system is allllmost at a nice point for release, but not having a second 2x1 style is one of the things preventing me from going ahead and finishing it. So development on this app has slowed down significantly, but it is by no means abandoned - I will still work on it when I can.

EDIT: There might be a way for ccounotte's app and mine to "talk" to each other, probably through intents, so we can each do what we do best, without creating a collaborated app. For example, the Battery Monitor Widget can request current prediction information, which the Battery Diviner would calculate and return, then ccounotte can display it to the user.
[Android Apps and Games] dsMA:
I have to say this idea sounds really awesome. idk if you have pmed him or posted in his thread but I would highly encourage you to do so so. Just prior to posting my previous post in your thread I posted a very similar comment in his. I believe he replied which means he is aware of my suggestion and he seemed interested in what you were doing.

Again let me say I really hope the two of you can talk and discuss the best way to proceed. I think your idea of allowing communication between the two apps is a very good compromise.
[Android Apps and Games] Izkata:
So, last week I got an email from someone, saying the Charging predictions have never worked. After ruling out the simple things, like the phone being off or something, he sent me a copy of the Export data to look at.

And behold, I discovered something really odd with his phone, the Droid X. It only reports battery percentage, what I use for all the predictions, in 10% increments. See the attached screenshot, for a sample of his history graph.

Because of these crazy jumps that I never saw before, Charging data was storing something like, time to go from 70 -> 80, as 79 -> 80, then never displaying anything because it was never at 79%. Discharge can interpolate, so it's been working, although less accurate.

I don't know if any other phones do this.

I have a workaround in mind, and have asked him to test it once it's done, before I release it to the market.