battery
How can I get Battery information in my app?
I tried to use a receiver to get Information about battery when received a system broadcast, but it failed without doing anything.[详细]
2023-02-02 12:56 分类:问答iPhone battery life suggestions
I am developing a voice recording application that communicates with the server real-time, therefore requiring persistent Internet connectivity.I have included UIRequiresPersistentWiFi in my info.plis[详细]
2023-02-02 10:43 分类:问答iphone: location manager + adwhirl = battery drain :(
In my app I am using CLLocationManager and AdWhirl. I have made no specific development regarding background mode: I don\'t want my app to be working when it is in background, i.e. when the user press[详细]
2023-01-28 08:45 分类:问答Keep widget BroadcastReceiver alive even if not instantiated from Manifest
i have a widget which needs to listen to BATTERY_CHANGED event, however, since this event is protected and cannot be declared from the manifest i create a new Broadc开发者_如何学PythonastReceiver from[详细]
2023-01-27 23:04 分类:问答android: service behaved differnat when not connected to pc
I believe it\'s because of some power saving option or whatever but I cant debug it since it only fails when it\'s on battery[详细]
2023-01-24 11:04 分类:问答Stopping and starting a Service based on application state
I have a Service which tracks the location of the user.Currently, the Service boots when the application starts and stops when the application ter开发者_开发技巧minates.Unfortunately, if users keep th[详细]
2023-01-23 00:35 分类:问答getting battery level at android widget
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));[详细]
2023-01-15 13:27 分类:问答Android service called periodically by the system?
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[详细]
2023-01-11 17:38 分类:问答Get battery level and state in Android
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开发者_StackOverflow社区 doesn\'t contain any[详细]
2023-01-08 15:10 分类:问答Retrieve battery uptime for android
Is there a way to retrieve the the amount of time since the battery has been charge开发者_运维百科d?[详细]
2023-01-07 06:56 分类:问答
加载中,请稍侯......