Header Ads

Data Saver (Android Development Patterns S3 Ep 6)

Metered connections have a real monetary cost associated with them for many users. Data Saver expands on the background optimizations available in Marshmallow by adding a system wide setting to disable background data usage on all apps.

With a new API added to ConnectivityManager, you can check the current state of Data Saver and adjust your apps’ data usage.

Of course, strongly consider using JobScheduler and delay jobs until you are on an unmetered connection if possible to always be data-conscious.

Check out the full documentation: https://goo.gl/X3IcUj


No comments:

Powered by Blogger.