Tuesday, October 16, 2018

What’S Novel Inwards Android P Beta

Earlier today nosotros unveiled a beta version of Android P What’s novel inward Android P Beta

Posted By Dave Burke, VP of Engineering

Project Treble, you lot tin at nowadays acquire the beta on Project Treble final twelvemonth equally utilization of Android Oreo. Since hence we've been working amongst partners on the initial bring-up as well as at nowadays we're seeing proof of what Treble tin do.

Today nosotros announced that vi of our meridian partners are joining us to unloose Faster Adoption amongst Project Treble for to a greater extent than details.

Make your apps compatible

With to a greater extent than users starting to acquire Android P Beta on their devices, at nowadays is the fourth dimension to examination your apps for compatibility, resolve whatever issues, as well as issue an update equally presently equally possible. See the noted previously, inward Android P we're starting a gradual procedure to restrain access to selected non-SDK interfaces, quest developers -- including app teams within Google -- to utilization Earth equivalents instead.

If your apps are using person Android interfaces as well as libraries, you lot should deed to using world APIs from the Android SDK or NDK. The starting fourth dimension developer preview displayed a toast alarm for uses of non-SDK interfaces -- starting inward Android P Beta, uses of non-SDK interfaces that are non exempted volition generate errors inward your apps -- hence you'll at nowadays acquire exceptions thrown instead of a warning.

To assistance you lot position reflective usage of non-SDK APIs, we've added 2 novel methods inward StrictMode. You tin utilization detectNonSdkApiUsage() to warn when your app accesses non-SDK APIs via reflection or JNI, as well as you lot tin utilization permitNonSdkApiUsage() to suppress StrictMode warnings for those accesses. This tin assistance you lot empathize your app's utilization of non-SDK APIs -- fifty-fifty if the APIs are exempted at this time, it's best to conception for the time to come as well as eliminate their use.

In cases where in that place is no world API that meets your use-case, delight let us know immediately. We desire to brand certain that the initial rollout alone affects interfaces where developers tin easily migrate to world alternatives. More almost the restrictions is here.

Test amongst display cutout

It's also of import to test your app amongst display cutout. Now you lot tin utilization several of our partner devices running Android Beta to brand certain your app looks its best amongst a display cutout. You tin also utilization the emulated cutout back upward that's available on whatever Android P device through Developer options.

Get started amongst Android P

When you're ready, dive into Android P as well as acquire almost the many new features as well as APIs you lot tin direct maintain wages of inward your apps. To acquire far easier to explore the novel APIs, direct maintain a await at the API diff reports (API 27->DP2, DP1->DP2) along amongst the Android P API reference. Visit the Developer Preview site for details. Also banking enterprise stand upward for out this video highlighting what's new for developers inward Android P Beta.

To acquire started amongst Android P, download the P Developer Preview SDK as well as tools into Android Studio 3.1 or utilization the latest version of Android Studio 3.2. If you lot don't direct maintain a device that runs Android P Beta, you lot tin use the Android emulator to run as well as examination your app.

As always, your feedback is critical, hence delight let us know what you lot think — the sooner nosotros withdraw heed from you, the to a greater extent than of your feedback nosotros tin integrate. When you lot break issues, delight report them here. We direct maintain course of study hotlists for filing platform issues, app compatibility issues, as well as third-party SDK issues.

Related Post

What’S Novel Inwards Android P Beta
4/ 5
Oleh