page.title=Program Overview page.metaDescription=Welcome to the Android M Developer Preview, a program that gives you everything you need to test and optimize your apps for the next version of Android. page.image=images/cards/card-preview_16-9_2x.png page.tags="preview", "developer", "android" @jd:body

Welcome to the Android M Developer Preview, a program that gives you everything you need to test and optimize your apps for the next version of Android. It's free, and you can get started right away just by downloading the M Developer Preview tools.

Hardware and emulator system images

Run and test your apps on Nexus 5, 6, 9, and Player (for TV), as well as emulator.

Latest platform code

We’ll provide multiple updates during the Preview, so you’ll be testing against the latest platform changes.

Updates delivered by OTA

You can get updates over-the-air, once you’ve flashed a device to the initial preview.

New behaviors and capabilities

Start work early to support new platform behaviors such as the new runtime permissions model and power-saving features.

Priority window for developer-reported issues

During the first several weeks we’ll give priority to developer-reported issues, so test and give feedback as soon as possible.

Feedback and support

Report issues and give us feedback using our issue tracker. Connect with other developers in the M Developer Community.

Timeline and updates

Preview program timeline

The M Developer Preview runs from May 28 until the final Android M SDK, which we’ll release shortly before the public release during Q3 2015.

At key development milestones, we’ll deliver updates for your test devices. The tentative milestones are

These updates culminate in the final SDK (later in Q3), which delivers the official APIs for the new version of Android, as well as the final system behaviors and features.

As you test and develop on Android M, we strongly recommend keeping your development environment up-to-date as Preview updates are released. To make the process easier, we'll deliver updates over-the-air (OTA) to devices already flashed to a Preview build, as well as providing system images that you can download and flash manually.

Note: The final SDK and system images can not be delivered by OTA, but will instead need to be flashed manually to your test devices.

We’ll notify you when Preview updates are available via the Android Developers Blog, as well as this site and the Android M Developer Community.

What’s in the Preview?

The M Developer Preview includes everything you need to test your existing apps on a variety of screen sizes, network technologies, CPU/GPU chipsets, and hardware architectures.

SDK tools

You can download these components through the SDK Manager in Android Studio:

Hardware system images

You can download these hardware system images for Nexus devices from the Downloads page:

Documentation and sample code

These documentation resources help you learn about the Preview:

Support resources

Use these support resources as you test and develop on the M Developer Preview:

Targeting, preview APIs, and publishing

The Android M Developer Preview is a development-only release and does not have a standard API level. If you want to opt out of compatibility behaviors to test your app (which is strongly recommended), you can target the M Developer Preview by setting your app's targetSdkVersion to “MNC”.

The Android M Developer Preview delivers preview APIs — the APIs will not be official until the final SDK is released, currently planned for the third quarter of 2015. This means that you can expect minor API changes over time, especially during initial weeks of the program. We’ll provide a summary of changes to you with each update of the Android M Developer Preview.

Note that although preview APIs may change, underlying system behaviors such as runtime permissions and power-saving features are stable and ready for testing right away.

In terms of publishing, Google Play prevents publishing of apps targeting the M Developer Preview. When the Android M final SDK is available, you’ll be able to target the official Android M API level and publish your app to Google Play. Meanwhile, if you want to distribute an app targeting Android M to testers, you can do so via email or by direct download from your site.

How to get started

To get started testing your app:

  1. Review the API Overview and Behavior Changes to get an idea of what's new and how it affects your apps. In particular, learn about the new runtime permissions model, power-saving features, and auto backup.
  2. Set up your environment by following the instructions for Setting up the Preview SDK and configuring test devices.
  3. Follow the flashing instructions to flash the latest M developer preview system image for Nexus 5, 6, 9, and Player. Once you've flashed your development device, Preview updates will be delivered through over-the-air (OTA) updates.
  4. Download the M Preview API Reference and M Preview samples to gain more insight into new API features and how to use them in your app.
  5. Join the Android M Developer Community to get the latest news and connect with other developers working with the new platform.

Thank you for your participation in the Android M Developer Preview program!