On Nov 23, 2015, Google released Android Studio 2.0 for developers of Android applications. This is the the second key version of its integrated development environment (IDE). According to Google officials. the updated Android Studio IDE includes some new and great features such as Improved Android Emulator, Instant Run, etc, for speeding application development and deployment. These new capabilities will help developers improve their workflow as well as speed up application development and deployment times.
New Features in Android Studio 2.0
Faster Android Emulator
The new emulator is 50 times faster than before. Before it is almost impossible for most of the developers to test their apps on the most popular devices in the development phase, but now developers have lots of options to test their apps with services such as Xamarin Test Cloud, Google’s own Test Lab, the AWS Device Farm and so on. However, most of the testing takes place with the help of emulators during the development process. Google’s own emulator was not always easiest and fastest to use.
With this improved Android Emulator in Android Studio 2.0 Preview, Google is introducing new emulators that given latest hardware, must run faster than any physical device. Likewise, the Google's team rebuilt the interface, that means it’s now easy to trigger emblematic actions such as firing up the camera. Android App developers will be able to emulate various network conditions and emulate the GPS, and the emulator includes access to all the standard Google Play services too. Now, you can simply resize the emulator window to test different screen sizes.
New Instant Run
Instant Run is the headline feature for app developers. Google told that the idea behind the new Android Studio was speed, and it’s now 5 times faster when writing code for Android Marshmallow. This feature has been mentioned previously during Google I/O 2015, however, Instant Run has been under sandwich so far. When enabled, Android Studio will bundle the changes for each consequent build of an app plus push them to an emulator or connected device to be run quickly. Some code changes can be run in place, but plenty of changes to resources or code will need the Activity to restart that means a few of your app state can remain integral so it will feel like your changes happen smoothly.
Furthermore, this feature is enabled by default on recently created projects and Instant Run can be turned on for active apps in the project settings at Build, Execution, Deployment > Instant Run. Also, build scripts will have to be updated in order to use v2.0.0-alpha of the Gradle plugin. Since the application process stays in memory and this may lead to a few complications, and can always be stopped simply by clicking the “Stop” button in Android Studio.
A GPU Profiler
This allows effortless profiling of OpenGL ES Android code. Google Officials Said,”This tool is in early preview, but is really very powerful, and not only displaying details regarding the GL State and Commands but also lets you to record full sessions plus walk through the Textures and GL Framebuffer as your app is running OpenGL ES Code”. This feature is not installed automatically currently, so it must be downloaded individually from the Tools section of the SDK Manager in Android Studio. Google says that this is just the beginning, so if you develop for Android, be on the watch for more changes.
At the Summit, another experimental feature shown is the ability to step from Java code into C++ code during a debugging session. As Android has both a Java SDK, and a native SDK for C and C++ developers, so this lineament is really useful for those projects that mix the two.
What More To Come On The Android Studio Table
Faster Android Emulator, Instant Run and the GPU Profiler are big adds-ons and they will have pretty epoch-making effects on developer workflow. However, there are still plenty of other features coming to Android Studio v2.0, so this is just the beginning, so keep an eye out for all of the outstanding new toys we'll have to work with.
Updating to the latest build is as easy as setting your update channel to follow Canary builds as well as checking for the latest version. Also, preview builds of Android Studio may not be completely dependable, so it's always suggested that app developers keep a separate copy of the stable or beta releases if they depend on Android Studio for work. The developer will be able to build and test deep links inside apps through the latest version of Android Studio. Google announced that it has indexed 100 billion deep links.
Android Studio is a based on IntelliJ, which is an open-source Java integrated developer environment. Google has made fast improvements to Android Studio since its stable release, and listening to developer feedback as well as responding with speedy builds to fix the most imperative issues. You can download Android Studio 2.0 from Google’s canary release channel. Google advises keeping a stable version of Android studio additionally the Android Studio 2.0 preview.