Elements of Android Q
By Mark Murphy
()
About this ebook
2019 brought us a new version of Android, Android 10 (code-named “Q”)! As usual, Android 10 changed some things that affect developers and apps. This book profiles those changes and helps point out what you need to do to adjust your app to cope with those changes. So, if you are worried about the death of external storage and other things that Android 10 brings with it, this book is for you!
Mark Murphy
Mark Murphy is a FranklinCovey Senior Consultant who has facilitated content successfully to clients worldwide for the last twenty-nine years. During that time, he also spent eleven years as a founding partner of a small boutique firm specializing in project management consulting. Mark grew up in Colorado and lives in Dallas, Texas.
Read more from Mark Murphy
The Leader's Guide to Unconscious Bias: How To Reframe Bias, Cultivate Connection, and Create High-Performing Teams Rating: 4 out of 5 stars4/5Elements of Android Jetpack Rating: 0 out of 5 stars0 ratingsExploring Android Rating: 0 out of 5 stars0 ratingsHiring for Attitude (PB) Rating: 4 out of 5 stars4/5Hard Goals (PB) Rating: 4 out of 5 stars4/5Truth at Work: The Science of Delivering Tough Messages Rating: 0 out of 5 stars0 ratingsElements of Android Room Rating: 0 out of 5 stars0 ratingsHundred Percenters: Challenge Your Employees to Give It Their All, and They'll Give You Even More Rating: 4 out of 5 stars4/5Elements of Android R Rating: 1 out of 5 stars1/5Le Guide du dirigeant: Nos biais inconscients: Corriger ses biais, cultiver ses relations et créer des équipes plus performantes Rating: 0 out of 5 stars0 ratingsTravel Forward Rating: 0 out of 5 stars0 ratingsDumb Luck Rating: 0 out of 5 stars0 ratingsMinology II The Disquisitive Saga Of Filbert Monkston Rating: 0 out of 5 stars0 ratingsHow to Hire and Manage Hundred Percenters Rating: 0 out of 5 stars0 ratings
Related to Elements of Android Q
Related ebooks
Elements of Android R Rating: 1 out of 5 stars1/5Building Android Applications for Beginners Rating: 0 out of 5 stars0 ratingsAndroid For Beginners. Developing Apps Using Android Studio Rating: 4 out of 5 stars4/5Learn Docker - .NET Core, Java, Node.JS, PHP or Python: Learn Collection Rating: 5 out of 5 stars5/5Practical Android: 14 Complete Projects on Advanced Techniques and Approaches Rating: 0 out of 5 stars0 ratingsInstant Zend Framework 2.0 Rating: 0 out of 5 stars0 ratingsGame and Graphics Programming for iOS and Android with OpenGL ES 2.0 Rating: 0 out of 5 stars0 ratingsBuild a Whatsapp Like App in 24 Hours: Create a Cross-Platform Instant Messaging for Android Rating: 4 out of 5 stars4/5Instant PhoneGap Social App Development Rating: 0 out of 5 stars0 ratingsQuick and Dirty Guide for Developers: Adobe Edge Preview 3 in 4 Hours Rating: 2 out of 5 stars2/5Visual Studio Code: End-to-End Editing and Debugging Tools for Web Developers Rating: 0 out of 5 stars0 ratingsMonitoring Docker Rating: 0 out of 5 stars0 ratingsBeginning Mobile Application Development in the Cloud Rating: 0 out of 5 stars0 ratingsB4A: Rapid Android App Development using BASIC Rating: 0 out of 5 stars0 ratingsUnlock Any Roku Device: Watch Shows, TV, & Download Apps Rating: 0 out of 5 stars0 ratingsLearning Embedded Android N Programming Rating: 0 out of 5 stars0 ratingsPro Android with Kotlin: Developing Modern Mobile Apps Rating: 0 out of 5 stars0 ratingsQuick and Dirty Guide for Designers: Adobe Edge Preview 3 in 4 Hours Rating: 0 out of 5 stars0 ratingsDeveloping with Docker Rating: 5 out of 5 stars5/5Generic Pipelines Using Docker: The DevOps Guide to Building Reusable, Platform Agnostic CI/CD Frameworks Rating: 0 out of 5 stars0 ratingsInstant Spring for Android Starter Rating: 0 out of 5 stars0 ratingsMore Debian 8 for Beginners Rating: 0 out of 5 stars0 ratingsExtending Docker Rating: 0 out of 5 stars0 ratingsGetting Started with the Lazarus IDE Rating: 0 out of 5 stars0 ratingsWhere to Place My Project: Code Hosting Platforms Rating: 0 out of 5 stars0 ratingsMastering PhoneGap Mobile Application Development Rating: 0 out of 5 stars0 ratings
Internet & Web For You
More Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5Hacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5Introduction to Internet Scams and Fraud: Credit Card Theft, Work-At-Home Scams and Lottery Scams Rating: 4 out of 5 stars4/5Coding For Dummies Rating: 5 out of 5 stars5/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5The Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5Beginner's Guide To Starting An Etsy Print-On-Demand Shop Rating: 0 out of 5 stars0 ratingsHow To Make Money Blogging: How I Replaced My Day-Job With My Blog and How You Can Start A Blog Today Rating: 4 out of 5 stars4/5The Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5Wireless Hacking 101 Rating: 4 out of 5 stars4/5Tor and the Dark Art of Anonymity Rating: 5 out of 5 stars5/5The $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 5 out of 5 stars5/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Social Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5200+ Ways to Protect Your Privacy: Simple Ways to Prevent Hacks and Protect Your Privacy--On and Offline Rating: 0 out of 5 stars0 ratingsGrokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5SEO For Dummies Rating: 4 out of 5 stars4/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5How To Start A Podcast Rating: 4 out of 5 stars4/5Remote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5The Internet Is Not What You Think It Is: A History, a Philosophy, a Warning Rating: 4 out of 5 stars4/5Podcasting For Dummies Rating: 4 out of 5 stars4/5The Cyber Attack Survival Manual: Tools for Surviving Everything from Identity Theft to the Digital Apocalypse Rating: 0 out of 5 stars0 ratingsHow to Be Invisible: Protect Your Home, Your Children, Your Assets, and Your Life Rating: 4 out of 5 stars4/5No Place to Hide: Edward Snowden, the NSA, and the U.S. Surveillance State Rating: 4 out of 5 stars4/5
Reviews for Elements of Android Q
0 ratings0 reviews
Book preview
Elements of Android Q - Mark Murphy
Table of Contents
Headings formatted in bold-italic have changed since the last version.
Preface
The Book’s Prerequisites
What’s New in the FINAL Version?
Warescription
Source Code and Its License
Creative Commons and the Four-to-Free (42F) Guarantee
Acknowledgments
The Death of External Storage
Introducing the Filter
Controlling the Behavior
What Will Happen in Android R?
Adapting to Scoped Storage
But I Need a File!!!
Other Problems To Consider
Related Deprecations That Might Affect You
Using MediaStore
What Not To Do
MediaStore and Permissions
How to Consume Media
How to Create Media
Other MediaStore Changes
Location Access Restrictions
Background Location Access
EXIF Metadata Redaction
Share Targets
What Came Before
Implementing the New Approach
The User Experience
Dark Mode
Turning to the Dark Side
The Dark-All-The-Time Solution
The System Override Solution
The DayNight Solution
Dark Mode and Configuration Changes
Gesture Navigation
A Tale of Three (or More) Nav Patterns
Impacts on Apps
Installing Apps Using PackageInstaller
Applying PackageInstaller
Other Changes of Note
Stuff That Might Break You
Stuff That Might Interest You
Mystifying Things
Preface
Thanks!
Thanks for your continued interest in Android! Android advances year after year, and 2019’s Android 10 (Q) continues that pattern. Many developers ignore new Android versions until some concrete problem causes them grief. Hopefully, you are reading this in advance of when Android 10 ships to lots of devices, so you can head off any problems before they turn into customer complaints.
(on the other hand, if you are reading this in response to Android 10 customer complaints… sorry!)
And thanks for your interest in this book and CommonsWare’s overall line of Android books!
The Book’s Prerequisites
This book is designed for developers with 1+ years of Android app development experience. If you are fairly new to Android, please consider reading Elements of Android Jetpack, Exploring Android, or both, before continuing with this book.
Also note that this book’s examples are written in Kotlin.
What’s New in the FINAL Version?
This update replaces many of the Q
references with 10
, and makes other changes to reflect the fact that Android 10 is now shipping. This update also fixes various bugs and adds a few bits of late-breaking news.
Note that this book will not receive further updates, given that Android 10’s SDK is final and that Android 10 is shipping.
Warescription
If you purchased the Warescription, read on! If you obtained this book from other channels, feel free to jump ahead.
The Warescription entitles you, for the duration of your subscription, to digital editions of this book and its updates, in PDF, EPUB, and Kindle (MOBI/KF8) formats, plus the ability to read the book online at the Warescription Web site. You also have access to other books that CommonsWare publishes during that subscription period.
Each subscriber gets personalized editions of all editions of each title. That way, your books are never out of date for long, and you can take advantage of new material as it is made available.
However, you can only download the books while you have an active Warescription. There is a grace period after your Warescription ends: you can still download the book until the next book update comes out after your Warescription ends. After that, you can no longer download the book. Hence, please download your updates as they come out. You can find out when new releases of this book are available via:
The CommonsBlog
The CommonsWare Twitter feed
Opting into emails announcing each book release — log into the Warescription site and choose Configure from the nav bar
Just check back on the Warescription site every month or two
Subscribers also have access to other benefits, including:
Office hours
— online chats to help you get answers to your Android application development questions. You will find a calendar for these on your Warescription page.
A Stack Overflow bump
service, to get additional attention for a question that you have posted there that does not have an adequate answer.
A discussion board for asking arbitrary questions about Android app development.
Source Code and Its License
The source code in this book is licensed under the Apache 2.0 License, in case you have the desire to reuse any of it.
Copying source code directly from the book, in the PDF editions, works best with Adobe Reader, though it may also work with other PDF viewers. Some PDF viewers, for reasons that remain unclear, foul up copying the source code to the clipboard when it is selected.
Creative Commons and the Four-to-Free (42F) Guarantee
Each CommonsWare book edition will be available for use under the Creative Commons Attribution-Noncommercial-ShareAlike 3.0 license as of the fourth anniversary of its publication date, or when 4,000 copies of the edition have been sold, whichever comes first. That means that, once four years have elapsed (perhaps sooner!), you can use this prose for non-commercial purposes. That is our Four-to-Free Guarantee to our readers and the broader community. For the purposes of this guarantee, new Warescriptions and renewals will be counted as sales of this edition, starting from the time the edition is published.
This edition of this book will be available under the aforementioned Creative Commons license on 1 November 2023. Of course, watch the CommonsWare Web site, as this edition might be relicensed sooner based on sales.
For more details on the Creative Commons Attribution-Noncommercial-ShareAlike 3.0 license, visit the Creative Commons Web site
Note that future editions of this book will become free on later dates, each four years from the publication of that edition or based on sales of that specific edition. Releasing one edition under the Creative Commons license does not automatically release all editions under that license.
Acknowledgments
The author would like to thank the Google team responsible for Android Q.
The author would also like to thank:
John De Lancie
The late Desmond Llewelyn
The occasionally-late John Cleese
The Death of External Storage
When Q Beta 1 was released, the biggest change for developers in Android 10 — by far — was what Google calls scoped storage
. In a nutshell, your ability to work with files and the filesystem was substantially