20.08.2016 Views

Professional Android 4 Application Development

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CONTENTS<br />

CHAPTER 2: GETTING STARTED 19<br />

Developing for <strong>Android</strong> 20<br />

What You Need to Begin 20<br />

Downloading and Installing the <strong>Android</strong> SDK 21<br />

Downloading and Installing Updates to the SDK 23<br />

Developing with Eclipse 23<br />

Using the <strong>Android</strong> Developer Tools Plug-In for Eclipse 24<br />

Using the Support Package 27<br />

Creating Your First <strong>Android</strong> <strong>Application</strong> 28<br />

Creating a New <strong>Android</strong> Project 28<br />

Creating an <strong>Android</strong> Virtual Device 30<br />

Creating Launch Confi gurations 30<br />

Running and Debugging Your <strong>Android</strong> <strong>Application</strong> 33<br />

Understanding Hello World 33<br />

Types of <strong>Android</strong> <strong>Application</strong>s 36<br />

Foreground <strong>Application</strong>s 36<br />

Background <strong>Application</strong>s 37<br />

Intermittent <strong>Application</strong>s 37<br />

Widgets and Live Wallpapers 37<br />

Developing for Mobile and Embedded Devices 38<br />

Hardware-Imposed Design Considerations 38<br />

Be Efficient 38<br />

Expect Limited Capacity 39<br />

Design for Different Screens 39<br />

Expect Low Speeds, High Latency 40<br />

At What Cost? 41<br />

Considering the User’s Environment 42<br />

Developing for <strong>Android</strong> 43<br />

Being Fast and Efficient 43<br />

Being Responsive 44<br />

Ensuring Data Freshness 45<br />

Developing Secure <strong>Application</strong>s 45<br />

Ensuring a Seamless User Experience 46<br />

Providing Accessibility 47<br />

<strong>Android</strong> <strong>Development</strong> Tools 47<br />

The <strong>Android</strong> Virtual Device Manager 48<br />

<strong>Android</strong> SDK Manager 49<br />

The <strong>Android</strong> Emulator 50<br />

xviii

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

Saved successfully!

Ooh no, something went wrong!