Random Musings on the Android 12L Developer Preview
Each time Google releases a new developer preview, I rummage throughthe API differences reportthe high-level overviews,and even the release blog post,to see if there are things that warrant more attention from developers. I try to emphasize mainstream features that any developermight reasonably use, along with things that may notget quite as much attention, because they are buried in the JavaDocs.
But, let���s face it: this is just really weird.
We have not had a point releasesince 8.1, and the ���12L��� naming convention isn���t exactly semantic.Plus, ���12L��� isn���t the only name ��� in other places, it is referred to as���Sv2���, presumably short for ���version 2 of the ���S��� name that we stopped using a fewmonths ago���.
What Stands As the Biggest Change For Most DevelopersgetExternalStorageDirectory() and getExternalStoragePublicDirectory()on Environment are now undeprecated. DATA in MediaStore.MediaColumnsis also undeprecated.
I don���t know what to make of this.
What Changed Elsewhere in the APIFrankly, not much. There is a new Spatializer class, related to sound spatialization:
Sound spatialization simulates sounds originating around the listener as if they were coming from virtual speakers placed around the listener.
There are a handful of other related audio changes.
Beyond that, we have:
Some accessibility changes related to drag and drop
New support for system and pre-installed apps related to two-panebehavior in the Settings app
Some tweaks to wallpaper behavior, particular pertaining to foldables
Some changes to VoiceInteractionSession
���and that���s really about it.
What Would Be Nice If Google Really Documented SomedayGoogle changed some of the behavior of media projection. Theirexplanation of what changedis opaque, but it does link to a new pagewith a few sections that briefly explain what media projection is.
IOW, I still suspect that I have written more about media projectionthan has all of Google combined, which is sad.
What You Should Focus OnThere is a very good chance that your app only supports portrait mode.If so, and if your app might run on tabletsor foldables, pay attention tothe letterboxing effectsthat now get applied if the manufacturer so chooses.
If you had been trying to avoid split-screen mode,you are out of luck on larger-screen devices ���instead, you may be letterboxed.
If you would prefer to more actively attempt to support larger screens,activity embeddingappears to make it simpler for you to show more than one activity on a largerscreen at a time. The API support for this must be in Android 12, though, giventhe limited changes in 12L/Sv2/whatever this is.
On the whole, though, the average developer does not seem to care much about tablets, letalone foldables or Chromebooks. If you do, then 12L is important to you, and you shouldstart experimenting with the emulator��� since it is unclear when there will be hardwaresupport for 12L. Presumably Google���s foldable will ship in the coming months, andapparently 12L will come quickly to the Lenovo P12 Pro,but is unclear how soon other manufacturers will ship 12L to anything of relevance.


