How to Improve Mobile and Android Experiences For Chrome OS?
Android mobile powers a developing assortment of large-screen gadgets, from tablets and foldables to Chrome OS PCs. Since Chromebooks explicitly run a full version of the Android framework inside a container, most Android applications previously keep running on Chrome OS. That means devs can take their single Android APK and scale it to take a shot at any Chrome OS device, taking into account engaging and immersive in faces on devices with greater screens.
Devs can take their single Android APK and scale it to take a shot at any Chrome OS device, taking into account considerably increasingly vivid and connecting with experiences on devices with bigger screens.
Absolute time spent in Android applications on Chrome OS has likewise become 4X in the last year,¹ and in Q4 2018, 21 percent of notebooks sold in the United States were Chromebooks — a 23 percent YoY growth.²
Delivering an ideal experience on Chrome OS just takes a couple of changes, yet they have an effective impact. After Gameloft and TopHatch improved their applications for bigger screens, Gameloft’s Asphalt 8: Airborne drove 6X all the more every day application clients and 9X more revenue on Chrome OS gadgets, while TopHatch has considered twice to be many paid conversation on Chromebooks and 20X additional time spent on Pixelbooks for its Concepts application.
At I/O this year, we separated some useful steps to guarantee your application will look and work extraordinary over an assortment of form factors and screen sizes. Look at the features below alongside a couple exciting new updates for Mobile Application Development experts or Android developers in Chrome OS.
Optimize Your Application Experience for Chrome OS
The method in which somebody utilizes your application depends totally on their device.
There are some things you ought to consider to ensure your application delivers an ideal user experience:
Keyboard Input
In case if your application doesn’t already support keyboards, below is the code to ensure it does:
Override fun onKeyUp (code: Int, ev: KwyEvent?): Boolean {
return when (code) {
KeyEvent .KEYCODE_J -> {
/ / Do something here
true
}
else -> super .onKeyUp (code, ev)
}
The highlighted segment is an approach to leave unused keys behind to super. This enables Chrome OS to deal with those commands instead of invalidate the usefulness of each unassigned key.
Refresh Key
The Chrome OS kwyboard has an exceptional refresh key with its very own keycode, so ensure your application can deal with KEYCODE_REFRESH occasions. In case you’re as of now utilizing SwipeRefreshLayout, Chrome OS is wired to guarantee that format will work automatically with the refresh box.
Touchpad
At the point when somebody’s using your application on desktop with a touchpad, they will hope to look with a two-finger touchpad swipe. Be that as it may, on mobile, clients ordinarily look by holding and dragging the screen. Chrome OS consequently deciphers these kinds of various motion events in this way, for instance, a drawing application won’t mark on the screen when somebody attempts to look on mobile.
For applications that require further developed touch motion events, you can utilize overlook MotionEvents when (event.getButtonState() == 0) to check the option state and ignore undesired events.
NDK
Games and applications on Chrome OS get ARM to x86 translations. In any case, if execution is your need, it’s basic to help x86. The greater part of the top Chrome OS devices have 64-bit x86 chipsets and more are not too far off. To give the top performance and support over all gadgets, make certain to give ARM, ARM64, x86, and x86_64 create targets in the event that you have native code.
Android Studio makes supporting this basic: Using Android application groups, it bundles all your develop targets prepared for the Play Store, which then just sends the build targets your application clients need to keep install sizes at a minimum.
Layout or Format
You have presumably seen a mobile application that hasn’t been intended for a bigger screen — lots of squandered space and burdensome navigation. To guarantee your application looks extraordinary on a few layouts, you can utilize one resource file with several layout buckets for each and every screen size.
Navigation Designs
Your application ought to likewise be anything but difficult to use on different screen sizes. Work for portrait, landscape wide picture, and wide layouts formats by switching between a base navigation, side route, and expanded side navigation design, contingent upon the accessible screen width.
Answer, an email application, updated its layout for usefulness and convenience on various screens, and keeping in mind that Adobe Acrobat optimized its application usefulness for Chrome OS, the brand likewise redesigned its whole layout for multiple devices.
{ Read Also : Top 5 Mobile-Friendly Ecommerce Sites with Amazing Navigation System }
Multi-screen
At the point when somebody utilizes various monitors, there will regularly be a thickness difference between the two screens. Change your application density on the fly by tuning in to density onConfigurationChanged changes inside your Chrome movement.
Latest Updates for Creating on Chromebooks
At I/O, we additionally declared more ways we’ve made Chrome OS a quicker, more straightforward, and progressively secure environment for Web and Android app developers or designers, including:
A Single Tick Installation for Android Studio
Simply download, tap and then install — no more using a terminal.
Enhanced ADB Over USB Debugging
No more designer or developer mode — just plug- in your mobile phone and troubleshoot by means of USB on supported gadgets.
Lint Checks
Highlights locked or unpleasant directions, non-resizable exercises, mistaken hardware needs, and different features that aren’t perfect for Chrome OS.
Sound Playback in Linux
The Chrome OS holder enables all sound tools from Linux, for example, Audacity.
Virtual Desktops
A banner flag in M76, our present stable channel, empowers turning on a virtual desktop when your screen gets obstructed with various windows and stage use cases.
ARCore joining
ARCore is accessible to apps with a world-facing camera feature.
Quick Application Support
Clients on Android P gadgets would now be able to try an application or game without downloading it first.
External Storage for Android Applications
External circles can be read and checked by Android applications.
Play Files and Documents
The file manager from Chrome OS can demonstrate the/sdcard document from Android under play documents, empowering access to read and compose Android files from the Chrome holder.
Android Cloud storage with DocumentsProvider
All the help and support for the Android DocumentsProvider interface in Chrome OS.
Deliver an Ideal Experience on Each Screen
The application experience has extended a long ways past mobile. In a time of versatile gadgets and variable form factors, clients will expect a well-planned, easy to use experience each time they open your application. Make the most of the chance to help different info techniques, advance your design and route for an assortment of screen sizes, use additional screen land, and support x86 with local or native code.
If you would like to know more about building mobile apps, contact us at Best Mobile App Development Company.