I am trying to determine if an Android user has had a close proximity to a list of predetermined locations. I'd like to do this with the least amount of drain on the phone's battery. The two mechanisms I see for accomplishing this are proximity alerts and requesting location updates. What are the pros and cons of the two methods? Will on...
Hi
I plan to develop a nice little application that will run on a
arm based embedded linux platform,
however since that platform will be battery powered I'm searching for
relevant information on how to handle powersave.
It is kind of important to get decent battery time.
I think the linux kernel implemented some support for this, ...
I have two laptops here. One is running Vista, the other Windows 7. I need to get the specifications on the batteries in both, how do I go about that?
The reason I'm asking is that I'd like to know if they're lithium ion or something else. Supposedly other types of batteries may have adversely affected charge capacities if left plugged...
This afternoon I walked my iPhone 4 into the Apple Store to see if they could help with a problem I've been having. Battery life hasn't been AT ALL what it should be--the battery drops 50% sitting on my desk overnight. Crazy. So I suspect I've got a bum unit. Happens. No biggie.
My friendly genius pokes around my phone a bit, and points...
I am using the 'location' UIBackgroundMode to receive GPS background updates when the user presses the Home button. As a result, if the app is left in background mode overnight, the battery is consistently dead the next morning. I have told the locationManager to stopUpdatingLocation, but to no effect.
I understand Apple doesn't want de...
Is there a way to retrieve the the amount of time since the battery has been charged?
It doesn't appear like there is a way to do so with BatteryManager, but they show it to you in the settings. I see it here source , but it doesn't appear like there is a way to grab it. Any help?
...
I have a simple question. How do I get iPhone's battery level?
[UIDevice currentDevice] batteryLevel]
Simple enough? However there is a little catch - I can't use UIKit. Here is what I wrote so far, but I don't think it works:
// notification port
IONotificationPortRef nport = IONotificationPortCreate(kIOMasterPortDefault);
CFRu...
Hello Everyone,
The title pretty much explains it all. I'm creating a mac app and I need the battery charge level specifically in mWh (not percentage). Would like to do it in C or Objective C preferably.
Thanks!
...
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?
...
I am currenlty trying to monitor my battery status through SMBus. I have a battery along with a contorl board which constantly outputs the battery status. This control board is then connected to my mother board through a I2C-USB module. I need to write some program to recognize the SMBus connection and transmit the battery status to the ...
I'm investigating the possiblity of writing an app for Android/iOS4/both that would use GPS in the background. I found the "Receiving Location Events in the Background" section of the iphone developer documentation, which recommends that I only register for "significant location change" events. I'm not aware of any such capability in th...
I have a background service that is active at certain times - such as when a call comes in. While working to optimize battery use I noticed that its onStartCommand() is being called every 10 minutes. I wasn't doing that, so I looked...
08-11 10:54:25.938: VERBOSE/com.dcd.monitor.MonitorService(32194): onStartCommand() on thread Monito...
Hi,
I have a widget that appears to drain the battery on some of my users phones but it works fine on my Nexus One (Froyo). Phones that has reported battery drain are HTC Legend, SE X10 and SE X10 mini. Anyone know if there is any known issues or something?
// Johan
...
Hi
I want to ask you If anybody know a simple way to access Mouse and Keyboard battery state in Mac OS. There are some API to access this information? Thanks!
...
Hi
I want to write a little App for Mac and i need the battery percentage of mouse and keyboard connected via Bluetooth. Anyone can tell me if there are some API to do this?
...
I have a broadcast receiver in my program to get react to the battery level like so:
private BroadcastReceiver mBatInfoReceiver = new BroadcastReceiver(){
@Override
public void onReceive(Context arg0, Intent intent) {
int level = intent.getIntExtra("level", 0);
// do something...
}
}
registerReceiver(thi...
On my nexus one, there is a handy app reachable from Settings > About Phone > Battery use.
I'd like to StartActivity() that app from one of my Activities.
I can see in the log that when Settings runs it, this intent is logged:
Starting activity:
Intent { act=android.intent.action.MAIN
cmp=com.android.settings/.fuelgauge.P...
I have a very tough problem I can't solve. I have an app which I can put into airplane mode remotely to save power. I have a thread running which gets the power-save message, removes callbacks for all other threads, puts the phone into airplane mode, and waits a specified number of minutes before waking the phone back up.
When the pho...
Hi,
I wrote a widget for Android and I'm trying to get the battery level.
I've tried using
Intent batteryIntent = context.registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
but I get the error:
"IntentReceiver components are not allowed to register to receive intents"
Why? the ACTION_BATTERY_CHANGED is a sticky...
Is there a performance impact, especially with regard to battery performance, if we switch from the default black theme of android to white or another colour?
...