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

Important bytes


Before we jump into the next chapter, let's go through a couple of important subtopics within the Android apps' backup feature.

System backup does not include the following:

  • Files located in CacheDir via the getCacheDir() method (API 1 and above)

  • Files located in CodeCacheDir via the getCodeCacheDir() method (API 21 and above)

  • Files located in the external storage and not in ExternalFilesDir via the getExternalFilesDir(String type) method, where the type can be as follows:

    • null for the root of the file directory

    • Any of these types for a specific subfolder/directory:

      • android.os.Environment.DIRECTORY_MUSIC

      • android.os.Environment.DIRECTORY_PODCASTS

      • android.os.Environment.DIRECTORY_RINGTONES

      • android.os.Environment.DIRECTORY_ALARMS

      • android.os.Environment.DIRECTORY_NOTIFICATIONS

      • android.os.Environment.DIRECTORY_PICTURES

      • android.os.Environment.DIRECTORY_MOVIES

  • Files located in NoBackupFilesDir via the getNoBackupFilesDir() method (API 21 and above)

What to exclude from the backup...