Book Image

Android 6 Essentials

By : Yossi Elkrief
Book Image

Android 6 Essentials

By: Yossi Elkrief

Overview of this book

Android 6 is the latest and greatest version of the Android operating system, and comes packed with cutting edge new features for you to harness for the benefit of building better applications. This step-by-step guide will take you through the basics of the Android Marshmallow permissions model and beyond into other crucial areas such as the Audio,Video,Camera API and Android’s at work features. Learn how to create, deploy, and manage Android applications with Marshmallow’s API and the latest functionalities. The combination of instructions and real-world examples will make your application deployment and testing a breeze.
Table of Contents (16 chapters)
Android 6 Essentials
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Index

Data backup configuration


We have a lot of data that we want to back up for our users, but we also don't want to back up all the data. Let's say we all agree not to back up users' passwords or other sensitive data, but what if you have a specific app configuration that is generated based on the device the user is using? This too should be excluded in a manner similar to device tokens such as Google Cloud Messaging (GCM) and others. I would recommend that you figure out which data your app keeps persistently and whether this data should and can be device-agnostic.

You can configure what is being backed up besides the automatically excluded files mentioned earlier. This configuration should be declared in your app's manifest via the android:fullBackupContent attribute. You will need to create a new XML file that should reside in your res/xml folder, and this will have specific rules for the backing up of your app's data.

Including or excluding data

XML file configuration includes a simple batch...