This early look at Android P is based on the developer preview released in March, 2018. The final release of Android P is scheduled for Q3 of this year.
- [Instructor] Android P is the next version of Android. As with all versions of Android, when we first see the early developer preview we only know the initial. Eventually P will stand for some sweet dessert if past history is any guide. But for the moment it's just Android P. And the first developer preview that I'm using in this course was released in March of 2018. In fact, I'm recording this course just a few days later. The final release of Android P is scheduled for sometime in quarter 3 of 2018, and between now and then there will be a few different preview and beta releases, so you can try your applications and have them ready for publication when Android P becomes the latest production version.
If you want to try out Android P now here is what you're going to need. First you'll need the appropriate software. Android Studio 3.2 is a new preview release that's specifically designed for use with Android P. It's currently an early preview, or what Google calls a canary release, and this course is being recorded with Canary 5. You should be able to follow along with that version or any later version. Then in order to test your applications you will need a device running Android P.
If you have one of these phones, one of the original Pixels or one of the Pixel 2s, you can install Android P on it. Now beware, this is an early preview, and it's not particularly stable. So don't install it on your daily driver phone. But if you have a device that's dedicated to development and testing, the flash images are available for these devices. Android P will not be released for older devices such as the Pixel C tablet or any of Google's Nexus devices.
Those devices will never get Android P according to the information we currently have. Developing in an early preview release is always for the adventurous. At this point in the software development process you can expect to find a few bugs, and the documentation is very slender. In fact in this early preview release, Google has not released any official sample apps yet. And so, learning how to use these features is, in many cases, a matter of trial and error.
Keep on trying things until you find something that works. But there are some great new features in this release to look forward to. These include indoor positioning with Wi-Fi RTT. With these tools you'll be able to build Android apps that can locate their position in a room, for example in a retail environment, a museum, or anywhere else where you want to point the user to particular components within that space. There's also now support for what are known as cutouts, also known as notches.
A notch is part of an immersive device where the display goes all the way out to the edge of the device. The notch is where you put the forward-facing camera. This was introduced by Apple with the iPhone X, or 10, and there are some Android vendors that are now starting to adopt that style. Programming with the notch takes a little bit of work and minimally you should test your applications with devices that have the notch, but because there's no such thing as a physical device that you can load Android P on that actually has a physical notch, you can now simulate that functionality.
And I'll show you how to do that. There are new styles for notifications that let you build conversation style notifications, there's a new class called the ImageDecoder for bitmaps and drawables, and there's now support for playing animated graphics such as GIF and WebP files. And here are many other new features. You can find all the information at the webpage at developer.android.com/preview. You'll find instructions for flashing a physical device, and again right now you'll need a Pixel device.
You'll find all the lists of all the new features, and you'll find a few useful code samples. But again, at this point those are fairly sparse. This is a great opportunity to have an early look at where Android is going, and for you as a developer, to try out your apps on an Android P device, and see if there are any adjustments you need to make or new APIs you want to use to improve your applications.