Android Developers Blog: Introducing Android 8.0 Oreo


After greater than a 12 months of building and months of trying out through builders and early adopters (thanks!), we are now able to formally release Android 8.0 Oreo to the sector. Android 8.0 brings a ton of significant options comparable to picture-in-picture, autofill, built-in Instant Apps, Google Play Protect, quicker boot time, and a lot more.

We’re pushing the assets to Android Open Source Project (AOSP) for everybody to get entry to these days. Pixel and Nexus 5X/6P builds have entered provider trying out and we think to begin rolling out in levels over the following a number of weeks, along Pixel C and Nexus Player. Android Beta customers will obtain the replace to the general model these days and pictures are to be had to obtain and flash manually. We’ve been running carefully with our companions over the past many months, and through the top of this 12 months, makers like Essential, Huawei, HTC, Kyocera, Motorola, HMD Global Home of Nokia Phones, Samsung, Sharp and Sony are scheduled to be launching or upgrading new units to Android 8.0 Oreo.

What’s in Android Oreo?

In Android 8.0 Oreo we taken with developing fluid reports that make Android much more tough and simple to make use of, comparable to:

  • Picture-in-picture we could customers organize two duties concurrently on any dimension display screen, and it is simple for apps to strengthen it. (Shown at proper)
  • Notification dots lengthen the succeed in of notifications and be offering a brand new method to floor process for your apps. Dots paintings with 0 effort for many apps — we even extract the colour of the dot out of your icon.
  • Autofill framework simplifies how customers arrange a brand new software and synchronize their passwords. Apps the use of shape knowledge can optimize their apps for Autofill, and password supervisor apps can use the brand new APIs to make their services and products to be had to customers of their favourite apps. Autofill will roll out totally over the following couple of weeks as a part of an replace to Google Play Services.

We additionally invested in Android Vitals, a undertaking taken with optimizing battery existence, startup time, graphics rendering, and balance, whilst giving builders higher visibility over the well being in their apps:

  • System optimizations: We labored around the machine to assist apps run quicker and smoother — for instance, within the runtime we added a brand new concurrent compacting rubbish assortment, code locality, and extra.
  • Background limits: We added new limits on background location and wireless scans and adjustments in the best way apps run within the background. These obstacles save you unintended overuse of battery and reminiscence and practice to all apps — remember to perceive and account for those for your apps.
  • Complementary Android Vitals dashboards and IDE profilers: In the Play Console you’ll now see mixture knowledge about your app that can assist you pinpoint not unusual problems – over the top crash price, ANR price, frozen frames, sluggish rendering, over the top wakeups, and extra. You’ll additionally to find new efficiency profilers in Android Studio three.zero, and new instrumentation within the platform.

In Android 8.0 your app can without delay pin a selected app shortcut within the launcher to pressure engagement (left). Notification dots stay customers lively for your app and allow them to leap without delay to the app’s core purposes (proper).

For builders, Android Oreo comprises many new functions that can assist you construct higher, extra environment friendly apps. Here are only a few:

  • Autosizing textview: Use autosizing TextView to mechanically fill a TextView with textual content, without reference to the quantity. You can create an array of preset textual content sizes, or set min and max sizes with a step granularity, and the textual content will develop and shrink to fill the to be had TextView house.
  • Fonts in XML: Fonts at the moment are an absolutely supported useful resource kind. You can now use fonts in XML layouts and outline font households in XML.
  • Downloadable fonts and emoji: With downloadable fonts you’ll load fonts from a shared supplier as a substitute of together with them for your APK. The supplier and strengthen library organize the obtain of fonts and stocks them throughout apps. The similar implementation additionally helps downloadable emoji, so you’ll get up to date emoji with out being restricted to the emoji constructed into the software.
  • Adaptive icons: You can now create adaptive icons that the machine shows in numerous shapes, in line with a masks decided on through a tool producer. The machine additionally animates interactions with the icons, and makes use of them within the launcher, shortcuts, settings, sharing dialogs, and within the review display screen.

Adaptive icons show in a lot of shapes throughout other software fashions.

  • Shortcut pinning: App shortcuts and homescreen widgets are nice for attractive customers and now you’ll let customers upload and pin shortcuts and widgets to the launcher from inside your app. There’s additionally a brand new possibility so as to add a specialised process to assist customers create shortcuts. The process is whole with customized choices and affirmation.
  • Wide-gamut colour for apps: Imaging apps can now take complete benefit of new units that experience a wide-gamut colour succesful show. To show large gamut photographs, apps permit a flag of their manifest information (in line with process) and cargo bitmaps with an embedded large colour profile (AdobeRGB, Pro Photo RGB, DCI-P3, and so on.).
  • WebView improvements: In Android Oreo, now we have enabled WebView multiprocess mode through default and added an API to let your app take care of mistakes and crashes. You too can choose for your app’s WebView items to ensure URLs thru Google Safe Browsing.
  • Java 8 Language APIs and runtime optimizations: Android now helps a number of new Java Language APIs, together with the brand new java.time API. In addition, the Android Runtime is quicker than ever prior to, with enhancements of as much as 2x on some utility benchmarks.

Learn extra about those and different new options through visiting the Android 8.0 Oreo website on developer.android.com. Also take a look at the What’s New in Android Oreo? video for an outline of recent options for builders.

Make certain your apps are able

If have not already, take a couple of moments these days to check your apps and ensure they provide the revel in you need for customers upgrading to Android Oreo.

Just set up your present app from Google Play onto a tool or emulator
working Android Oreo and take a look at the person flows. The app must run and glance nice,
and take care of the Android Oreo behavior
changes
correctly. In explicit, take note of background
location limits
, notification
channels
, and adjustments in networking,
safety,
and identifiers.

Once you have got resolved any problems, put up your app updates to Google Play for your alpha, beta, or manufacturing channels in order that they are to be had as customers begin to obtain Android 8.0 Oreo.

Speed your building with Android Studio

When you are prepared to construct with new APIs in Android Oreo, we suggest updating to the newest model of Android Studio three.zero, to be had for obtain from the beta channel. Aside from advanced app efficiency profiling equipment, strengthen for the Kotlin programming language, and Gradle construct optimizations, Android Studio three.zero makes it more uncomplicated to increase with Instant Apps, XML Fonts, downloadable fonts, and adaptive icons.

Android Studio three.zero comprises equipment for growing with Android Oreo options, comparable to previewing XML font assets for your app.

We additionally suggest updating to the Android Support Library 26.zero.2, to be had now from Google’s Maven repository, and to the newest SDK, equipment, and emulator machine photographs, to be had within the SDK Manager.

If you are simply getting began development for Android Oreo, learn the migration information first. It provides you with an outline of the method and the configuration adjustments you can wish to make.

To bring together towards the legitimate Android 8.0 APIs, replace your undertaking’s compileSdkVersion to API 26. We additionally suggest updating your app’s targetSdkVersion to API 26 to opt-in and take a look at your app with Android Oreo explicit habits adjustments. See the migration information for main points on the way to arrange your setting to construct with Android Oreo.

Publish your updates to Google Play

Google Play is open for apps compiled towards or concentrated on API 26. When you are prepared, you’ll put up your APK updates for your alpha, beta, or manufacturing channels.

Make certain that your up to date app runs neatly on Android Oreo in addition to older variations. We suggest the use of Google Play’s beta trying out function to get early comments from a small staff of customers, then do a staged rollout. We’re taking a look ahead to seeing your app updates!

What’s subsequent for Android Oreo?

We’ll quickly be final the Developer Preview factor tracker, however please stay the comments coming! You can report a brand new factor towards Android 8.0 within the AOSP factor tracker.

Thanks once more to the numerous builders and early adopters who participated within the Android O Developer Preview and public beta. You gave us nice comments, and filed masses of problems that helped us to make the Android Oreo platform nice for customers and builders.

After greater than a 12 months of building and months of trying out through builders and early adopters (thanks!), we are now able to formally release Android 8.0 Oreo to the sector. Android 8.0 brings a ton of significant options comparable to picture-in-picture, autofill, built-in Instant Apps, Google Play Protect, quicker boot time, and a lot more.

We’re pushing the assets to Android Open Source Project (AOSP) for everybody to get entry to these days. Pixel and Nexus 5X/6P builds have entered provider trying out and we think to begin rolling out in levels over the following a number of weeks, along Pixel C and Nexus Player. Android Beta customers will obtain the replace to the general model these days and pictures are to be had to obtain and flash manually. We’ve been running carefully with our companions over the past many months, and through the top of this 12 months, makers like Essential, Huawei, HTC, Kyocera, Motorola, HMD Global Home of Nokia Phones, Samsung, Sharp and Sony are scheduled to be launching or upgrading new units to Android 8.0 Oreo.

What’s in Android Oreo?

In Android 8.0 Oreo we taken with developing fluid reports that make Android much more tough and simple to make use of, comparable to:

  • Picture-in-picture we could customers organize two duties concurrently on any dimension display screen, and it is simple for apps to strengthen it. (Shown at proper)
  • Notification dots lengthen the succeed in of notifications and be offering a brand new method to floor process for your apps. Dots paintings with 0 effort for many apps — we even extract the colour of the dot out of your icon.
  • Autofill framework simplifies how customers arrange a brand new software and synchronize their passwords. Apps the use of shape knowledge can optimize their apps for Autofill, and password supervisor apps can use the brand new APIs to make their services and products to be had to customers of their favourite apps. Autofill will roll out totally over the following couple of weeks as a part of an replace to Google Play Services.

We additionally invested in Android Vitals, a undertaking taken with optimizing battery existence, startup time, graphics rendering, and balance, whilst giving builders higher visibility over the well being in their apps:

  • System optimizations: We labored around the machine to assist apps run quicker and smoother — for instance, within the runtime we added a brand new concurrent compacting rubbish assortment, code locality, and extra.
  • Background limits: We added new limits on background location and wireless scans and adjustments in the best way apps run within the background. These obstacles save you unintended overuse of battery and reminiscence and practice to all apps — remember to perceive and account for those for your apps.
  • Complementary Android Vitals dashboards and IDE profilers: In the Play Console you’ll now see mixture knowledge about your app that can assist you pinpoint not unusual problems – over the top crash price, ANR price, frozen frames, sluggish rendering, over the top wakeups, and extra. You’ll additionally to find new efficiency profilers in Android Studio three.zero, and new instrumentation within the platform.

In Android 8.0 your app can without delay pin a selected app shortcut within the launcher to pressure engagement (left). Notification dots stay customers lively for your app and allow them to leap without delay to the app’s core purposes (proper).

For builders, Android Oreo comprises many new functions that can assist you construct higher, extra environment friendly apps. Here are only a few:

  • Autosizing textview: Use autosizing TextView to mechanically fill a TextView with textual content, without reference to the quantity. You can create an array of preset textual content sizes, or set min and max sizes with a step granularity, and the textual content will develop and shrink to fill the to be had TextView house.
  • Fonts in XML: Fonts at the moment are an absolutely supported useful resource kind. You can now use fonts in XML layouts and outline font households in XML.
  • Downloadable fonts and emoji: With downloadable fonts you’ll load fonts from a shared supplier as a substitute of together with them for your APK. The supplier and strengthen library organize the obtain of fonts and stocks them throughout apps. The similar implementation additionally helps downloadable emoji, so you’ll get up to date emoji with out being restricted to the emoji constructed into the software.
  • Adaptive icons: You can now create adaptive icons that the machine shows in numerous shapes, in line with a masks decided on through a tool producer. The machine additionally animates interactions with the icons, and makes use of them within the launcher, shortcuts, settings, sharing dialogs, and within the review display screen.

Adaptive icons show in a lot of shapes throughout other software fashions.

  • Shortcut pinning: App shortcuts and homescreen widgets are nice for attractive customers and now you’ll let customers upload and pin shortcuts and widgets to the launcher from inside your app. There’s additionally a brand new possibility so as to add a specialised process to assist customers create shortcuts. The process is whole with customized choices and affirmation.
  • Wide-gamut colour for apps: Imaging apps can now take complete benefit of new units that experience a wide-gamut colour succesful show. To show large gamut photographs, apps permit a flag of their manifest information (in line with process) and cargo bitmaps with an embedded large colour profile (AdobeRGB, Pro Photo RGB, DCI-P3, and so on.).
  • WebView improvements: In Android Oreo, now we have enabled WebView multiprocess mode through default and added an API to let your app take care of mistakes and crashes. You too can choose for your app’s WebView items to ensure URLs thru Google Safe Browsing.
  • Java 8 Language APIs and runtime optimizations: Android now helps a number of new Java Language APIs, together with the brand new java.time API. In addition, the Android Runtime is quicker than ever prior to, with enhancements of as much as 2x on some utility benchmarks.

Learn extra about those and different new options through visiting the Android 8.0 Oreo website on developer.android.com. Also take a look at the What’s New in Android Oreo? video for an outline of recent options for builders.

Make certain your apps are able

If have not already, take a couple of moments these days to check your apps and ensure they provide the revel in you need for customers upgrading to Android Oreo.

Just set up your present app from Google Play onto a tool or emulator
working Android Oreo and take a look at the person flows. The app must run and glance nice,
and take care of the Android Oreo behavior
changes
correctly. In explicit, take note of background
location limits
, notification
channels
, and adjustments in networking,
safety,
and identifiers.

Once you have got resolved any problems, put up your app updates to Google Play for your alpha, beta, or manufacturing channels in order that they are to be had as customers begin to obtain Android 8.0 Oreo.

Speed your building with Android Studio

When you are prepared to construct with new APIs in Android Oreo, we suggest updating to the newest model of Android Studio three.zero, to be had for obtain from the beta channel. Aside from advanced app efficiency profiling equipment, strengthen for the Kotlin programming language, and Gradle construct optimizations, Android Studio three.zero makes it more uncomplicated to increase with Instant Apps, XML Fonts, downloadable fonts, and adaptive icons.

Android Studio three.zero comprises equipment for growing with Android Oreo options, comparable to previewing XML font assets for your app.

We additionally suggest updating to the Android Support Library 26.zero.2, to be had now from Google’s Maven repository, and to the newest SDK, equipment, and emulator machine photographs, to be had within the SDK Manager.

If you are simply getting began development for Android Oreo, learn the migration information first. It provides you with an outline of the method and the configuration adjustments you can wish to make.

To bring together towards the legitimate Android 8.0 APIs, replace your undertaking’s compileSdkVersion to API 26. We additionally suggest updating your app’s targetSdkVersion to API 26 to opt-in and take a look at your app with Android Oreo explicit habits adjustments. See the migration information for main points on the way to arrange your setting to construct with Android Oreo.

Publish your updates to Google Play

Google Play is open for apps compiled towards or concentrated on API 26. When you are prepared, you’ll put up your APK updates for your alpha, beta, or manufacturing channels.

Make certain that your up to date app runs neatly on Android Oreo in addition to older variations. We suggest the use of Google Play’s beta trying out function to get early comments from a small staff of customers, then do a staged rollout. We’re taking a look ahead to seeing your app updates!

What’s subsequent for Android Oreo?

We’ll quickly be final the Developer Preview factor tracker, however please stay the comments coming! You can report a brand new factor towards Android 8.0 within the AOSP factor tracker.

Thanks once more to the numerous builders and early adopters who participated within the Android O Developer Preview and public beta. You gave us nice comments, and filed masses of problems that helped us to make the Android Oreo platform nice for customers and builders.



Source link

Reply