Android for Programmers

Android for Programmers : An App-Driven Approach

3.82 (57 ratings by Goodreads)
By (author)  , By (author)  , By (author)  , By (author) 

List price: US$44.99

Currently unavailable

Add to wishlist

AbeBooks may have this title (opens in new window).

Try AbeBooks

Description

The professional programmer's Deitel (R) guide to Android (TM) smartphone and tablet app development and the Eclipse IDE with the Android Development Tools (ADT) plug-in Billions 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:SpotOn GameSlideshowFlag QuizRoute TrackerFavorite Twitter (R) SearchesAddress BookTip CalculatorDoodlzWeather ViewerCannon GameVoice RecorderPizza Ordering Practical, example-rich coverage of:Smartphone and Tablet Apps, Android Development Tools (ADT) Plug-In for EclipseActivities, Intents, Content ProvidersGUI Components, Menus, Toasts, Resource Files, Touch and Gesture ProcessingTablet Apps, ActionBar and AppWidgetsTweened Animations, Property AnimationsCamera, Audio, Video, Graphics, OpenGL ESGallery and Media Library AccessSharedPreferences, Serialization, SQLiteHandlers and Multithreading, GamesGoogle Maps, GPS, Location Services, SensorsInternet-Enabled Apps, Web Services, Telephony, Bluetooth (R)Speech Synthesis and RecognitionAndroid Market, Pricing, MonetizationAnd more...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.COMFor information on Deitel's Dive Into (R) Series instructor-led programming language training courses offered at customer sites worldwide visit www.deitel.com/training or write to deitel@deitel.comDownload code examplesCheck out the growing list of programming Resource CentersJoin the Deitel Twitter (@deitel) and Facebook (www.facebook.com/DeitelFan) communitiesTo receive updates for this book, subscribe to the free Deitel (R) Buzz Online e-mail newsletter at www.deitel.com/newsletter/subscribe.html
show more

Product details

  • Paperback | 512 pages
  • 177.8 x 228.6 x 27.94mm | 952.54g
  • Prentice Hall
  • Upper Saddle River, United States
  • English
  • col. Illustrations
  • 0132121360
  • 9780132121361
  • 561,993

Review quote

"I really love what you're doing with the book. It has the potential to become the best Android book on themarket. It's impressive to see so many well-explained useful examples of Android patterns. The coverage of recent Honeycomb-specific APIs such as ViewPropertyAnimator and resizeable AppWidgets makes this work especially current."-Dan Galpin, Android Advocate and author of Intro to Android Application Development "I really like that this is aiming to stay up-to-date with Android 3 and be the most current book possible by covering key Android 3 features such as property animation, fragments, the ActionBar, tabbed navigation and more. I haven't seen any other books cover app publishing so well and the links provided throughout are an impressive collection that I think would be valuable to anyone getting started. You get full applications that show multiple parts of the APIs working together. I wish this book had been around when I started developing on Android."-Douglas Jones, Senior Software Engineer, Fullpower Technologies "This is the book for developers interested in starting Android application development. While the target of Android for Programmers is people with some development experience, even novices will find this book an interesting read and it will speed their immersion into Android development. The book starts by describing the Android development environment. Then each chapter introduces a core aspect of the Android platform by briefly explaining the topic, then illustrating the capability with working code. The sample apps demonstrate the topics of each chapter, which easily can be applied to your own projects. By far, this is the quickest way to get comfortable writing applications for the #1 smartphone operating system. I really enjoy the book."-Eric J. Bowden, COO, Safe Driving Systems, LLC "Takes the ideal approach of teaching you the Android SDK through actual use. Rather than regurgitate the API documentation, this book shows you how to write an app in every chapter, explaining each aspect of the SDK as it's encountered. Some apps are built from scratch; others expand on the apps in previous chapters, iterating on the code to implement new functionality. The full source code is available, so you can see how the SDK is really used. Teaches you all the Android essentials from layouts to sensors and even on to features added in Honeycomb such as property animation, tabbed navigation with the ActionBar, fragments and web services with JsonReader. Whether you've never touched Android or you have some apps under your belt already, this book is definitely worth picking up."-Ian G. Clifton, Independent Contractor and Android App Developer "With the increasing scope of Android, getting up to speed can be a challenge. This book addresses a compelling set of topics, presenting them in self-contained packages that are fun and instructive. The coverage of key Android 3 features such as fragments, resizable App Widgets and the Action Bar is interesting. For tablet-oriented app development, familiarity with these tools is essential. Creates UI/layouts with a depth of detail I've not seen elsewhere."-Sebastian Nykopp, Chief Architect, Reaktor "The Welcome app looks solid; great to see the integration of the new layout editor. The Tip Calculator app is a pretty cool example and definitely a useful app; I love the deeper coverage of the lifecycle. The Favorite Twitter Searches app is a good way to demonstrate ScrollView. The Flag Quiz app is one of my favorites, covering delayed events, View animations and string arrays; I like the use of the AssetManager for the flags. The XML declaration and explanation of the tweened flag-shake animation is nicely done. The SpotOn Game app is one of my favorites; it does an excellent job in covering the new Honeycomb+ property animations, and uses them in a creative way to build a surprisingly fun little game. Nice job of keeping the database queries out of the UI thread in the Address Book app. It's great how the Route Tracker app chapter puts so much useful MapView information in one place. Slideshow is a beautiful app."-Dan Galpin, Android Advocate and author of Intro to Android Application Development "The Welcome app does a great job illustrating the Visual Layout Editor; I liked the approach of building visual components without code; this makes it easy to experiment with other properties to customize the look of the app. There's a lot of time spent on the Tip Calculator app UI in the Visual Layout Editor-the line-by-line explanations of the code are extremely valuable; this is a solid introduction to how Android works. Favorite Twitter Searches taught me things I didn't know. The Flag Quiz app is a great chapter; clearly written, and I particularly appreciated the completeness of the code comments. The Cannon Game app is a nice introduction to animation. The SpotOn Game app did a great job introducing Android 3+; in a lot of ways, Google has separated Android 2.x and 3.x by intended use (i.e. phone vs. tablet); this chapter introduces some of those concepts and helps the software developer understand some of the SDK differences. The Doodlz app chapter uses great examples to illustrate the concepts. The Address Book app is a good introduction to SQLite databases. The introduction to the camera in the Enhanced Slideshow app chapter is valuable information."-Eric J. Bowden, COO, Safe Driving Systems, LLC "The Intro chapter gives a solid overview of Android. The Welcome app chapter is a nice intro to layouts, keeping it simple, while still using a common layout (RelativeLayout) and explaining the resulting XML. Favorite Twitter Searches app is a great chapter that introduces a lot of new (core) concepts. The app descriptions give a clear understanding of what is being built and the technologies overviews are particularly nice; the colored highlighting is helpful. The SpotOn Game app is a great intro to 3.x animation and produces a fun game without a lot of code. Doodlz is a great app-anyone can identify with it and it gives readers a chance to learn about Android. The Address Book app is a good intro to some key aspects of Android programs (in particular, launching other Activities and utilizing a SQLite database). The Route Tracker app chapter is excellent."-Ian G. Clifton, Independent Contractor and Android App Developer "One of the most comprehensive intro chapters I have read, especially the number and variety of links to outside sources. I like the Welcome app as a way to get the reader's feet wet; it breaks them into Eclipse and it gets them making something without Java code. TheTip Calculator app UI highlights the tricky cases of TableLayout and TableRow. The Favorite Twitter Searches app does a good job of introducing important UI skills, especially using the LayoutInflater and the ScrollView to programmatically add UI elements. The Flag Quiz app chapter does a good job of showing a variety of tools, such as collections, DialogBuilder options and animations; the method used to handle all the data is a good one. Those property animators sure make the SpotOn Game app code straightforward; well done. The Route Tracker is a solid example of a location and map app. The Slideshow app reinforces list handling and adapters. I like the intro to serialization in the Enhanced Slideshow app."-Douglas Jones, Senior Software Engineer, Fullpower Technologies "Good intro to overall Android, Java and OO concepts."-Ronan "Zero" Schwarz (CIO, OpenIntents) "A good intro to Android platform capabilities and online resources for getting into Android development; a valuable timesaver, particularly with the increasing amount of available Android information; the walkthrough for getting an app running in the emulator is easy to follow. The Flag Quiz app chapter is easy to follow and quite enjoyable; clear description of key UI elements; good that the distinction between assets/ and res/ is presented; nice that View animation is included in an example relevant to the app (adds a professional touch); the yellow code highlighting works well. The Address Book app chapter is a good introduction to CRUD [create, read, update and delete] apps. The Route Tracker app chapter is an easy introduction to location tracking. The Enhanced Slideshow app is a straightforward demonstration on how to use the camera and display video in an application."-Sebastian Nykopp, Chief Architect, Reaktor
show more

About Paul J. Deitel

Paul Deitel, Abbey Deitel and Harvey Deitel are from Deitel & Associates, Inc., the internationally recognized programming languages authoring and corporate-training organization. Over a million people worldwide have used Deitel books to master Java (TM), iPhone app development, C#, C++, C, Internet and web programming, JavaScript, XML, Visual Basic (R), Visual C++ (R), Perl, Python and more. Michael Morgano is a professional Android developer with Imerj.
show more

Table of contents

Preface xivBefore You Begin xxii Chapter 1: Introduction to Android 11.1 Introduction 21.2 Android Overview 41.3 Android 2.2 (Froyo) 71.4 Android 2.3 (Gingerbread) 101.5 Android 3.0 (Honeycomb) 121.6 Android Ice Cream Sandwich 151.7 Downloading Apps from the Android Market 161.8 Packages 171.9 Android Software Development Kit (SDK) 181.10 Object Technology: A Quick Refresher 201.11 Test-Driving the Doodlz App in an Android Virtual Device (AVD) 231.12 Deitel Resources 321.13 Android Development Resources 331.14 Wrap-Up 34 Chapter 2: Android Market and App Business Issues 352.1 Introduction 362.2 Building Great Android Apps 362.3 Android Best Practices 382.4 Registering at Android Market 442.5 Setting Up a Google Checkout Merchant Account 442.6 AndroidManifest.xml File 452.7 Preparing Your Apps for Publication 462.8 Uploading Your Apps to Android Market 512.9 Other Android App Marketplaces 542.10 Pricing Your App: Free or Fee 542.11 Monetizing Apps with In-App Advertising 562.12 Monetizing Apps: Using In-App Billing to Sell Virtual Goods in Your Apps 572.13 Launching the Market App from Within Your App 592.14 Managing Your Apps in Android Market 592.15 Marketing Your App 592.16 Other Popular App Platforms 642.17 Android Developer Documentation 652.18 Android Humor 662.19 Wrap-Up 67 Chapter 3: Welcome App 68Dive-Into (R) Eclipse and the ADT Plugin3.1 Introduction 693.2 Technologies Overview 693.3 Eclipse IDE 703.4 Creating a New Project 713.5 Building the Welcome App's GUI with the ADT's Visual Layout Editor 743.6 Examining the main.xml File 873.7 Running the Welcome App 893.8 Wrap-Up 89 Chapter 4: Tip Calculator App 91Building an Android App with Java4.1 Introduction 924.2 Test-Driving the Tip Calculator App 934.3 Technologies Overview 944.4 Building the App's GUI 944.5 Adding Functionality to the App 1064.6 Wrap-Up 116 Chapter 5: Favorite Twitter (R) Searches App 117SharedPreferences, Buttons, Nested Layouts, Intents, AlertDialogs, Inflating XML Layouts and the Manifest File5.1 Introduction 1185.2 Test-Driving the Favorite Twitter Searches App 1195.3 Technologies Overview 1215.4 Building the App's GUI and Resource Files 1235.5 Building the App 1315.6 AndroidManifest.xml 1425.7 Wrap-Up 143 Chapter 6: Flag Quiz Game App 146Assets, AssetManager, Tweened Animations, Handler, Menus and Logging Error Messages6.1 Introduction 1476.2 Test-Driving the Flag Quiz Game App 1516.3 Technologies Overview 1516.4 Building the App's GUI and Resource Files 1536.5 Building the App 1606.6 AndroidManifest.xml 1746.7 Wrap-Up 175 Chapter 7: Cannon Game App 176Listening for Touches and Gestures, Manual Frame-By-Frame Animation, Graphics, Sound, Threading, SurfaceView and SurfaceHolder7.1 Introduction 1777.2 Test-Driving the Cannon Game App 1787.3 Technologies Overview 1797.4 Building the App's GUI and Resource Files 1817.5 Building the App 1837.6 Wrap-Up 203 Chapter 8: SpotOn Game App 204Property Animation, ViewPropertyAnimator, AnimatorListener, Thread-Safe Collections, Default SharedPreferences for an Activity8.1 Introduction 2058.2 Test-Driving the SpotOn Game App 2068.3 Technologies Overview 2078.4 Building the App's GUI and Resource Files 2088.5 Building the App 2108.6 Wrap-Up 224 Chapter 9: Doodlz App 225Two-Dimensional Graphics, SensorManager, Multitouch Events and Toasts9.1 Introduction 2269.2 Test-Driving the Doodlz App 2279.3 Technologies Overview 2289.4 Building the App's GUI and Resource Files 2299.5 Building the App 2349.6 Wrap-Up 256 Chapter 10: Address Book App 258ListActivity, AdapterViews, Adapters, Multiple Activities, SQLite, GUI Styles, Menu Resources and MenuInflater10.1 Introduction 25910.2 Test-Driving the Address Book App 26110.3 Technologies Overview 26210.4 Building the GUI and Resource Files 26310.5 Building the App 26910.6Wrap-Up 290 Chapter 11: Route Tracker App 291Google Maps API, GPS, LocationManager, MapActivity, MapView and Overlay11.1 Introduction 29211.2 Test-Driving the Route Tracker App 29411.3 Technologies Overview 29611.4 Building the GUI and Resource Files 29811.5 Building the App 30011.6 Wrap-Up 318 Chapter 12: Slideshow App 319Gallery and Media Library Access, Built-In Content Providers, MediaPlayer, Image Transitions, Custom ListActivity Layouts and the View-Holder Pattern12.1 Introduction 32012.2 Test-Driving the Slideshow App 32312.3 Technologies Overview 32412.4 Building the GUI and Resource Files 32712.5 Building the App 33112.6 Wrap-Up 358 Chapter 13: Enhanced Slideshow App 360Serializing Data, Taking Pictures with the Camera and Playing Video in a VideoView13.1 Introduction 36113.2 Test-Driving the Enhanced Slideshow App 36213.3 Technologies Overview 36313.4 Building the GUI and Resource Files 36413.5 Building the App 36713.6 Wrap-Up 389 Chapter 14: Weather Viewer App 390Web Services, JSON, Fragment, ListFragment, DialogFragment, ActionBar, Tabbed Navigation, App Widgets, Broadcast Intents and BroadcastReceivers14.1 Introduction 39114.2 Test-Driving the Weather App 39314.3 Technologies Overview 39414.4 Building the App's GUI and Resource Files 39614.5 Building the App 39914.6 Wrap-Up 459 Index 460 Chapters on the WebGo to the book's registration page to register and download these chapters. Chapter 15: PHAB's Pizza AppText-to-Speech, Speech-to-Text and Telephony Chapter 16: Voice Recorder AppAudio Recording and Playback Chapter 17: Enhanced Address Book AppBluetooth Chapter 18: 3D Art AppOpenGL ES 3D Rendering Chapter 19: HTML5 Favorite Twitter (R) Searches AppBonus Chapter: HTML5, CSS3 and JavaScript for Experienced Web Developers
show more

Rating details

57 ratings
3.82 out of 5 stars
5 32% (18)
4 35% (20)
3 21% (12)
2 9% (5)
1 4% (2)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X