Code Monkey home page Code Monkey logo

android-n-java8-sample's Introduction

Android-N-Java8-Sample

It's time to try java 8 features on Android with official support!

This project includes two sample hello world apps to play with java8 features out of the box.

So the only steps you need to follow are:

  1. Install Java8 on your machine. Check if you already have it at /Library/Java/JavaVirtualMachines for OS X.
  2. Download Android Studio Preview 2.1 (introduces the new jack compiler and toolchain)
  3. Point to Java 8 in Project structure (โŒ˜+;) as-prefs
  4. Download this project and run it.

Inside this project

This project includes two apps:

  • lambda-app: Let's you try lambdas compatible with any device/emulator API 10+

lambda

  • more-java8-app: Let's you try the rest of the Java 8 features supported only by Android N

    Only compatible with devices/emulators API 24+ (N)

more

Create N emulator

Just in case you can't find the new Android N emulator:

  1. Open AVD Manager.
  2. Press the Create new virtual device button
  3. Select any definition you like and press next
  4. Here comes the trick. Notice the x86 tab selected. By default the Recommended tab is selected and probably you won't find the N emulator there.

trick

android-n-java8-sample's People

Contributors

sebaslogen avatar vitovalov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.