Android P – Explore All New Features
Here, Google again comes up with lots of new tweaks in Android P. Yet the name for Android P is not officially declared. But there are certain features we can find on first developer preview of Android P.
Let’s have a look at all the features which would be available on all Google Pixel devices.
Indoor positioning with Wi-Fi RTT
Android P will support Wi-Fi RTT where RTT stands for Round-trip Time. This will allow the application to get indoor position’s data. The application can find the distance from nearby Wi-Fi Access point. Accurate distance of approximate 1–2 meters can be expected. Support for RTT will require hardware support and location permissions.
Display cutout Support
Now the application can use the full display of the device for application context. DisplayCutout Class is available for a developer with APIs to manage the view of content on display. Following three are the values that can be set for display cutout support.
Changes in the notification:
There are lot of improvements in notification message that will make inline reply easier than ever. In Android P, the user can check conversation for messages and give options to attach photos and stickers in notification itself. ‘Smart Suggest’ feature will be also available in this version.
Now the application can allow multiple camera streams simultaneously on a device with Android P. New multi-camera API will allow the application to request data from multiple camera sensors on the same time. So, it’s time for developers to show their creativity with multiple cameras like dual back camera or back and front camera.
ImageDecoder for bitmaps and drawable
Android P introduce ImageDecoder class for the developer as a replacement for BitmapFactory class. ImageDecoder would decode images to bitmap or drawables.
From ImageDecoder class, setResize() method is used to scale and decode the image to exact size.
getSampledSize() method will be used to get the image dimensions at a specific sample rate, then scale to those dimensions.
For post-processing of the image, ImageDecoder can be passed to any PostProcessor class.
Improving app compatibility through public APIs:
App compatibility is the major issue for users and developers as they have to be sure if apps are ready for a new version of OS or not. Hence android is starting the gradual process to restrict access to the non-SDK interface, asking developers — including app teams inside Google — to use the public equivalents instead.
Targeting modern Android:
Google warned developers to update their application to the latest version of SDK. As Google announced recently that Google Play will require all app updates to target Android Oreo (targetSdkVersion 26 or higher) by November 2018, with support for 64-bit hardware on the horizon for 2019.
Apart from these features, lot of new changes are also added to Android P Developer Preview as below:
- Data cost sensitivity in JobScheduler
- Improvements in Autofill framework
- Open Mobile API for NFC payments and secure transactions
- ART performance
- Optimization for kotlin support
- Power efficiency
- Targeting modern Android
This is first developer preview for Android P. We need to wait for Google I/O 2018 for the official presentation.