What developers need to work with while dealing with the latest version of Android 8?

Working with Android is a daunting task and who better knows it than the developers themselves? With the release of the all new Android 8 there are a variety of new features introduced not only for the users but also for the developers. These are the features you will be needing to keep in mind while developing an Android 8 compatible application.

Dig in to find out what’s new for developers

1. Picture-in-picture mode

This is a new feature altogether where users can start a multi-window and perform tasks while still watching a video. For incorporating the PIP mode, developers need to set

android: resizeableActivity There are other factors on which the developer needs to focus like activity’s (which is in PIP mode) aspect ratio and configuration settings.

Developers need to use the following method to support PIP mode

Activity.enterPictureInPictureMode(PictureInPictureParams args)

2. Auto-fill Framework

The auto-fill framework eliminates the tedious tasks of feeding account information, login information, and credit card forms to save users from performing repetitive tasks. Developers need to work on incorporating Auto-fill Framework in the new Android Oreo and also learn some steps to optimize an application according to Auto-fill Framework.

3. Download-able fonts

Developer can request fonts from a provider application instead of bundling fonts into the APK. The downloadable feature allows multiple apps to share the same font, and increases the app installation success rate.

4. Textview Autosizing

A very interesting feature of the Android 8 is that it lets you set the size of your text making it easier to optimize the text size on different screen. While developing an application the text can easily be optimized for dynamic content.

5. WebView APIs

Now managing the webview objects that display web-content in your app is easy, thanks to the APIs that Android 8 provides. These APIs improve your app’s stability and security.

Some of the APIs includes

a. Version API

b. Google Safe Browsing API

c. Termination Handle API

d. Renderer importance API

6. Custom Data Store

Android 8 provides you a custom data store for your preferences. With the custom data store, your app can store the preferences in a local database or cloud or a specific device.

7. Improved connectivity

With the Wi-Fi aware technology that Android 8 supports, devices with Wi-Fi aware apps and hardware can discover and communicate over Wi-Fi without an Internet Access point. Also the bluetooth support is enriched with features such as Support for the AVRCP 1.4 standard, which enables song-library browsing and Support for the Bluetooth Low-Energy (BLE) 5.0 standard.

8. Smart sharing

Android 8 learns users personalized sharing preferences and helps them accordingly. For example if a user takes a selfie, it automatically suggests a social media app and if a user takes picture of a receipt, it suggests expense-tracking apps.

Smart sharing works for not only images but also audio, video, text, and URL.

Developers can enable smart sharing in apps by adding an ArrayList of up to three string annotations to the intent that shares the content.

Feeling inspired? If you too want to make an app using the latest Android 8, feel free to contact us!