Developer Sneak Preview for Android N: The All-New Features

March 21, 2016 Published by:

Android N Features

Android unveiled the developer preview for the N release of Android in the second week of March. Compared to the earlier versions, this one got an early developer preview release, thus giving developers enough time to review and provide their feedbacks. This is more like a “work in progress” build, which will help Android build a more efficient and bug-free version of their OS. The developer preview is compatible with some Nexus devices- Nexus 6P, Nexus 5X, Nexus 6, Pixel C, Nexus 9 and Nexus Player. Not all features that will be available with Android N are available with the developer preview version; only a few features have been unveiled for the preview version. It is said the final version of the N release would be sent across to the developers by end of Summer.

Here’s all that you need to know about the developer preview for N release of Android.

Multi-Window

Since Android M, Google has been working on offering an efficient multi-tasking system to Android OS. It was available with the M developer preview, but was not a part of the final working release of the M release.

Google seems to be ready for this leap with Android N, which will come with the multi-window feature which will work on both tablets and phones. The developers can opt for split screen mode to make sure their apps run smoothly.

For this purpose, a new manifest attribute android:resizableActivity is being introduced. If you have set this attribute to true, then you will find the activity launched in the split-screen mode on your phone as well as the tablets. The minimum allowable dimension for the activity window can be specified. The activity lifecycle is not changed with the multi-window mode. When you change to the multi-window mode, you will be notified by the system on the configuration changes as specified in the Handling Runtime Changes. You can view the activities in the picture-in-picture mode using the android:supportsPictureinPicture attribute. You can always stop the activity and recreate it using new dimensions with this attribute.

Notification Updates

The N release comes with new APIs that allow apps to post notifications in order to increase its visibility and interactivity. This can be enabled using the RemoteInput notification API, which was originally meant for Android wear. It will help streamline inline replies on handsets with the N release for the phones and tablets. With this feature, users can reply to the incoming messages on time from the notification itself, without really visiting the app. You can even bundle the different notifications under a single notification update. For this, you will need to use the NotificationCompat.Builder.setGroup() method. With this, you can not only expand individual notifications, but also perform various actions such as reply/dismiss from the notification shade itself.

Background Optimization

Efforts are on to minimize the usage of RAM by the apps as well as the system on the different Android devices. This effort is known as Project Svelte in Android. In Android N, this project is focused on optimizing the apps running along the background. When the background processing is handled effectively, it can enhance the user experience for your apps. JobScheduler with Android 5.0 and GCMNetworkManager which is a part of Google Services, extend their services towards optimizing the background apps. In Android N three types of broadcasters will be removed i.e. Connectivity_Action, Action_New_Picture and Action_New_Video. The reason being, these broadcasters can initiate these apps in the background and reduce the battery life. You will need to use JobScheduler and remove these broadcasters for better background processing.

Data Saver

The cost of your data plan eventually exceeds the cost of your smartphone, which is something every one of you has experienced in your lifetime. You want to conserve your cellular data, so that you don’t spend it carelessly. This is the reason why the data saver feature has been introduced with Android N. The Data Saver mode will reduce the data usage by giving you more control on this aspect, and help developers offer efficient service when the Data Saver is on. With the ConnectivityManager, N release will be able to understand the user’s Data Saver preferences, and also monitor the changes in the preferences, so that they can offer services accordingly.

Doze Mode

The doze mode has been enhanced for the N release of Android. This feature, in the past releases, worked when the phone was left unattended for long hours, specifically when you were sleeping. But, this feature will work each time you switch off the screen. This means your battery is saved each time your screen is turned off, thus impacting the energy consumption majorly.

Java 8 Support

The Java 8 features have finally arrived with Android. The Android Jack Compiler will allow you to use the popular features like lambdas etc. thus reducing the boilerplate code, and making your system efficient. The Java 8 features like default, functional interfaces, streams etc. are available with N release.
Getting Started with Android N

The N release for Android comes with an updated SDK which includes system images specifically for testing purposes. This initial preview release is meant for the developers, and is not for commercial purposes.

If you are a developer wanting to test the preview version, you can download images of this new OS from Google directly. The update can be downloaded from this https://developers.google.com/android/images/ link

Currently the preview version is only for Nexus devices. The developer preview version does not have a name as yet. Many people are suggesting the N may stand for Nutella, but we will have to wait for Google I/O 2016 to know the name finalized for Android N.

Semaphore Software a top-notch Android development company, stays abreast with the latest trends, developments and upgrades in Android. We have a dedicated team of experts, who with the years of experience offer best-in-class Android apps suited to your business needs. Get in touch with us at info@silvertouch.com to know our Android services in detail.