Android Pie: What’s in there for Developers

by Aditya Modi August 13, 2018
Android Pie 9

Android 9 or P will be called simply Android Pie. Google launched the 9th iteration of Android after more than an year of testing by early adopters. Android Pie is high on machine learning that is your phone will become smarter with time.

For developers, Android Pie gives you new ways to drive engagements and enhance your apps. So let’s look at what Android Pie brings for Android app developers. As I said, the highlight of this year’s Android release is machine learning. Machine learning makes the smartphone faster, long lasting, and easy to use.

  • Adaptive Battery

Adaptive Battery

Source: Google Blogs

To save battery, Android Pie will restrict background activity of rarely used apps. If you’re a developer, make sure your app is optimized for Doze, App Standby, and Background Limits or adaptive battery will inhibit your app’s activities when the user will upgrade to Android Pie.

  • Slices


With Slices, you can enable UI templates that will display outside your app’s full screen experience. User can interact with these rich, dynamic elements belonging to your app from outside it like Google Search app.

  • Content Awareness

Content Awareness

Developers can take advantage of the TextClassifiermodels which revolves around TextClassifier API. The model via Linkify API lets developers enable augmented options for quick follow-on user actions.

The machine learning model can identify object like Dates and Flight Numbers.

  • ‘Notch’ is Supported

Notch is supported

Android Pie officially supports notched displays now. The display cutout APIs contemplates the place, size and shape of the ‘notch’ and request full-screen layout around it. A developer Option simulates several cutout shapes to shape apps around them.

  • Smart Replies

The new MessagingStyle API displays conversations, adds photographs and stickers, and suggests smart replies. Developers can use ML Kit to enable smart replies on their app.

  • Text Magnifier

Android app developers can enable magnifier for all the view options. The Magnifier widget can zoom any view or surface, not mere text.

  • Biometric Methods

Biometric Methods

Developers no more have to build their own dialog for an app. Android Pie introduces BiometricPrompt API that has a stock system dialog. The API at this moment supports Fingerprint, Face and Iris authentication.

  • Android Protected Confirmation

Android 9 introduces Android Protected Confirmation to ensure that a prompt is indeed confirmed by the user and happened in a Trusted Execution Environment (TEE). The app can only verify prompt when TEE does.

This will keep the apps safe from false prompts that mimic system prompts.

  • StrongBox

StrongBox is the new KeyStore type that provides API support for devices that have secure, dedicated hardware to store keys. Keys should be protected by a StrongBox security chip in your KeyGenParameterSpec.

  • Default SSL

To raise user’s security, all the traffic to and fro from your app and application server will happen over a secure connection. Android Pie will block by default all exchanges between cleartext traffic.

  • More permissions

Android Pie will restrict idle apps to gain access to mic, camera and other sensors. Moreover, developers will now need READ_PHONE_STATE permission too to access build.serial. Android app developers can use Build.getSerial() method.

  • Multi-camera API

Multi-camera API

Android Pie natively supports more one streams of open camera in an app for the devices that support multi-camera API and have two or more camera setup. You enable features like loss less zoom, bokeh, and stereo vision.

  • HEIF and HDR VP9 image encoding

Android Pie support HDR VP9 Profile 2 on HDR capable devices. In addition, it adds HEIF image encoding. HEIF format compresses image without loss in quality. Developers can use ImageDecode for jpeg-to-heic conversion.

  • Dynamics Processing API

With the API, developers can filter out certain sound frequencies when a user plays audio from their app. If a person is speaking in loud environment, the API can filter out the noise.

  • ImageDecoder API

The API makes it easier to decode images to bitmaps or drawables. Apps can create bitmaps from URI, byte buffer and file.

  • Indoor positioning

Indoor positioning

Android developers with Android Pie can build indoor positioning support in their apps with native support for Wi-Fi Round-Trip-Time (RTT). If the hardware is present on the device, they can use RTT APIs to find relative distance from an absolute Wi-Fi Access Point.

  • Open Mobile API

Google brings GlobalPlatform Open Mobile API to Android Pie. Android app developers can now enable apps to use the OMAPI API to access secure elements (SE) to enable smart-card payments and other secure services.

  • Optimizations around Kotlin

Android Pie brings several compiler optimizations to Kotlin, especially those that target loops, to extract better performance.

A Modern Android

As part of Android 9 we are modernizing the foundations of Android and the apps that run on it, as part of our deep, sustained investments in security, performance, and stability.

Get in touch



Quick Inquiry

Quick Inquiry