Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.
This is the Rough Cut version of the printed book.
The professional programmer’s Deitel® guide to Android™ smartphone and tablet app development and the Eclipse IDE with the Android Development Tools (ADT) plug-inBillions of apps have been downloaded from Android Market! This book gives you everything you’ll need to start developing great Android apps quickly and getting them published on Android Market. The book uses an app-driven approach—each new technology is discussed in the context of 16 fully tested Android apps, complete with syntax coloring, code walkthroughs and sample outputs. Apps you’ll develop include:
Practical, example-rich coverage of:
PLUS: Register your product at www.informit.com/register for additional online chapters that cover Android Ice Cream Sandwich (Android 4), including a complete, working Ice Cream Sandwich app!
VISIT WWW.DEITEL.COM
Download EnhancedSlideshow.zip
Download FavoriteTwitterSearches.zip
Download FlagQuizGame.zip Download RouteTracker.zip Download Slideshow.zip Download SpotOn.zip Download TipCalculator.zip Download WeatherViewer.zip Download Welcome.zip
Preface xiv
Before You Begin xxii
Chapter 1: Introduction to Android 1
1.1 Introduction 2
1.2 Android Overview 4
1.3 Android 2.2 (Froyo) 7
1.4 Android 2.3 (Gingerbread) 10
1.5 Android 3.0 (Honeycomb) 12
1.6 Android Ice Cream Sandwich 15
1.7 Downloading Apps from the Android Market 16
1.8 Packages 17
1.9 Android Software Development Kit (SDK) 18
1.10 Object Technology: A Quick Refresher 20
1.11 Test-Driving the Doodlz App in an Android Virtual Device (AVD) 23
1.12 Deitel Resources 32
1.13 Android Development Resources 33
1.14 Wrap-Up 34
Chapter 2: Android Market and App Business Issues 35
2.1 Introduction 36
2.2 Building Great Android Apps 36
2.3 Android Best Practices 38
2.4 Registering at Android Market 44
2.5 Setting Up a Google Checkout Merchant Account 44
2.6 AndroidManifest.xml File 45
2.7 Preparing Your Apps for Publication 46
2.8 Uploading Your Apps to Android Market 51
2.9 Other Android App Marketplaces 54
2.10 Pricing Your App: Free or Fee 54
2.11 Monetizing Apps with In-App Advertising 56
2.12 Monetizing Apps: Using In-App Billing to Sell Virtual Goods in Your Apps 57
2.13 Launching the Market App from Within Your App 59
2.14 Managing Your Apps in Android Market 59
2.15 Marketing Your App 59
2.16 Other Popular App Platforms 64
2.17 Android Developer Documentation 65
2.18 Android Humor 66
2.19 Wrap-Up 67
Chapter 3: Welcome App 68
Dive-Into® Eclipse and the ADT Plugin
3.1 Introduction 69
3.2 Technologies Overview 69
3.3 Eclipse IDE 70
3.4 Creating a New Project 71
3.5 Building the Welcome App’s GUI with the ADT’s Visual Layout Editor 74
3.6 Examining the main.xml File 87
3.7 Running the Welcome App 89
3.8 Wrap-Up 89
Chapter 4: Tip Calculator App 91
Building an Android App with Java
4.1 Introduction 92
4.2 Test-Driving the Tip Calculator App 93
4.3 Technologies Overview 94
4.4 Building the App’s GUI 94
4.5 Adding Functionality to the App 106
4.6 Wrap-Up 116
Chapter 5: Favorite Twitter® Searches App 117
SharedPreferences, Buttons, Nested Layouts, Intents, AlertDialogs, Inflating XML Layouts and the Manifest File
5.1 Introduction 118
5.2 Test-Driving the Favorite Twitter Searches App 119