What's new in Android - Google I/O 2016

Android Developers · 264K views · 2016 · 42:36

Open on YouTube

Software (other)Software practice, open source & careerstalkdated

Why Stack Overflow recommends it

Stack Overflow users link it as a primary source when answering what Android N and the 2016 tooling announcements added, such as Java 8 language support and multi-window drag and drop.

Recommended by 0 people across 0 different months, 2016 to 2018.

What it is

A Google I/O 2016 session where Chet Haase, Romain Guy and Dan Sandler walk through the new developer-facing features in the Android platform. It covers new APIs, functionality and performance changes, including Android N features such as multi-window drag and drop.

What people said

Cites Rohith R · 2016-06 · Stack Overflow · on “Multi-window drag and drop in android N”

Android N announced multi-window drag and drop feature, where we can drag and drop objects between activities. This is the video [this video] of Google-IO'16 where they show the demo (9:56). Do we have to do anything special to enable this feature in our app or we normally listen for Drop events (Assuming that I only want people to drop into my app from other apps ? Can anyone give a link to the code sample for this ?

Cites Zeyad Assem · 2016-09 · Stack Overflow · on “Can I "use" Java 8 with Android Development now?”

In Google I/O 2016, they announced that Android now supports some features of Java 8, but not all the features. Features like Default and static interface methods Lambda expressions (also available on API level 23 and lower) Repeatable annotations Method References (also available on API level 23 and lower) Type Annotations (also available on API level 23 and lower) Additionally, the following Java 8 language APIs are also available: Reflection and language-related APIs java.lang.FunctionalInterface java.lang.annotation.Repeatable java.lang.reflect.Method.isDefault() and Reflection APIs associated with repeatable annotations, such as AnnotatedElement.getAnnotationsByType(Class) Utility APIs

Cites Zeyad Assem · 2016-09 · Stack Overflow · on “Error importing java.util.stream.Stream in Android Studio”

In Google I/O 2016, they announced that Android now supports some features of Java 8, but not all the features. Features like : - Default and static interface methods - Lambda expressions (also available on API level 23 and lower) - Repeatable annotations - Method References (also available on API level 23 and lower) - Type Annotations (also available on API level 23 and lower) Additionally, the following Java 8 language APIs are also available: Reflection and language-related APIs: java.lang.FunctionalInterface java.lang.annotation.Repeatable java.lang.reflect.Method.isDefault() and Reflection APIs associated with repeatable annotations, such as AnnotatedElement.getAnnotationsByType(Class)

Cites Pasindu Weerakoon · 2018-07 · Stack Overflow · on “While running my Android studio project, Java compiler gives this error”

It seems like you're not using the right API. Android does not support all JDK classes, (hope this [LINK] will help you to find an error). (Hard to find an error from your question. Please restructure it). if you want to use java 8 programming features, What you should do is to use the new jack compiler, to do this you have just to add this to your gradle file build.gradle "module:app": android { ... defaultConfig { ... jackOptions { enabled true } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } Refrences : [LINK] youtube : [this video]