Mobile Zone is brought to you in partnership with:

Michael Crump is a Microsoft MVP, INETA Community Champion, and an author of several .NET Framework eBooks. He speaks at a variety of conferences and has written dozens of articles on .NET development. He currently works at Telerik with a focus on our XAML control suite.
You can visit his blog at: MichaelCrump.Net or follow him on Twitter at: @mbcrump

Michael is a DZone MVB and is not an employee of DZone and has posted 111 posts at DZone. You can read more from them at their website. View Full User Profile

A First Look at the Developer Tools for Android L Preview

06.30.2014
| 2668 views |
  • submit to reddit

Introduction

Here is a look at the Developer Tools released today for Android L.

  1. I began by removing my existing installation of Android Studio Preview. It says in the documentation that you can upgrade from existing versions, but I was unable to.

  2. I then downloaded and installed Android Studio Beta! The current version is 0.8.0. If you are new to Android download the JDK 7 first.

    You will know everything is right by looking at the install version at the bottom. It should say v24-Jun-2014.cvs 

    image

  3. I created a new project once installed.

    image

  4. By default it targets API Level 15 and gives you a nice breakdown of the amount of devices you will reach. We’ll leave it at the default and add a checkmark to TV.

    image

  5. The rest of the wizard is very similar to what we’ve seen before except there less screens and an option to add an activity to the TV (if selected).

  6. After several minutes, Android Studio launched.

    image

  7. If you selected “TV”, then you will have a new tv folder to work with along with one called mobile:

    image

  8. Over in the Preview Windows you now have the options for the Watches and TV.

    image

  9. Here is the preview for Wear Square and the designer actually works now!

    image

  10. If you switch back to your phone and try to run your app on your device, you will get this error message: Failure [INSTALL_FAILED_OLDER_SDK] (I’ll come back to this)

  11. For now, update the SDK, by selecting the SDK manager and Installing all the package updates.

    image

  12. Make sure you close Android Studio (on Windows) or you will get this surprise:

    image

  13. You should end up with the following installed including the 4.4W(ear) if you are interested.

    image

  14. If you try to run the app on your phone, then you will see it is not compatible unless you have installed the L preview on your device.

    image

  15. Time to create an AVD. I created mine with the following settings:

    image

  16. Hit OK, then run your project and select the NexusL AVD created earlier. The emulator is still crazy slow! Try adding a checkmark to “Host GPU” and a lower resolution device to speed things up. You can optionally install the HAMX Intel drivers if your processor supports it.

    image

  17. OK, that app is pretty boring – so go play with the new OS!

    image

  18. I hope you enjoyed my quick write-up.

  19. Important Links:


Published at DZone with permission of Michael Crump, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)