Learning Android Application Programming : A Hands-On Guide to Building Android Applications (Addison-wesley Learning)

  • ポイントキャンペーン

Learning Android Application Programming : A Hands-On Guide to Building Android Applications (Addison-wesley Learning)

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版/ページ数 397 p.
  • 言語 ENG
  • 商品コード 9780321902931
  • DDC分類 004.16

Full Description


Learning Android (TM) Application Programming will help you master modern Android programming by building a fully functional app from the ground up. Working with the Android 4.3 toolset, you'll solve real-world problems faced by every Android developer and learn best practices for success with any mobile development project.Ideal for developers who have little or no Android experience but have basic Java experience, this tutorial teaches through carefully structured exercises that address the entire development process. Leading Android developers James Talbot and Justin McLean guide you through building a real biking mobile app that can handle everything from mileage tracking to route planning. Each chapter builds your knowledge, step-by-step, and in the end you will have a complete, working app. Along the way, you'll gain hands-on experience with writing code that can run on the widest spectrum of devices while still leveraging Android's newest features. You'll also discover proven solutions for the occasionally messy realities of Android development, from inaccurate sensor data to inadequate device battery life-pitfalls that most other Android books ignore. Learn how toSet up your Android development environment on Windows or Mac operating systems Quickly create a simple, working app that demonstrates basic Android principles Master core building blocks, such as Activities, Intents, Services, and Resources Build a functional user interface, and then make it more intuitive and usable Professionally style your Android app Make your app location-aware Integrate social networking features Build highly efficient threaded apps Integrate database support to read and write data Make your app run faster, while using less memory and power Efficiently test and debug your app Easily internationalize your app for multiple countries and languages Sell your app through Google Play and the Amazon AppStoreGet all of this book's sample code at www.androiddevbook.com/code.html. Register your book at informit.com/register to gain access to the Bonus KitKat Chapter.Download the free version of this book's On Your Bike app from Google Play today.

Contents

Preface xixAcknowledgments xxiAbout the Authors xxiiiChapter 1: An Introduction to Android Development 1Understanding the Android Difference 2Building Native Applications 2Understanding the History of Android 3Using the Android User Interface 8Understanding Android Applications 10Introducing Google Play 10Summary 12Chapter 2: Kicking the Tires: Setting Up Your Development Environment 13Installing the Java JDK and JRE on Windows 14Installing the Eclipse IDE on Windows 16Installing the Android SDK on Windows 19Installing and Using Java on a Mac 24Summary 27Chapter 3: Putting On the Training Wheels: Creating Your First Android Application 29Creating an Android Application 29Running Your Android Project 32Working with Lint in an Android Project 37Understanding the Android Project Files 37Summary 50Chapter 4: Going for Your First Ride: Creating an Android User Interface 51Refactoring Your Code 51Implementing Strict Mode 54Creating a Simple User Interface 55Understanding the Activity Lifecycle 68Making an Android Device Vibrate 72Saving User Preferences 74Summary 80Chapter 5: Customizing Your Bike: Improving Android Application Usability 81Refactoring Your Code 82Improving the Setting Activity 88Action Bars and Menus 94Using Notifications 101Creating a Database 107Summary 122Chapter 6: Pimping Your Bike: Styling an Android Application 125Refactoring Your Application 126Understanding Screen Differences 126Making Your Application Resolution Independent 129Using Configuration Qualifiers 132Using Styles and Themes 149Summary 162Chapter 7: Are We There Yet? Making Your Application Location Aware 165Refactoring Your Code 165Finding the Device's Location 169Dealing with Inaccurate Location Data 190Storing GPS Data 196Displaying GPS Data 209Summary 220Chapter 8: Inviting Friends for a Ride: Social Network Integration 223Refactoring Your Code 223Integrating Photos into an Android Application 224Sharing Content with Friends 242Summary 248Chapter 9: Tuning Your Bike: Optimizing Performance, Memory, and Power 249Refactoring Your Code 249Running Your Application as a Service 250Improving Battery Life 267Speeding Up Databases 278Summary 284Chapter 10: Taking Off the Training Wheels: Testing Your Application 285Refactoring Your Code 285Testing with JUnit 286Testing with Android JUnit Extensions 299Testing Services 310Using Monkey Testing 313Running Tests Automatically 316Testing on a Wide Range of Devices 323Summary 325Chapter 11: Touring France: Optimizing for Various Devices and Countries 327Refactoring Your Code 327Going International 329Accommodating Various Dialects 342Handling Various Language Formats 344Enabling Backward Compatibility 348Building for Various Screen Sizes 352Using Fragments 355Summary 361Chapter 12: Selling Your Bike: Using Google Play and the Amazon Appstore 363Building Your Media Strategy 363Employing Advertising in Your Application 369Using the Amazon Appstore 373Summary 376Index 377