Source: Final preview update, official Android P coming soon! from Android Developer
Posted By Dave Burke, VP of Engineering
Android P is almost here! As we put the finishing touches on the new platform, today we’re bringing you Android P Beta 4.
Beta 4 is the last preview milestone before we launch the official Android P platform later this summer. Take this opportunity to test your apps and publish updates, to make sure you offer a great experience for users transitioning to Android P!
Today’s Beta 4 update includes a release candidate build with final system behaviors and the official Android P APIs (API level 28), available since Beta 2. It includes everything you need to wrap up your testing in time for the upcoming official Android P release.
With the consumer launch coming soon, it’s important to test your app for compatibility with Android P. Just install your current app from Google Play on an Android P Beta device or emulator. As you work through the flows, make sure your app runs and looks great, and that it handles the Android P behavior changes properly.
Also watch for uses of non-SDK interfaces in your app. Android P restricts access to selected non-SDK interfaces, so you should reduce your reliance on them. See our recent post for details..
After you’ve made any necessary updates, we recommend publishing to Google Play right away without changing the app’s platform targeting. This lets you ensure a great experience for Android P users while you work on enhancing your app with Android P APIs and targeting.
When you’re ready, dive into Android P and learn about the new features and APIs that you can use in your apps, like multi-camera support, display cutout, enhanced notifications, ImageDecoder, TextClassifier, and others.
To build with the new APIs, just download the official API 28 SDK and tools into Android Studio 3.1, or use the latest version of Android Studio 3.2. Then update your project’s compileSdkVersion and targetSdkVersion to API 28. When you change your targeting, make sure your app supports all of the applicable behavior changes.
As soon as you’re ready, publish your APK updates that are compiled against, or optionally targeting, API 28. A common strategy is to use Google Play’s beta testing feature to get early feedback from a small group of users and then do a staged rollout to production.
How do I get Beta 4?
It’s easy – you can get Android P Beta 4 on Pixel devices by enrolling here. If you’re already enrolled in our Android Beta program, you’ll automatically get the Beta 4 update soon. As always, downloadable system images for Pixel devices are also available. Partners who are participating in the Android P Beta program will also be updating their devices to Beta 4 over the coming weeks.
Stay tuned for the official Android P launch coming soon! You can continue to share your feedback or requests in the meantime, and feel free to use our hotlists for platform issues, app compatibility issues, and third-party SDK issues.
Thanks for your feedback so far, and thank you to everyone who participated in our recent Reddit AMA on r/androiddev!