So what is this Android O? Android O
is the latest Android mobile OS scheduled to be released in Q3 of 2017. It is the new and powerful version of Android which is highly optimized performance. Android O is the best way to make futuristic Android apps. Though there is still some time before it is finally released there are some initial developer previews that might help in Android app development.
THE INITIAL FOUR DEVELOPER PREVIEWS OF ANDROID O
It’s first Alpha quality Android O developer preview was released on March 21st 2017. The second developer preview followed shortly after and was released on May 17th, considered as beta quality. The finalization of the API was done in the Android O 3rd developer preview and it was released on June 8th. The Android O 4th developer preview was released on July 24th and included the final system behaviors along with some bug fixes and optimizations. The Final release is scheduled to be within the 3rd Quarter of 2017.
HOW TO PREPARE YOUR ANDROID APP DEVELOPMENT COMPANY FOR ANDROID O?
If you are an Android app development company you must be wondering what strategies to implement to shift your Android app development towards Android O. Well, Android O introduced some brand new features and several APIs. These inclusions can very well change the behavior of your app even without you changing anything. First, let’s talk about devices and their compatibility with Android O.
Devices supported by Android O
Currently Android O supports Pixel XL, Pixel C, Pixel, Nexus 6P, Nexus 5X and
Nexus Player. If you have bought a mobile phone in 2017, the chances are that your device might be compatible with Android O.
How to prepare any compatible device for Android O
If you have got a device compatible for Android O and don’t know how to start Android app development in it, here are the steps:
- Download the Android O system image file for your device.
- Flash your device (use proper instructions to perform this step).
- Then review system behavior changes to identify affected areas of your app.
- After reviewing install your app on any device of Android emulator to run tests.
- Ensure that your app is working correctly with the new features.
- Make changes to code if you find any issues and then recompile with the same API level.
- Publish the updated APK.
Here are the 2 most important strategies your Android app development company should incorporate if it wants to seamlessly transition to Android O.
1. Start migrating your apps to Android O
To migrate your apps to Android O you will first need to check the compatibility with it. Ensure that your app is fully functional with the latest version of the Android platform. You don’t have to switch your app’s API to a newer version and your app’s target sdk version but a few changes here and there are required.
When you are prepared to test the new features of the platform update your target sdk version to 26. Check and ensure that the app still works and then, start using new APIs.
2. Understand the Android O behavior changesAndroid O consists of various behavior and functioning changes
to the system as well as the API. Most of these changes affect the functioning of apps, regardless of the targeted Android version. Some changes only affect those apps, who have targeted the Android O version.
Here is the list of changes (with brief description) targeting all API levels:
- Background execution limits: to improve battery life and device performance. Also to limit certain behavior of apps not running in the foregrougnd.
- Android background location limits: to maintain the battery life, user engagement and system health, apps running in background now receive updates based on your location less frequently.
- App shortcuts: to create an app shortcut now, you have to use requestPinShortcut method from theShortcutManager class.
- Locales and Internationalization: locale methods now use Locale.getDefault(Category.DISPLAY) instead of Locale.getDefault(): ICU has been upgraded to version 58.
- Alert Windows: behavior changes related to SYSTEM_ALERT_WINDOW.
- Input and Navigation: Android O re-addresses keyboard as a navigation device for a more predictable arrow and tab based navigation model.
- Web Form Autofill: Android Autofill Framework now offers in-built support for the autofill function.
- Accessibility: now all double-tap gestures are converted into ACTION_CLICK actions.
- Networking and HTTP(S) connectivity: URLs cannot contain empty labels now and the handling of tunneling HTTP(S) connection has also changed.
- Bluetooth: changes are made to the data length that the ScanRecord.getBytes() can retrieve.
- Seamless connectivity: a variety of improvements to the Wi-Fi Settings have been made to make it easier and lot more stable.
- Security: Android O doesn’t support SSLv3 and applies a Secure Computing (SECCOMP) filter to all the apps. It also introduces changes to the installation of unknown apps from unknown resources.
- Privacy: Android O handles identifiers differently and the value of ANDROID_ID doesn’t change.
- Logging of uncaught exceptions: apps that follow custom Thread.UncaughtExceptionHandler implementations are unaffected by the changes in Android O.
- Contacts provider usage stats change: queries for data usage return approximate values rather than exact values. Android O calculates and maintains the specific values internally thus unaffecting the auto-complete API.
- Collection handling: behavior changes for NullPointerException introduced as previously it was not thrown when the collection was empty.
- Android enterprise: Android O introduces behavior changes for some features and APIs concerning enterprise apps which also includes device policy controllers (DPCs).
Here is the list of changes (with brief description) targeting Android O:
- Alert Windows: apps must use a new type window termed as TYPE_APPLICATION_OVERLAY.
- Content Change Notification: a valid ContentProvider is now required for authority in all Uris.
- View focus: clickable View objects are also focusable now, by default.
- Security: the Allow unknown sources setting has been replaced by the Install unknown apps permission.
- Account access and discoverability: apps can not access their user accounts unless the authenticator is owning the accounts or the user grants them access.
- Privacy: the LauncherApps API now doesn’t allow work profile apps to fetch information about the primary user.
- Permissions: apps are now granted only those permissions which they have requested instead of all subsequent permissions also being granted along with requested one.
- Media: when the user receives a phone call , ongoing active media mutes for rest of the call duration.
- Native Libraries: native libraries are not loaded up if the app contains any load segment which is writable and executable both.
- Collection Handling: this behavior changes allows for optimized implementations with minor constraints.
- Class-loading behavior: Android O ensures that the class loaders don’t break any assumptions of runtime while loading new classes.
If your Android app development company keeps these few but important things sorted while pacing towards Android O development, tremendous results will soon follow.
Find more top mobile app development companies worldwide on AppFutura.