Tuesday, May 24, 2016

Calculate battery drain in your app

Interesting slide
 for each API call, it consumes 1/3 mAh
so if you just make API call a minute, you will drain the battery by 1/3 a day!


https://www.youtube.com/watch?v=QR3PIg0RDnk
#io16

Location, save battery and still have a great user experience!

Through patching data from Sensors (e.g. GPS, WiFi, Cell, Gyro, Magno, Acce) via FLP (Fused Location Provider) this leads to more battery saving as it sends those batched data at specific intervals which you can define according to your use case.
But if the user wants to know the exact location right now, they can immediately check it through Flushing callback which provides a seamless user experience.

Changes in Hardware (Lowest level of abstraction) makes User Experience much better (Highest level of abstraction)




Sources:
https://www.youtube.com/watch?v=OEvycEMoLUg
https://developers.google.com/awareness-location/