andreynovikov / trekarta

Simple, responsive map for your trek. You decide how to journey today, not the application!
https://trekarta.info
GNU General Public License v3.0
178 stars 25 forks source link

Improve energy efficiency by applying Reduce Size Energy Pattern #131

Closed anasofiagribeiro closed 3 years ago

anasofiagribeiro commented 4 years ago

This improves the energy efficiency of trekarta by applying the Reduce Size Energy Pattern for mobile applications. The energy pattern was applied in MapSelection.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.