Android 13 Developer Preview 2

0/5 No votes

Report this app

Description

[ad_1]


Posted by Dave Burke, VP of Engineering

Android13 Logo

Final month, we launched the primary developer preview of Android 13, constructed round our core themes of privateness and safety, developer productiveness, in addition to tablets and enormous display screen assist. Right this moment we’re sharing Android 13 Developer Preview 2 with extra new options and modifications so that you can attempt in your apps. Your enter helps us make Android a greater platform for builders and customers, so tell us what you assume!

Right this moment’s launch additionally comes on the heels of the 12L characteristic drop transferring to the Android Open Supply Undertaking (AOSP) final week, serving to you higher reap the benefits of the over 250+ million massive display screen Android units. And to dive into Android 13, tablets, in addition to our developer productiveness investments in Jetpack Compose, try the newest episode of #TheAndroidShow.

12L characteristic drop, now in AOSP

Earlier than leaping into Developer Preview 2, let’s check out the opposite information from final week: we’ve formally launched the 12L characteristic drop to AOSP and it’s rolling out to all supported Pixel units over the following few weeks. 12L makes Android 12 even higher on tablets, and consists of updates like a brand new taskbar that lets customers immediately drag and drop apps into split-screen mode, new large-screen layouts within the notification shade and lockscreen, and improved compatibility modes for apps. You’ll be able to learn extra right here.

Beginning later this 12 months, 12L can be obtainable in deliberate updates on tablets and foldables from Samsung, Lenovo, and Microsoft, so now could be the time to ensure your apps are prepared. We extremely suggest testing your apps in split-screen mode with home windows of varied sizes, making an attempt it in several orientations, and checking the brand new compatibility mode modifications in the event that they apply. You’ll be able to learn extra about 12L for builders right here.

And the perfect half: the big display screen options in 12L are foundational in Android 13, so you possibly can develop and check on Android 13 figuring out that you just’re additionally overlaying your bases for tablets working Android 12L. We see massive screens as a key floor for the way forward for Android, and we’re persevering with to speculate to provide the instruments it’s good to construct nice experiences for tablets, Chromebooks, and foldables. You’ll be able to be taught extra about find out how to get began optimizing for giant screens, and ensure to take a look at our massive screens developer sources.

Let’s dive into what’s new in at present’s Developer Preview 2 of Android 13.

Privateness and person belief

Folks need an OS and apps that they’ll belief with their most private and delicate data and the sources on their units. Privateness and person belief are core to Android’s product rules, and in Android 13 we’re persevering with to concentrate on constructing a accountable and prime quality platform for all by offering a safer atmosphere on the machine and extra controls to the person. Right here’s what’s new in Developer Preview 2.

Notification permission – To assist customers concentrate on the notifications which can be most essential to them, Android 13 introduces a brand new runtime permission for sending notifications from an app: POST_NOTIFICATIONS. Apps focusing on Android 13 will now must request the notification permission from the person earlier than posting notifications. For apps focusing on Android 12 or decrease, the system will deal with the improve move in your behalf. The move will proceed to be positive tuned. To supply extra context and management to your customers, we encourage you to focus on Android 13 as early as potential and request the notification permission in your app. Extra right here.

Notification permission dialog in Android 13.

Notification permission dialog in Android 13.

Developer downgradable permissions Some apps could not require sure permissions which have been beforehand granted by the person to allow a selected characteristic, or retain a delicate permission from an older Android model. In Android 13, we’re offering a new API to let your app shield person privateness by downgrading beforehand granted runtime permissions.

Safer exporting of context-registered receivers – In Android 12 we required builders to declare the exportability of manifest-declared Intent receivers. In Android 13 we’re asking you to do the identical for context-registered receivers as effectively, by including both the RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED flag when registering receivers for non-system sources. It will assist make sure that receivers aren’t obtainable for different functions to ship broadcasts to except desired. Whereas not required in Android 13, we suggest declaring exportability as a step towards securing your app.

Developer productiveness

In Android 13 we’re working to offer you extra instruments that will help you ship a refined expertise and higher efficiency for customers. Listed below are a number of the updates in at present’s launch.

Improved Japanese textual content wrapping TextViews can now wrap textual content by Bunsetsu (the smallest unit of phrases that sounds pure) or phrases — as a substitute of by character — for extra polished and readable Japanese functions. You’ll be able to reap the benefits of this wrapping through the use of android:lineBreakWordStyle="phrase" with TextViews.

Japanese text wrapping with phrase style
enabled (bottom) and without (top)

Japanese textual content wrapping with phrase type
enabled (backside) and with out (high).

Improved line heights for non-latin scripts – Android 13 improves the show of non-Latin scripts (reminiscent of Tamil, Burmese, Telugu, and Tibetan) through the use of a line top that’s tailored for every language. The brand new line heights stop clipping and enhance the positioning of characters. Your app can reap the benefits of these enhancements simply by focusing on Android 13. Ensure to check your apps when utilizing the brand new line spacing, since modifications could have an effect on your UI in non-Latin languages.

Target SDK for Android 12 and 13

Improved line top for non-Latin scripts in apps focusing on Android 13 (backside).

Textual content Conversion APIs – Individuals who converse languages like Japanese and Chinese language use phonetic lettering enter strategies, which frequently decelerate looking out and options like auto-completion. In Android 13, apps can name the brand new textual content conversion API so customers can discover what they’re in search of sooner and simpler. Beforehand, for instance, looking out required a Japanese person to (1) enter Hiragana because the phonetic pronunciation of their search time period (i.e. a spot or an app title), (2) use the keyboard to transform the Hiragana characters to Kanji, (3) re-search utilizing the Kanji characters to (4) get their search outcomes. With the brand new textual content conversion API, Japanese customers can kind in Hiragana and instantly see Kanji search outcomes reside, skipping steps 2 and three.

Coloration vector fonts Android 13 provides rendering assist for COLR model 1 (spec, intro video) fonts and updates the system emoji to the COLRv1 format. COLRv1 is a brand new, extremely compact, font format that renders shortly and crisply at any dimension. For many apps this can simply work, the system handles all the things. You’ll be able to choose in to COLRv1 to your app beginning in Developer Preview 2. In case your app implements its personal textual content rendering and makes use of the system’s fonts, we suggest opting in and testing emoji rendering. Be taught extra about COLRv1 within the Chrome announcement.

COLRv1 vector emoji (left) and bitmap emoji

COLRv1 vector emoji (left) and bitmap emoji.

Bluetooth LE Audio Low Power (LE) Audio is the next-generation wi-fi audio constructed to exchange Bluetooth basic and allow new use circumstances and connection topologies. It can permit customers to share and broadcast their audio to family and friends, or subscribe to public broadcasts for data, leisure, or accessibility. It’s designed to make sure that customers can obtain excessive constancy audio with out sacrificing battery life and be capable of seamlessly swap between totally different use circumstances that weren’t potential with Bluetooth Basic. Android 13 provides built-in assist for LE Audio, so builders ought to get the brand new capabilities totally free on appropriate units.

MIDI 2.0 Android 13 provides assist for the brand new MIDI 2.0 customary, together with the power to attach MIDI 2.0 {hardware} by means of USB. This up to date customary provides options reminiscent of elevated decision for controllers, higher assist for non-Western intonation, and extra expressive efficiency utilizing per-note controllers.

App compatibility

With every platform launch, we’re working to make updates sooner and smoother by prioritizing app compatibility as we roll out new platform variations. In Android 13 we’ve made app-facing modifications opt-in to offer you extra time, and we’ve up to date our instruments and processes that will help you prepare sooner.

With Developer Preview 2, we’re effectively into the discharge and persevering with to enhance total stability, so now could be the time to attempt the brand new options and modifications and provides us your suggestions. We’re particularly in search of enter on our APIs, in addition to particulars on how the platform modifications have an effect on your apps. Please go to the suggestions web page to share your ideas with us or report points.

timeline 

It’s additionally a superb time to start out your compatibility testing and establish any work you’ll must do. We suggest doing the work early, so you possibly can launch a appropriate replace by Android 13 Beta 1. There’s no want to alter your app’s targetSdkVersion at the moment, however we do suggest utilizing the conduct change toggles in Developer Choices to get a preliminary thought of how your app is perhaps affected by opt-in modifications in Android 13.

As we attain Platform Stability in June 2022, all the app-facing system behaviors, SDK/NDK APIs, and non-SDK lists can be finalized. At that time, you possibly can wind up your ultimate compatibility testing and launch a totally appropriate model of your app, SDK, or library. Extra on the timeline for builders is right here.

App compatibility toggles in Developer Options.

App compatibility toggles in Developer Choices.


Get began with Android 13

The Developer Preview has all the things it’s good to attempt the Android 13 options, check your apps, and provides us suggestions. You will get began at present by flashing a tool system picture to a Pixel 6 Professional, Pixel 6, Pixel 5a 5G, Pixel 5, Pixel 4a (5G), Pixel 4a, Pixel 4 XL, or Pixel 4 machine. If you happen to don’t have a Pixel machine, you should utilize the 64-bit system pictures with the Android Emulator in Android Studio Dolphin. For even broader testing, GSI pictures can be found. If you happen to’ve already put in a preview construct to your Pixel machine, you’ll mechanically get this replace and all later previews and Betas over the air. Extra particulars on find out how to get Android 13 are right here.

For full data, go to the Android 13 developer web site.

[ad_2]

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.