The CommonsBlog

Latest articles

App Security at Android Summit 2020!

I’ll be presenting as part of Android Summit 2020, which has moved from the Washington DC area to the Web due to the pandemic, as have so many other events. This year, I wanted to return to a subject that I have presented on many times before: app security. Generally, this subject is a bit of a backwater — Android experts are orders of magnitude...

Android R One-Time Permission Problem Really an Android Studio Problem

Last month, I wrote about an apparent bug in Android R, where one-time permission expiration sometimes kills alarms and jobs. Google investigated and concluded that it is really an Android Studio problem. I can confirm their basic findings — the problem does not show up if you install and run the sample app from the command line, for example....

Getting Android Studio 4.2 Canary To Run Again

If you are like me, when Android Studio 4.2 Canary 8 came out, it would crash on startup with: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. Error occurred during initialization of VM Multiple garbage collectors selected This has been reported for...

Android R One-Time Permission Expiration Sometimes Kills Alarms, Jobs, More

UPDATE 2020-09-13: It turns out that the problem listed here is really an Android Studio problem. Android R adds one-time permissions to the user experience. The idea is that the user can grant a runtime permission for a while. I thought that it was for the current process invocation, but it appears as though you lose the permission if your app...

“Exploring Android” Version 1.3 Released

Subscribers now have access to an update to Exploring Android, known as Version 1.3, in PDF, EPUB, and MOBI/Kindle formats, in addition to the online reader. Just log into your Warescription page and download away, or set up an account and subscribe! This update adds one new tutorial, on displaying a dialog. And, as always, this update...

“Elements of Android R” Version 0.3 Released

Subscribers now have access to Version 0.3 of Elements of Android R, in PDF, EPUB, and MOBI/Kindle formats. Just log into your Warescription page to download it or read it online, or set up an account and subscribe! Yeah, OK, that update took a while. 2020 has been very odd. The existing material was updated to reflect R Beta 3. This includes...

ACTION_IMAGE_CAPTURE and Android R

Quoting the documentation: Starting in Android 11, only pre-installed system camera apps can respond to the following intent actions: android.media.action.VIDEO_CAPTURE android.media.action.IMAGE_CAPTURE android.media.action.IMAGE_CAPTURE_SECURE This is from the page of effects with targetSdkVersion of 30. They are very...

“Elements of Android Jetpack” Version 1.1 Released

Subscribers now have access to Version 1.1 of Elements of Android Jetpack, in PDF, EPUB, and MOBI/Kindle formats. Just log into your Warescription page to download it, or set up an account and subscribe! This is a maintenance update, with minor tweaks for Android Studio 4.0.1. In addition: The Room Kotlin sample was updated to...

Uri Access Lifetime: Still Shorter Than You Might Think

Almost exactly four years ago, I wrote about issues with accessing content at a Uri. That post is even more relevant now than it was back then, but the material there is a bit out of date. So, here’s a new-and-improved look at the issue. Your app gets a Uri from some outside source. Perhaps you used ACTION_GET_CONTENT or ACTION_OPEN_DOCUMENT...

Upgrading to dev15 of Jetpack Compose

Upgrading an existing Jetpack Compose project, running dev14 or earlier, to dev15 is a bit more involved than past updates. Here is what you need to do to move from dev14 to dev15, for a project using traditional Groovy-based Gradle files. If you are upgrading from an older Compose version, or you are using Kotlin Gradle scripts, some modifications...

Discover, share and read the best on the web

Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters! Get unfiltered news feeds or filter them to your liking.

Get Inoreader
Inoreader - Subscribe to RSS Feeds, Blogs, Podcasts, Twitter searches, Facebook pages, even Email Newsletters!