asksven / betterbatterystats Goto Github PK
View Code? Open in Web Editor NEWAn attempt to provide advanced battery stats for Android
An attempt to provide advanced battery stats for Android
nobnut
The option to click on an entry to take you to the application's settings details.
The same as Settings > Applications > Manage Applications...
That would be a tough one but a great feature!
And/or a shortcut to the app itself to allow the user to edit the settings from within the app.
Occurs in 1.1.0.0
Reproducable on wakelocks since charged. Looks like this occurs when the KB is still loading in the background and an entry is clicked.
Suddenly the penny drops - I think. I believe I am correct in interpreting the three options as showing the time that the offending process has had a wakelock in place, expressed as a percentage of:
Or maybe I'm just too thick for it to be worthwhile pandering to my stupidity since no-one else has had any problem understanding what it meant.
using 0.8.2, in preference, even if I set to "Since unplugged", when I start the app, it will still show "Since charged
I think the app is great and displays the data that I believe is relevant in an intuitive way. The only issue I believe I have found presently is that under 'network usage', having used applications requiring network connection (XDA app and Dolphin browser for example), they do not display in the lst. There are entries displayed but these relate to system applications. In my case these include:
Google Services
Android System
A weather livewallpaper
It might be that 'Android System' is a container for the other processes using the network?
in 0.6.0
Starting the app, the Computing notification pops up, and once that is done, i'm left with the two drop down options. No matter what I do, nothing is shown.
Android 2.3.5
BetterBatteryStats 1.1.1.0
currently wakelocks are listed by service and application name/tag e.g.
network-location
com.asksven.betterlatitude.BetterLatitude
This fine granular representation is interesting when looking for the root cause. On the other hand it may be interesting to see the total wakelock caused by an application in total.
[thebeardedchild] the stat types "last" and "current" are not self explaining and should be renamed. Interesting would be a stat since powered up
I've got a few more oddities, if you don't mind:
I understand about not using the "back" button if you want to keep the custom reference. If I've been off doing other things and then return to BBS by long-pressing the home key and selecting BBS from the list, it does indeed remember the custom reference. If, however, I go in to the app drawer and click on the BBS icon, or if I have the icon on the home page and click on that, it gives me the "no custom reference set" warning.
When it gives me the "no custom reference set" warning, the display still seems to be based on some kind of reference point, usually further back in time than "last unplugged" but not as far back as "since charged" (which we know on Froyo is something different anyway).
Sometimes the display does not re-draw fully when you come out of the preferences screen. Usually I get the two option bars but no data underneath. This seems to fix itself if I pop in to the help page and back out.
I've no clear idea exactly what sequence of actions I had followed before this one occurred, but the other day after running BBS for quite a while and having set a few custom references during that time, I hit the back key to come out. Instead of exiting the app, the dispay re-drew with data based on an older custom reference. I hit the back key again and another set of custom reference data was displayed, based on another, yet older custom reference. I ended up having going back through about six screens of data, each based on successively older custom references, before the application finally exited.
Actually, I could almost see that last one as being a feature, if it could be reliably reproduced...
Abandoned, I don't want to ads added afterwards
v0.6.0
[f_padia] it needs to show the total time spent in the state you selected in the 2nd list. E.g. if you select since charged show 'time since charged' or since unplugged would show 'time since unplugged'.
v0.6.0
The data retrieval suffers a lack of performance on non dual core devices. Profiling is needed (reported in xda-dev http://forum.xda-developers.com/showpost.php?p=15947325&postcount=81)
Either in-app or a link from the About dialog or menu
For known services/apps there should be the possibility to add an explanation on how that wakelock can be conditioned. The storage of this knowledge should be kept outside of the app (xml) for it to be updatable witout release (on user request).
[f_padia] display the actual process/package name rather than the long name given? E.g. I see the highest wake lock on my phone is something called 'SyncManagerHandleSyncAlarm' but I have no idea what this is.
The main activity should get refreshed when closing preferences
So it's been 42 days since my phone was charged? I don't think so! The Froyo Spare Parts Battery History (which incidentally is also available from within Battery Monitor Widget) offers "Since last unplugged" and "Total since boot". The "Since last unplugged" time matches the "Since unplugged" time in BetterBatteryStats, so that looks fine. "Total since boot" is a bit over one day, which is correct.
Nothing seems to match up with BetterBatteryStats' "Since charged" time, though.
besides "since charged" and "since unplugged" it may be interesting to have a reference that can be set by user
nobnut
What I am thinking is maybe a widget that is updated only after a minimum period of sleep and then remains static until after the device wakes up from sleep again (minimum sleep period perhaps 30 minutes). This way it will not cause any wake time as it only updates after the device wakes up
Similar to the BBS main app, the widget could display:
Click on the widget and... whatever you want (open BBS/open battery statistics/open Manage Applications etc).
This might be easier for users than going in to the main BBS app to see the 'worst offending apps' and would present an ongoing glimpse into what causes wake on their devices.
I know I would certainly love this feature and would be more than happy to pay for it via the Market, which I fully intend to do even if there is a free version on XDA
Bar graph does not display on EVO 3D / Desire HD.
requested by ejstubbs on xda
Removal script for testing
http://forum.xda-developers.com/showpost.php?p=16876847&postcount=640
courtesy to nobnut
the % and the 100% of graph are related to the total time since the ref of the stat. An option should allow to decide what reference to take (awake time, awake time - screen on)
[thebeardedchild] a graphical representation of the stats would be helpful
the idea is to give the user info about heavy wakelocks so he can eventually decide to kill the processes (maybe automatically?)
Reported on 0.8.2
Actions:
I'm running prime v2.0.2 on mine and betterbatterystats force closes when i attempt to access the preferences, are you noticing this on yours or is it just this rom?
my fone_fanatic @ xda
in 0.8.4
Suddenly the penny drops - I think. I believe I am correct in interpreting the three options as showing the time that the offending process has had a wakelock in place, expressed as a percentage of:
Or maybe I'm just too thick for it to be worthwhile pandering to my stupidity since no-one else has had any problem understanding what it meant.
todo: reduce padding inherited from view if bars height is too low (e.g. < 8)
Feature request: Alarm dump. Better still, a graphical representation of the alarm dump.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.