Sams Teach Yourself Java™ in 24 Hours (Covering Java 7 and Android)

(singke) #1
ptg7068951

WHAT YOU’LL LEARN IN
THIS HOUR:
.Why Android was created
.How to create an Android
app
.How an Android app is
structured
.How to run an app on an
emulator
.How to run an app on an
Android phone

Java’s a general-purpose programming language that can run on a wide
variety of platforms. One of those platforms has arisen in the past four
years to become an enormously successful spark for new Java development.


The Android operating system, which started out on cell phones and has
spread to a variety of other devices, exclusively runs programs written in
Java.


These programs, called apps, are built on an open-source mobile platform
that’s completely free for developers to build on. Anyone can write,
deploy, and sell Android apps.


During this hour, you learn about how Android came about, what makes it
special, and why tens of thousands of programmers are developing on the
platform. You also create an app and run it on an Android phone (if you
own one) and an emulator (if you don’t).


Introduction to Android


Android was launched by Googlein 2007, two years after it acquired the
technology, as part of industrywide effort to establish a new mobile phone
platform that was nonproprietary and open, unlike the technology that
drives RIM BlackBerryand Apple iPhone. Some of the biggest names in
mobile phones and technology—Google, Intel, Motorola, Nvidia, Samsung,
and other companies—formed the Open Handset Alliance to promote the
new platform for mutual benefit.


Google released the Android Software Development Kit (SDK), a free set of
tools for developing Android apps. The first phone running Android, the
T-Mobile G1, came out in June 2008.


HOUR 24


Writing Android Apps

Free download pdf