Android :: Need Battery Level At Android Widget
Sep 11, 2010
I wrote a widget for Android and I'm trying to get the battery level.
I've tried using. Intent battery Intent = context.register Receiver(null, new Intent Filter(Intent.ACTION_BATTERY_CHANGED). but I get the error:
"Intent Receiver components are not allowed to register to receive intents". Why? the ACTION_BATTERY_CHANGED is a sticky intent and I don't register a receiver (null in the first parameter).
View 2 Replies
Sep 24, 2009
Can anybody recommend a Widget for Brightness level that I can stick on my Home Page. CurveFish do one but it does not seem to work on Hero at the moment.
View 7 Replies
View Related
Apr 2, 2010
How do I add a View dynamically in an android widget? I realize that the RemoteViews works as a container of updates, but the RemoteViews.addView is only available on API level 7 (and I want my widget to work on HTC Hero phones, which has API level 3).
View 1 Replies
View Related
Sep 25, 2010
Can anyone suggest me a nice app to see the battery level?
View 10 Replies
View Related
Feb 9, 2010
Searching old posts reveal that no one knows a way to get the current battery level without using intents. Is this true? There's no method to just return the current battery level?
View 4 Replies
View Related
Feb 18, 2009
Is there a way to get the current battery status of the device (battery level and if the battery is currently charging). The only way I found so far is by using a Broadcast receiver to "listen" for battery status changes. Is there a way to get the battery status using a direct API call? I my case, I would like to check if the battery has sufficient charge (or is being currently charged) before starting the download of some (potentially large) files.
View 2 Replies
View Related
Feb 15, 2010
I am writing a program and I am able to get the light sensor value and current battery level, but only the light value changes and when the battery level changes. Is there a way to get these two values anytime? Like when a user runs my program, I would like to grab the current values right away instead of having to wait for them to change.
View 2 Replies
View Related
Jul 2, 2012
I'm having trouble developing an app, while it works in API level 10, it does not in API level 7. I wondery why and I've been looking for a site that summarizes the differences, or the new features from one API level to another and cannot find it.
09-04 04:24:21.485: E/AndroidRuntime(6834): Uncaught handler: thread main exiting due to uncaught exception
09-04 04:24:21.510: E/AndroidRuntime(6834): java.lang.VerifyError: [code]....
There seems to be a problem with an uncaught exception and reflection, although....why does it work on API level 10?
View 1 Replies
View Related
Aug 18, 2010
I am new to the android programming environment. I am currently working on a project which deals with the user's phone battery level.I am showing the current battery level left on the phone.now i want to display the amount of duration of "idle time, talk time, video playback, audio playback and web surfing" that can be done based on the current battery level. What kind of approach shall i follow.(or) What available API shall i use to get those.
View 2 Replies
View Related
Sep 21, 2010
New Incredible user just looking for some feedback, my battery stats are the following:
Uptime: 12:06
Awake time: 2:58
Battery use:
-Android system: 34%
-Cell standby 29%
-Phone Idle 22%
-Display 8%
-Voice calls 4%
-Maps 3%
I've been reading all other posts and their android system is significantly lower is there something draining my battery?
View 1 Replies
View Related
Oct 24, 2010
Android Version: 2.2 (but also happened on 2.1). My phone's battery level will suddenly drop to 89% even though it is still on charge. It's annoying because sometimes you'll start the day with only 89% charge instead of 100%. My friend also has a Desire but is not experiencing this problem - the only difference between them is the version of kernel. I read somewhere that is was the kernel that was the problem and somebody found a fix - xda developers - View Single Post - [DEV] Desire GSM/CDMA kernel 2.6.32 Google / 2.6.34/35 Cyanogen Mod.
View 4 Replies
View Related
Oct 12, 2010
I was just wandering if there is a shortcut to find the exact battery level on my Desire? I know you can go the 4636 route but thats slightly long winded, and most battery widgets/notification bar icons actually seem to use battery (i have properly tested this!). I know you can go into 'about phone' and do it that way but that just shows it as a series of bars, not as an actual figure.
View 5 Replies
View Related
May 27, 2010
I notice you see your exact battery percent when charging, is it possible when not?
View 3 Replies
View Related
Jul 20, 2010
so I decided to pull my battery out of my phone to check something.the battery level was at 30. I then put it back in and now its at 70. its been 20 minutes and its still at 70. Any insight on why this is happening?
View 1 Replies
View Related
Sep 28, 2010
Strange..My phone had 15% battery. I went into adb and started deleting apps for about 20 minutes. I turn the phone back on and it says it is fully charged.
View 7 Replies
View Related
Mar 9, 2012
One of my friends with an iPhone showed me how a battery level meter is next to the bluetooth symbol when his headset is connected(new feature in iOS5 from what I found online). He was also using a cheap Motorola headset too. Is there an app or widget that does the same thing on Android?
View 12 Replies
View Related
Nov 24, 2013
Is there any way to show my smartphone battery level on my computer? Synced via internet.
It will be sweet to have those two bars (notebook and smartphone battery level) next to each other on the taskbar (win 8). I tried to google it, but unsuccessfully.
View 2 Replies
View Related
Nov 9, 2009
I don't know if this is an Android 2.0 or a Motorola Droid issue, but I noticed that the battery level only reports in increments of 10's. For example 70%, 60% etc. Any apps or widgets also can only see this as well. Is this a bug, what happened to the detailed stats?
View 6 Replies
View Related
Jul 20, 2010
How can I get battery level and state (plugged in, discharging, charging, etc)? I researched the developer docs and I found a BatteryManager class. But it doesn't contain any methods, just constants. How do I even use it?
View 2 Replies
View Related
Nov 22, 2009
I was using the phone reading email and the battery indicator all of a sudden went from 50% to 5% and i got a prompt telling me to charge it. I knew this could not be right and i proved it by surfing the net for 10 mins and watching a video for 75 minutes before the phone died. Has anyone had this happen to them?
View 3 Replies
View Related
Aug 4, 2010
I was using satnav at the weekend; the battery level indicator on my Desire went from green to orange (20%) and the existent data connection dropped off straightaway. I was unable to re-establish a data connection even after switching the phone off and on again. I was in an area of reasonable/good network signal strength. The GPS continued to function however so I could still see my progress on the map but a data connection message appeared.
When I got home the phone continued to function on WiFi (with GPS on too) for nearly another two hours before it turned itself off, so there was plenty of "juice" left. My question is as to whether there is anything I can adjust to ensure that the battery continues to function fully (ie maintain a data connection) until it runs out? Or whether at 20% the phone is somehow set up to end a data connection? I have now got myself an HTC car charger to make sure the battery will not drop that low again when I am using satnav.
View 2 Replies
View Related
Oct 16, 2012
I have a rooted Nexus s on 4.1.2
I am wondering if there is an app that can power off my device when battery drops to a certain level. Tasker's shutdown task not seems working for me.
View 3 Replies
View Related
Oct 5, 2010
Is there a way to put a shortcut on the main screen for the battery level? I have been unsuccessful so far. I don't think the shortcuts option will let your drill down that deep to place that specific shortcut on the main screen.
View 4 Replies
View Related
Aug 6, 2010
Don't know if this has been discussed, but I turn my phone off. Then plug it in and a unique floating battery level appears while charging and it's off.
View 1 Replies
View Related
May 4, 2010
I am having a problem with "Battery Level". i am using sdk 1.5 in my app. when the Battery Level reduced to 15%(i want to post the info to the Soap server as an Alert). what i got info is if you are using 1.5 (>= ) then use Battery Manager.EXTRA_LEVEL. but in my app, i am not getting it. if anybody knows the desired solution regarding the problem please help me.
View 2 Replies
View Related
Jan 12, 2010
I'm trying to drain my battery it was at 7% I rebooted my phone cuz i know that kills battery but when it rebooted it said the battery is 13% now what gives why'd it do that.
View 4 Replies
View Related
Mar 16, 2010
Background info:
- I'm running the "Battery Left" widget and I have it displaying "estimated percentage left", "system percentage", and "estimated time left until dead".
- I listen to A LOT of Slacker Radio.
My issues:
- I was previously getting about 19+ hours out of a fully charged battery. 2-3 days ago I started having issues with the widget (I think it may have started when I installed an update to the widget) so I recalibrated it to no avail. Then I uninstalled it and reinstalled it. Within a few hours it claimed that it was getting accurate readings (when I first installed the widget weeks ago, it took days to get accurate) and now says that I should be getting 9 hours out of a fully charged battery. I know that can't be right so I'll see how the widget adjusts itself over the next few days, but, any thoughts? (I know a lot of you guys use the same widget and know how it works...)
- Also, In the first two hours of my phone being unplugged this morning, it went from 100% to 70%. I did run Slacker for about an hour and a half of that time, but could it really drain the battery that much that quickly? And I noticed that when I close Slacker, if I go into phone settings, applications, running services - there's still a Slacker update thing running in there. Could that be draining the battery too, even if it's only checking for updates?
- I really don't run a lot of stuff on this phone. I keep wifi and gps turned off. I use bluetooth only a few hours each night. Minimal web browsing. Although, my POP email gets checked every 5 mins (but I just changed it to every 10) and I do use gchat and text a decent amount, but I'd say overall, it's "light" use (except for Slacker which could be a huge drain, right?)
View 9 Replies
View Related
Oct 20, 2010
What is the best battery widget? I'm looking for one that tracks by each percent. I know BatteryLife is a good one, this one did by percent on my Hero, but now it wont on my X.
View 2 Replies
View Related
Oct 17, 2010
whats the name of this widget?
View 11 Replies
View Related
Dec 25, 2009
Im looking for a good battery widget?
View 13 Replies
View Related