battery

What are the most battery-consuming things you can do in an iPhone-app?

泪湿孤枕 提交于 2019-12-03 04:47:14
I am making an app that quickly drains the users battery. For this, I am planning on using the sound-framework for vibrating, location services, download large but empty files from the internet, use the flashlight on the back of the phone, and so on. I know these can effectively drain the battery, but I would like to know if there are more methods that are more or equally power/processor-consuming or that could work for this in any way? Examples on how to achieve 100% CPU usage is also very appreciated. Thanks. Srikar Appalaraju Here are some of the things you could do (Most of these are

PubNub long polling vs sockets - mobile battery life

 ̄綄美尐妖づ 提交于 2019-12-02 23:01:26
I recently began using PubNub in my iOS app, and am very happy with it. However, I have been looking at the other options available, such as Pusher and Realtime.co, which use Websockets. PubNub, on the other hand, uses long polling. I have done my own little speed comparisons and for my purposes, I find that they are all fast enough. PubNub offers some nice features like message history and a list of everyone in the channel , so barring everything else I am leaning toward them. My question is, should I be concerned with battery life and heavy usage with a long-polling solution like PubNub?

Android location aware notifications

混江龙づ霸主 提交于 2019-12-02 20:59:44
I'm looking for best techniques for Location Aware notifications. My first try was to use LocationManager's addProximityAlert but it requires ACCESS_FINE_LOCATION (COARSE_LOCATION gives me a SecurityException) and keeps the GPS always ON and active (at least on Jelly Bean), which drains the battery very quickly. It also doesn't seems to respect the check only once every 4 minutes when the screen is asleep ( addProximityAlert ). I'm thinking to work with the PASSIVE_PROVIDER to gather other applications location information, and maybe use a service to ask for COARSE_LOCATION every once in a

Detect overheating in Google Glass programmaticaly

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 12:17:38
问题 As many of other I am facing the google glass overheating issue. My question is how to detect it in the application? I was looking through the log but nothing that indicates it expect a message on the screen. 回答1: Google Glass have (at least) two temperature probes. One for the battery , and the other for the CPU board . You can read them as a regular file. Battery /sys/devices/platform/omap_i2c.1/i2c-1/1-0055/power_supply/bq27520-0/temp CPU Board /sys/devices/platform/notle_pcb_sensor.0

Detect overheating in Google Glass programmaticaly

折月煮酒 提交于 2019-12-02 03:45:50
As many of other I am facing the google glass overheating issue. My question is how to detect it in the application? I was looking through the log but nothing that indicates it expect a message on the screen. Google Glass have (at least) two temperature probes. One for the battery , and the other for the CPU board . You can read them as a regular file. Battery /sys/devices/platform/omap_i2c.1/i2c-1/1-0055/power_supply/bq27520-0/temp CPU Board /sys/devices/platform/notle_pcb_sensor.0/temperature But keep in mind that these files may change location as new versions of Google Glass are shipped.

Get the Battery status on windows 8

让人想犯罪 __ 提交于 2019-12-01 20:28:59
问题 I searched over the Internet and the only thing that I found a little bit helpful was the way to get Battery status on Windows Phone 8. But I want it on Windows 8 (RT). Can anyone help me out? 回答1: According to everything that I can find, we do not have access to the Power API in WinRT, it is only available for a desktop application. See this MSDN Forum article From above link: Power Management Functions apply to "desktop app only". No equivalent for the Power APIs in Metro style app. Please

How to calculate remaining time of android phone battery? [duplicate]

二次信任 提交于 2019-12-01 19:05:48
问题 This question already has answers here : Calculating remaining time of battery live (3 answers) Closed 3 years ago . I am developing battery health app on Android Studio. I want to know how to calculate remaining time by playing music or video, browsing website, or standby. I have seen many android apps like this but can not see the source code. I want to see the sample code for calculating remaining time for playing music or video and so on. If you have developed android battery healthy app

Get the Battery status on windows 8

时光怂恿深爱的人放手 提交于 2019-12-01 19:05:13
I searched over the Internet and the only thing that I found a little bit helpful was the way to get Battery status on Windows Phone 8. But I want it on Windows 8 (RT). Can anyone help me out? According to everything that I can find, we do not have access to the Power API in WinRT, it is only available for a desktop application. See this MSDN Forum article From above link: Power Management Functions apply to "desktop app only". No equivalent for the Power APIs in Metro style app. Please check Alternatives to Windows APIs in Metro style apps Here is another thread http://social.msdn.microsoft

How to calculate remaining time of android phone battery? [duplicate]

℡╲_俬逩灬. 提交于 2019-12-01 18:28:15
This question already has an answer here: Calculating remaining time of battery live 3 answers I am developing battery health app on Android Studio. I want to know how to calculate remaining time by playing music or video, browsing website, or standby. I have seen many android apps like this but can not see the source code. I want to see the sample code for calculating remaining time for playing music or video and so on. If you have developed android battery healthy app before, please share your knowledge. -- Simplest and most easiest way to calculate remaining battery life : MainActivity.java

Remaining time to battery discharge on android

↘锁芯ラ 提交于 2019-12-01 13:37:25
I am looking for a code for estimating/guessing time remaining before the android phone battery is completely discharged. My search results were full of apps available and also the common comment that it's pretty much useless to calculate it. However i need the code. Any help, even a rough snippet, will do for getting started with. You can not accurately guess that how much time is remaining for battery discharge, because there might be different applications or service consuming battery. thus it might vary. However you can get battery life with help of broadcast receiver by registering a