Cover image for AndroidTM how to program
Title:
AndroidTM how to program
Author:
Deitel, Paul J.
ISBN:
9780132990547
Personal Author:
Publication Information:
Boston : Prentice Hall, c2013.
Physical Description:
xxxviii, 862 p. : ill. ; 23 cm.
General Note:
Includes index.
Contents:
Machine generated contents note: 1.Introduction to Android -- 1.1.Introduction -- 1.2.Android Overview -- 1.3.Android 2.2 (Froyo) -- 1.4.Android 2.3 (Gingerbread) -- 1.5.Android 3.0 (Honeycomb) -- 1.6.Android 4.0 (Ice Cream Sandwich) -- 1.7.Downloading Apps from the Android Market -- 1.8.Packages -- 1.9.Android Software Development Kit (SDK) -- 1.10.Object Technology: A Quick Refresher -- 1.11.Test-Driving the Doodiz App in an Android Virtual Device (AVD) -- 1.12.Deitel Resources -- 1.13.Android Development Resources -- 1.14.Wrap-Up -- 2.Android Market and App Business Issues -- 2.1.Introduction -- 2.2.Building Great Android Apps -- 2.3.Android Best Practices -- 2.3.1.Compatibility -- 2.3.2.Supporting Multiple Screens -- 2.3.3.Android User Interface Guidelines -- 2.4.Registering at Android Market -- 2.5.Setting Up a Google Checkout Merchant Account -- 2.6.AndroidMani fest.xml File -- 2.7.Preparing Your Apps for Publication -- 2.8.Uploading Your Apps to Android Market --

Contents note continued: 2.9.Other Android App Marketplaces -- 2.10.Pricing Your App: Free or Fee -- 2.11.Monetizing Apps with In-App Advertising -- 2.12.Monetizing Apps: Using In-App Billing to Sell Virtual Goods in Your Apps -- 2.13.Launching the Market App from Within Your App -- 2.14.Managing Your Apps in Android Market -- 2.15.Marketing Your App -- 2.16.Other Popular App Platforms -- 2.17.Android Developer Documentation -- 2.18.Android Humor -- 2.19.Wrap-Up -- 3.Welcome App -- 3.1.Introduction -- 3.2.Technologies Overview -- 3.3.Eclipse IDE -- 3.4.Creating a New Project -- 3.5.Building the Welcome App's GUI with the ADT's Visual Layout Editor -- 3.6.Examining the main. xml File -- 3.7.Running the Welcome App -- 3.8.Wrap-Up -- 4.Tip Calculator App -- 4.1.Introduction -- 4.2.Test-Driving the Tip Calculator App -- 4.3.Technologies Overview -- 4.4.Building the App's GUI -- 4.4.1.TableLayout Introduction -- 4.4.2.Creating the Project and Adding the TableLayout and Components --

Contents note continued: 4.4.3.Reviewing the Layout So Far -- 4.4.4.Customizing the Components to Complete the Design -- 4.4.5.Final XML Markup for the Tip Calculator GUI -- 4.4.6.strings.xml -- 4.5.Adding Functionality to the App -- 4.6.Wrap-Up -- 5.Favorite Twitter® Searches App -- 5.1.Introduction -- 5.2.Test-Driving the Favorite Twitter Searches App -- 5.3.Technologies Overview -- 5.4.Building the App's GUI and Resource Files -- 5.4.1.main.xml TableLayout -- 5.4.2.Creating the Project -- 5.4.3.Creating the Resource Files -- 5.4.4.Adding the TableLayout and Components -- 5.4.5.Creating a TableRow That Displays a Search and an Edit Button -- 5.5.Building the App -- 5.6.AndroidManifest.xml -- 5.7.Wrap-Up -- 6.Flag Quiz Game App -- 6.1.Introduction -- 6.2.Test-Driving the Flag Quiz Game App -- 6.3.Technologies Overview -- 6.4.Building the App's GUI and Resource Files -- 6.4.1.main.xml LinearLayout -- 6.4.2.Creating the Project -- 6.4.3.Creating and Editing the Resource Files --

Contents note continued: 6.4.4.Adding the Components to the LinearLayout -- 6.4.5.Creating a Button That Can Be Dynamically Inflated -- 6.4.6.Creating the Flag Shake Animation -- 6.5.Building the App -- 6.6.AndroidManifest.xml -- 6.7.Wrap-Up -- 7.Cannon Game App -- 7.1.Introduction -- 7.2.Test-Driving the Cannon Game App -- 7.3.Technologies Overview -- 7.4.Building the App's GUI and Resource Files -- 7.4.1.Creating the Project -- 7.4.2.AndroidManifest.xml -- 7.4.3.strings.xml -- 7.4.4.main.xml -- 7.4.5.Adding the Sounds to the App -- 7.5.Building the App -- 7.5.1.Line Class Maintains a Line's Endpoints -- 7.5.2.CannonGame Subclass of Activity -- 7.5.3.CannonView Subclass of View -- 7.6.Wrap-Up -- 8.SpotOn Game App -- 8.1.Introduction -- 8.2.Test-Driving the SpotOn Game App -- 8.3.Technologies Overview -- 8.4.Building the App's GUI and Resource Files -- 8.4.1.AndroidManifest.xml -- 8.4.2.main.xml RelativeLayout -- 8.4.3.untouched.xml ImageView for an Untouched Spot --

Contents note continued: 8.4.4.life.xml ImageView for a Life -- 8.5.Building the App -- 8.5.1.SpotOn Subclass of Activity -- 8.5.2.SpotOnView Subclass of View -- 8.6.Wrap-Up -- 9.Doodlz App -- 9.1.Introduction -- 9.2.Test-Driving the Doodlz App -- 9.3.Technologies Overview -- 9.4.Building the App's GUI and Resource Files -- 9.4.1.Creating the Project -- 9.4.2.AndroidManifest.xml -- 9.4.3.strings.xml -- 9.4.4.main.xml -- 9.4.5.color_dialog.xml -- 9.4.6.width_dialog.xml -- 9.5.Building the App -- 9.5.1.Doodlz Subclass of Activity -- 9.5.2.DoodleView Subclass of View -- 9.6.Wrap-Up -- 10.Address Book App -- 10.1.Introduction -- 10.2.Test-Driving the Address Book App -- 10.3.Technologies Overview -- 10.4.Building the GUI and Resource Files -- 10.4.1.Creating the Project -- 10.4.2.AndroidManifest.xml -- 10.4.3.styles.xml -- 10.4.4.textview_border.xml -- 10.4.5.AddressBook Activity's Layout: contact_list_item.xml -- 10.4.6.ViewContact Activity's Layout: view_contact.xml --

Contents note continued: 10.4.7.AddEditContact Activity's Layout: add_contact.xml -- 10.4.8.Defining the App's MenuItems with menu Resources in XML -- 10.5.Building the App -- 10.5.1.AddressBook Subclass of ListActivity -- 10.5.2.ViewContact Subclass of Activity -- 10.5.3.AddEditContact Subclass of Activity -- 10.5.4.DatabaseConnector Utility Class -- 10.6.Wrap-Up -- 11.Route Tracker App -- 11.1.Introduction -- 11.2.Test-Driving the Route Tracker App -- 11.3.Technologies Overview -- 11.4.Building the GUI and Resource Files -- 11.4.1.Creating the Project -- 11.4.2.AndroidManifest.xml -- 11.4.3.Route Tracker Layout: main.xml -- 11.5.Building the App -- 11.5.1.RouteTracker Subclass of MapActivity -- 11.5.2.BearingFrameLayout Subclass of FrameLayout -- 11.5.3.RouteOverlay Subclass of Overlay -- 11.6.Wrap-Up -- 12.Slideshow App -- 12.1.Introduction -- 12.2.Test-Driving the Slideshow App -- 12.3.Technologies Overview -- 12.4.Building the GUI and Resource Files --

Contents note continued: 12.4.1.Creating the Project -- 12.4.2.Using Standard Android Icons in the App's GUI -- 12.4.3.AndroidManifest.xml -- 12.4.4.Layout for ListView Items in the Slideshow ListActivity -- 12.4.5.Slideshow ListActivity's Menu -- 12.4.6.Layout for the EditText in the Set Slideshow Name Dialog -- 12.4.7.Layout for the SlideshowEditor ListActivity -- 12.4.8.Layout for ListView Items in the SlideshowEditor ListActivity -- 12.4.9.Layout for the SlideshowPlayer Activity -- 12.5.Building the App -- 12.5.1.SlideshowInfo Class -- 12.5.2.Slideshow Subclass of ListActivity -- 12.5.3.SlideshowEditor Subclass of ListActivity -- 12.5.4.SlideshowPlayer Subclass of ListActivity -- 12.6.Wrap-Up -- 13.Enhanced Slideshow App -- 13.1.Introduction -- 13.2.Test-Driving the Enhanced Slideshow App -- 13.3.Technologies Overview -- 13.4.Building the GUI and Resource Files -- 13.4.1.Creating the Project -- 13.4.2.AndroidManifest.xml --

Contents note continued: 13.4.3.SlideshowEditor ListActivity's Modified Layout -- 13.4.4.PictureTaker Activity's Layout -- 13.4.5.SlideshowPlayer Activity's Modified Layout -- 13.5.Building the App -- 13.5.1.MediaItem Class -- 13.5.2.SlideshowInfo Class -- 13.5.3.Slideshow Class -- 13.5.4.SlideshowEditor Class -- 13.5.5.PictureTaker Subclass of Activity -- 13.5.6.SlideshowPlayer Class -- 13.6.Wrap-Up -- 14.Weather Viewer App -- 14.1.Introduction -- 14.2.Test-Driving the Weather Viewer App -- 14.3.Technologies Overview -- 14.4.Building the App's GUI and Resource Files -- 14.4.1.AndroidManifest.xml -- 14.4.2.WeatherViewerActivity's main.xml Layout -- 14.4.3.Default Cities and ZIP Codes in arrays. xml -- 14.4.4.WeatherViewerActivity's actionmenu.xml Menu Layout -- 14.4.5.WeatherProvider App Widget Configuration and Layout -- 14.5.Building the App -- 14.5.1.Class WeatherViewerActivity -- 14.5.2.Class CitiesFragment -- 14.5.3.Class AddCityDialogFragment --

Contents note continued: 14.5.4.Class ForecastFragment -- 14.5.5.Class SingleForecastFragment -- 14.5.6.Class ReadLocationTask -- 14.5.7.Class ReadForecastTask -- 14.5.8.Class FiveDayForecastFragment -- 14.5.9.Class ReadFiveDayForecastTask -- 14.5.10.Class DailyForecast -- 14.5.11.Class WeatherProvider -- 14.6.Wrap-Up -- A.Introduction to Java Applications -- A.1.Introduction -- A.2.Your First Program in Java: Printing a Line of Text -- A.3.Modifying Your First Java Program -- A.4.Displaying Text with printf -- A.5.Another Application: Adding Integers -- A.6.Memory Concepts -- A.7.Arithmetic -- A.8.Decision Making: Equality and Relational Operators -- A.9.Wrap-Up -- B.Introduction to Classes, Objects, Methods and Strings -- B.1.Introduction -- B.2.Declaring a Class with a Method and Instantiating an Object of a Class -- B.3.Declaring a Method with a Parameter -- B.4.Instance Variables, set Methods and get Methods -- B.5.Primitive Types vs. Reference Types --

Contents note continued: B.6.Initializing Objects with Constructors -- B.7.Floating-Point Numbers and Type double -- B.8.Wrap-Up -- C.Control Statements -- C.1.Introduction -- C.2.Algorithms -- C.3.Pseudocode -- C.4.Control Structures -- C.5.if Single-Selection Statement -- C.6.if ... else Double-Selection Statement -- C.7.while Repetition Statement -- C.8.Case Study: Counter-Controlled Repetition -- C.9.Case Study: Sentinel-Controlled Repetition -- C.10.Case Study: Nested Control Statements -- C.11.Compound Assignment Operators -- C.12.Increment and Decrement Operators -- C.13.Primitive Types -- C.14.Essentials of Counter-Controlled Repetition -- C.15.for Repetition Statement -- C.16.Examples Using the for Statement -- C.17.do...while Repetition Statement -- C.18.switch Multiple-Selection Statement -- C.19.break and continue Statements -- C.20.Logical Operators -- C.21.Wrap-Up -- D.Methods: A Deeper Look -- D.1.Introduction -- D.2.Program Modules in Java --

Contents note continued: D.3.static Methods, static Fields and Class Math -- D.4.Declaring Methods with Multiple Parameters -- D.5.Notes on Declaring and Using Methods -- D.6.Method-Call Stack and Activation Records -- D.7.Argument Promotion and Casting -- D.8.Java API Packages -- D.9.Introduction to Random-Number Generation -- D.9.1.Scaling and Shifting of Random Numbers -- D.9.2.Random-Number Repeatability for Testing and Debugging -- D.10.Case Study: A Game of Chance; Introducing Enumerations -- D.11.Scope of Declarations -- D.12.Method Overloading -- D.13.Wrap-Up -- E.Arrays and ArrayLists -- E.1.Introduction -- E.2.Arrays -- E.3.Declaring and Creating Arrays -- E.4.Examples Using Arrays -- E.5.Case Study: Card Shuffling and Dealing Simulation -- E.6.Enhanced for Statement -- E.7.Passing Arrays to Methods -- E.8.Case Study: Class GradeBook Using an Array to Store Grades -- E.9.Multidimensional Arrays -- E.10.Case Study: Class GradeBook Using a Two-Dimensional Array --

Contents note continued: E.11.Class Arrays -- E.12.Introduction to Collections and Class ArrayList -- E.13.Wrap-Up -- F.Classes and Objects: A Deeper Look -- F.1.Introduction -- F.2.Time Class Case Study -- F.3.Controlling Access to Members -- F.4.Referring to the Current Object's Members with the this Reference -- F.5.Time Class Case Study: Overloaded Constructors -- F.6.Default and No-Argument Constructors -- F.7.Composition -- F.8.Enumerations -- F.9.Garbage Collection -- F.10.static Class Members -- F.11.final Instance Variables -- F.12.Packages -- F.13.Package Access -- F.14.Wrap-Up -- G.Object-Oriented Programming: Inheritance and Polymorphism -- G.1.Introduction to Inheritance -- G.2.Superclasses and Subclasses -- G.3.protected Members -- G.4.Relationship between Superclasses and Subclasses -- G.4.1.Creating and Using a CommissionEmployee Class -- G.4.2.Creating and Using a BasePlusCommissionEmployee Class --

Contents note continued: G.4.3.Creating a CommissionEmployee-BasePlusCommissionEmployee Inheritance Hierarchy -- G.4.4.CommissionEmployee-BasePlusCommissionEmployee Inheritance Hierarchy Using protected Instance Variables -- G.4.5.CommissionEmployee---BasePlusCommissionEmployee Inheritance Hierarchy Using private Instance Variables -- G.5.Class Object -- G.6.Introduction to Polymorphism -- G.7.Polymorphism: An Example -- G.8.Demonstrating Polymorphic Behavior -- G.9.Abstract Classes and Methods -- G.10.Case Study: Payroll System Using Polymorphism -- G.10.1.Abstract Superclass Employee -- G.10.2.Concrete Subclass SalariedEmployee -- G.10.3.Concrete Subclass HourlyEmployee -- G.10.4.Concrete Subclass CommissionEmployee -- G.10.5.Indirect Concrete Subclass BasePlusCommissionEmployee -- G.10.6.Polymorphic Processing, Operator instanceof and Downcasting -- G.10.7.Summary of the Allowed Assignments Between Superclass and Subclass Variables -- G.11.final Methods and Classes --

Contents note continued: G.12.Case Study: Creating and Using Interfaces -- G.12.1.Developing a Payable Hierarchy -- G.12.2.Interface Payable -- G.12.3.Class Invoice -- G.12.4.Modifying Class Employee to Implement Interface Payable -- G.12.5.Modifying Class SalariedEmployee for Use in the Payable Hierarchy -- G.12.6.Using Interface Payable to Process Invoices and Employees Polymorphically -- G.13.Common Interfaces of the Java API -- G.14.Wrap-Up -- H.Exception Handling: A Deeper Look -- H.1.Introduction -- H.2.Example: Divide by Zero without Exception Handling -- H.3.Example: Handling ArithmeticExceptions and InputMismatchExceptions -- H.4.When to Use Exception Handling -- H.5.Java Exception Hierarchy -- H.6.finally Block -- H.7.Stack Unwinding and Obtaining Information from an Exception Object -- H.8.Wrap-Up -- I.GUI Components and Event Handling -- I.1.Introduction -- I.2.Nimbus Look-and-Feel -- I.3.Text Fields and an Introduction to Event Handling with Nested Classes --

Contents note continued: I.4.Common GUI Event Types and Listener Interfaces -- I.5.How Event Handling Works -- I.6.JButton -- I.7.JComboBox; Using an Anonymous Inner Class for Event Handling -- I.8.Adapter Classes -- I.9.Wrap-Up -- J.Other Topics -- J.1.Introduction -- J.2.Collections Overview -- J.3.Type-Wrapper Classes for Primitive Types -- J.4.Interface Collection and Class Collections -- J.5.Lists -- J.5.1.ArrayList and Iterator -- J.5.2.LinkedList -- J.5.3.Views into Collections and Arrays Method asList -- J.6.Collections Methods -- J.6.1.Method sort -- J.6.2.Method shuffle -- J.7.Interface Queue -- J.8.Sets -- J.9.Maps -- J.10.Introduction to Files and Streams -- J.11.Class File -- J.12.Introduction to Object Serialization -- J.13.Introduction to Multithreading -- J.14.Creating and Executing Threads with the Executor Framework -- J.15.Overview of Thread Synchronization -- J.16.Concurrent Collections Overview -- J.17.Multithreading with GUI -- J.18.Wrap-Up --

Contents note continued: K.Operator Precedence Chart -- L.Primitive Types.
Copies: