Showing posts with label supports. Show all posts
Showing posts with label supports. Show all posts

Tuesday, December 27, 2016

Android Studio 2 1 supports Android N Developer Preview

Android Studio 2 1 supports Android N Developer Preview


Posted by Jamal Eason, Product Manager, Android

With the launch Android N Developer Preview, we wanted to give you an easy and comprehensive way to build, test and validate your apps on the latest release with Android Studio. Built on the speed and feature enhancements of Android Studio 2.0, the stable release of Android Studio 2.1 includes updates to the IDE wizards, build system and Android Emulator so that you can try out new features and APIs of the developer preview including the new Jack compiler and Java 8 language support. In addition to support for the N Developer Preview, Android Studio 2.1 also includes performance improvements to Instant Run which leads to faster edit and deploy build speeds. If you are developing and validating your app with the N Developer Preview or want faster Instant Run speeds, you should download or update on the stable release channel to Android Studio 2.1.

Android Studio 2.1 includes the following new features:

  • N Developer Preview Support: Android Studio 2.1 is the best IDE to test and validate your app with the N Developer Preview. Get the latest versions of the preview SDK, experiment with the new Java 8 support, and gain access to the only official Android Emulator able to run N Developer Preview Emulator System Images to help in your testing.
  • Instant Run: For those of you who enjoyed the fast edit, build and deploy cycle with Android Studio 2.0, Instant Run now can now update incremental changes to your app code significantly faster.

Deeper Dive into the New Features

N Developer Preview

On top of new features and APIs of the N Developer Preview, Android Studio 2.1 release includes support for the new Jack compiler and support for Java 8. With the Jack compiler, lambdas, method references, compile-time type annotations, intersection types and type inference are available on all versions of the Android platform. Default and static methods and repeatable annotations are available on Android N and higher. To use Java 8 language features when developing with the N Developer Preview, you need to use the Jack compiler. The New Project Wizard [File? New? Project] generates the correct configurations for projects targeting the N.

Getting started with development is as easy generating a new project or updating a few settings in your existing project. Once you are ready to test, you can create a fresh Android Virtual Device (AVD) and run your app on the N Developer Preview using the new Android Emulator.


N Developer Preview on the new Android Emulator

Instant Run & General Build Performance Improvements

Instant Run and general build speed are now faster with two new features: incremental Java compilation and in-process dex.

In previous versions of Android Studio, a single line of Java code change will cause all the Java sources in the module to be recompiled. Now in Android Studio 2.1, incremental Java compilation is enabled by default to reduce compilation time by compiling only what is needed.

We are also speeding up build times by using in-process dex, which converts class files to dex files within the Gradle daemon process. This avoids the costly processing operation of creating separate dex processes. To use this feature, you will need to increase the amount of memory available to the Gradle daemon to at least 2GB (1 GB is the default). This feature will help speed up both incremental and full builds.

We’d appreciate your feedback as we continue to improve Instant Run and general build performance. We are going to keep working on making build times even faster in coming releases. Click here to learn even more about the build changes.

Whats Next

Update

If you are using a previous version of Android Studio, you can check for updates on the Stable channel from the navigation menu (Help ? Check for Update [Windows/Linux] , Android Studio ? Check for Updates [OS X]). If you need a new copy of Android Studio, you can download it here.

Test and Validate Apps with N Developer Preview

After you update to or download Android Studio 2.1 and you want to test and develop your apps with the N Developer Preview, create a fresh Android Virtual Device (AVD) for the new Android emulator, and check out these additional setup instructions.

We appreciate any feedback on things you like, issues or features you would like to see. Connect with us -- the Android Studio development team -- on our Google+ page or on Twitter.


Available link for download

Read more »

Tuesday, December 20, 2016

Googles Visual Translation Supports 20 New Languages

Googles Visual Translation Supports 20 New Languages


Google bought Word Lens last year and brought a very useful feature to Google Translate: real-time visual translation. Use a phone or a tablet running Android or iOS, point the camera at a sign or text in a foreign language and Google will translate the text almost instantly, while preserving all the other details. Its like using a magic camera that translates text and lets you read street signs, restaurant menus, user manuals, newspaper articles even if theyre written in foreign languages.

Visual translation now supports 20 additional languages. "You can now translate to and from English and Bulgarian, Catalan, Croatian, Czech, Danish, Dutch, Filipino, Finnish, Hungarian, Indonesian, Lithuanian, Norwegian, Polish, Romanian, Slovak, Swedish, Turkish and Ukrainian. You can also do one-way translations from English to Hindi and Thai." Back in January, the feature was launched with only 7 supported languages: English, French, German, Italian, Portuguese, Russian and Spanish.



This feature requires to pick the right languages before tapping the camera button and one of the languages must be English. Youll probably be prompted to download a small language pack, since you can use Word Lens offline.

Google Research Blog has more information about Word Lens. After finding the text regions in the picture, Google recognizes the letters using a convolutional neural network. "Letters out in the real world are marred by reflections, dirt, smudges, and all kinds of weirdness. So we built our letter generator to create all kinds of fake dirt to convincingly mimic the noisiness of the real world—fake reflections, fake smudges, fake weirdness all around." After recognizing the letters, Google translates the text taking into account that text recognition might include mistakes, then it "renders the translation on top of the original words in the same style as the original". Google actually erases the original text using the colors surrounding the text and draws the translation using the initial foreground color. Its quite clever.

Heres a funny demo:


Available link for download

Read more »