tobykurien / BatteryFu

BatteryFu (pronounced Battery-Foo, like in Kung-Fu) is an Android app that extends battery life (and lowers data usage) by changing always-on mobile/wifi data to periodic sync (meaning it disables your mobile data and/or Wifi, then checks your accounts every X minutes).
GNU General Public License v2.0
68 stars 17 forks source link

Improve energy efficiency by applying Reduce Size Energy Pattern #49

Open anasofiagribeiro opened 4 years ago

anasofiagribeiro commented 4 years ago

This improves the energy efficiency of BatteryFu by applying the Reduce Size Energy Pattern for mobile applications. The energy pattern was applied in Utils.java. The general idea is when receiving data from an URLConnection or subclasses, if possible, receive the data compressed by GZIP scheme. In this specific case, when receiving data from the urlConnection variable, request for the data to be compressed.