I want to write an app that has a background service to keep getting the sensor values all the time, but dont know if that will consume too much power, does anyone has some knowledge of this? any reply will be appreciated!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This varies from sensor to sensor, and device to device.
On average, your most power hungry sensors are the GPS, accelerometer and gyroscope. Leaving these on in the background will start showing battery drain within an hour usually.
After that, the light sensor and compass are much less battery intensive, but if you use them for long enough even they’ll affect battery life.