wseemann / RoMote

Open source Roku remote. Turn your Android Device into a control center for your Roku Player and Roku TV.
Apache License 2.0
109 stars 29 forks source link

Improve energy efficiency by applying Dynamic Retry Delay Energy Pattern Energy Pattern #16

Closed anasofiagribeiro closed 1 year ago

anasofiagribeiro commented 4 years ago

This improves the energy efficiency of wseeman by applying the Dynamic Retry Delay Energy Pattern and the Cache Energy Pattern for mobile applications.

The energy pattern was applied in CommandService.java and AndroidManifest.xml. The general idea is to avoid accessing an internet connection if the connection is down. In particular, a class NetworkStateReceiver will be created in the java file that checks for an internet connection.