21.10.2016 Views

android-6-for-programmers-3rd

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Be<strong>for</strong>e You Begin<br />

In this section, you’ll set up your computer <strong>for</strong> use with this book. Google frequently updates<br />

the Android development tools, so be<strong>for</strong>e reading this section, check the book's<br />

website<br />

http://www.deitel.com/books/AndroidFP3<br />

to see if we’ve posted an updated version of this Be<strong>for</strong>e You Begin section.<br />

Software and Hardware System Requirements<br />

To develop Android apps, you need a Windows ® , Linux ® or Mac ® OS X ® system. To<br />

view the latest operating-system requirements visit<br />

http://developer.<strong>android</strong>.com/sdk/index.html#Requirements<br />

and scroll down to the System Requirements heading. We developed the apps in this book<br />

using the following software:<br />

• Java SE 7 Software Development Kit<br />

• Android Studio 1.4 Integrated Development Environment (IDE)<br />

• Android 6 SDK (API 23)<br />

You’ll see how to obtain each of these in the following sections.<br />

Installing the Java Development Kit (JDK)<br />

Android requires the Java Development Kit version 7 (JDK 7). All Java language features<br />

in JDK 7 are supported in Android Studio, but the try-with-resources statement is supported<br />

only <strong>for</strong> Android plat<strong>for</strong>m versions with API levels 19 and higher. To download<br />

JDK 7 <strong>for</strong> Windows, OS X or Linux, go to<br />

http://www.oracle.com/technetwork/java/javase/downloads/javaarchive-downloads-javase7-521261.html<br />

Choose the appropriate 32-bit or 64-bit version <strong>for</strong> your computer hardware and operating<br />

system. Be sure to follow the installation instructions at<br />

http://docs.oracle.com/javase/7/docs/webnotes/install/index.html<br />

Android does not yet support Java 8 language features, such as lambda expressions, new<br />

interface features and the stream APIs. You can use JDK 8 (as we did when developing this<br />

book’s apps), provided that you use no Java 8 language features in your code.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!