What's New in Android Studio 2.0?

DZone 's Guide to

What's New in Android Studio 2.0?

With a focus on accelerating build speed and making development easier, we'll take a look at the three major advancements version 2.0 has to offer for Android app developers.

· Mobile Zone ·
Free Resource

Google recently released a beta for Android Studio 2.0, their IDE for mobile app development. Here is their official announcement.

With a focus on accelerating build speed and making development easier all around, the upgrade is likely to please many Android app devlopers. Let's take a look at the three major advancements version 2.o has to offer.

1. Faster, More Stable Emulators

With a build speed increase said to be two to three times faster than before, the new Android Studio emulator is definitely an improvement over 1.0. Also noteworthy, there are multiple upgrades including:

  • a redesigned UI which allows screen rotation, screenshots, window zooming, and drag-and-drop deployment of an .apk file to the emulator
  • a resizable view of the emulator
  • emulation of GPS location operations, camera usage, phone calls, texts, and battery state (allowing developers to see how apps behave under different power circumstances)

2. Instant Run

Another speed gain for Studio 2.0, the Instant Run feature allows developers to make code changes on the fly and see them running on the device or emulator much more quickly than was previously possible. Although not all code changes are currently supported, some that are include: changing instance method implementation, changing static method implementation, and adding or removing a class. Instant Run can also work with adding, removing, or changing a string resource but requires an Activity restart in order to take effect.

According to Google's documentation on Instant Run, over the next few months they plan to expand the feature's ability to enable more change types, further streamlining the code/build/run cycle.

3. GPU Profiler

A beta within the beta, Android Studio's GPU Profiler and debugger is "an experimental feature intended to help inspect GPU state and understand what caused a specific rendering outcome." This feature is aimed at developers working with graphic-heavy code, providing them with a toolset to track graphic metrics over an entire session. Check out this walkthrough provided on the Android Tools Project Site.

So, with major advancements now available to Android Studio, it's up to the community to get out there and start developing new apps! As always, keep in mind that betas are imperfect, so be cautious and provide feedback when it's due.

You can download Android Studio 2.o here. 

android ,android studio 2.0 ,mobile ,mobile app ,mobile app design ,mobile app development

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}