Home > Store

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android

Register your product to gain access to bonus material or receive a coupon.

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android

Book

  • This product currently is not for sale.
Not for Sale

About

Features

Teaches all that students need to learn to create and publish apps in BOTH the Google Play store for Android and Apple's App Store for iOS (iPhone, iPad)!

  • The only Android/iOS mobile development guide targeted first and foremost at classroom use
  • Parallel coverage of Android and iOS introduces each feature and task and shows how to program it on both platforms
  • Presents full-color tutorials that have been extensively tested in live IT training courses
  • Also covers crucial related issues, including app store rules and developer agreements
  • Instructor's manual, testbank, and PowerPoint slides available

Description

  • Copyright 2014
  • Dimensions: 7" x 9"
  • Edition: 1st
  • Book
  • ISBN-10: 0-321-94786-X
  • ISBN-13: 978-0-321-94786-4

The Only Tutorial Covering BOTH iOS and Android—for students and professionals alike!

Now, one book can help you master mobile app development with both market-leading platforms: Apple’s iOS and Google’s Android. Perfect for both students and professionals, Learning Mobile App Development is the only tutorial with complete parallel coverage of both iOS and Android. With this guide, you can master either platform, or both—and gain a deeper understanding of the issues associated with developing mobile apps.

You’ll develop an actual working app on both iOS and Android, mastering the entire mobile app development lifecycle, from planning through licensing and distribution.

Each tutorial in this book has been carefully designed to support readers with widely varying backgrounds and has been extensively tested in live developer training courses. If you’re new to iOS, you’ll also find an easy, practical introduction to Objective-C, Apple’s native language.

All source code for this book, organized by chapter, is available at https://github.com/LearningMobile/BookApps

Coverage includes

  • Understanding the unique design challenges associated with mobile apps
  • Setting up your Android and iOS development environments
  • Mastering Eclipse development tools for Android and Xcode 5 tools for iOS
  • Designing interfaces and navigation schemes that leverage each platform’s power
  • Reliably integrating persistent data into your apps
  • Using lists (Android) or tables (iOS) to effectively present data to users
  • Capturing device location, displaying it, and using it in your apps
  • Accessing hardware devices and sensors
  • Publishing custom apps internally within an organization
  • Monetizing your apps on Apple’s AppStore or the Google Play marketplace, as well as other ways of profiting from app development, such as consulting and developer jobs

Downloads

Downloads

Download online source code for Learning Mobile App Development here

Extras

Companion Site

Please visit the site associated with this title here

Sample Content

Online Sample Chapter

Learning Mobile App Development: Using Eclipse for Android Development

Sample Pages

Download the sample pages (includes Chapters 3 and 9 and Index)

Table of Contents

Preface    xiv

Part I  Overview of Mobile App Development    1

1  Why Mobile Apps?    3

Transformative Devices    3

Reaching Customers    4

Changing Business Process    6

Making Money    9

Summary    10

Exercises    10

2  App Design Issues and Considerations    13

App Design    13

Operating System Design Issues    13

Screen Size and Orientation Issues    17

Connectivity Issues    18

Battery Issues    19

Hardware Issues    19

Device Differences    21

Android    21

iOS    23

Introducing Your First App    23

Contact Screen    24

Contact List Screen    24

Map Screen    25

Settings Screen    26

Summary    26

Exercises    27

Part II  Developing the Android App    29

3  Using Eclipse for Android Development    31

Starting a New Project    31

Setting Up the Workspace    32

Creating the Project    32

Components of the IDE    35

The Android Manifest    37

Configuring the Emulator    39

Coding the Interface    42

Coding App Behavior    50

Adding Code    52

Summary    54

Exercises    54

4  Android Navigation and Interface Design    55

Activities, Layouts, and Intents    55

The Activity Class    56

Layout    56

Intents    57

Creating the Interface    57

Create the Project    58

Create the Navigation Bar    59

Create the Contact Layout    64

Activating the Interface    78

Code the Navigation Bar    78

Code the Toggle Button    80

Code the DatePicker Dialog    82

Summary    86

Exercises    87

5  Persistent Data in Android    89

Preferences, Files, and Database    89

Preferences    89

Files    90

Database    90

Creating the Database    91

Create the Database Helper Class    91

Create the Data Source Class    93

Using the Database    98

Capture User-Entered Data    99

Save User-Entered Data    101

Use the Debugger    105

Using Preferences    107

Create the Settings Layout    107

Code the Page’s Behavior    109

Summary    113

Exercises    114

6  Lists in Android: Navigation and Information

Display    115

Lists and Adapters    115

Lists    115

Adapters    116

Simple Lists    116

Create the Data Source Method    116

Create the Layout    118

Code the Activity    118

Complex Lists    121

Create the Data Source Method    121

Create the Layout    123

Create the Custom Adapter    125

Code the Activity    127

Add Delete Functionality    128

Completing the ContactList Activity    135

Populating the ContactActivity Screen    135

Coding the Add Button    138

Sort the Contacts List    139

Set ContactListActivity as the Default Activity    141

Set ContactActivity as Default Activity with no

Contacts in Database    142

Summary    143

Exercises    143

7  Maps and Location in Android    145

Location Sensors, Maps, and Fragments    145

Location Sensors    145

Maps    146

Fragments    146

Setting Up for Maps    146

Passing Data Between Controllers    151

Finding Your Location    152

Geocoding: Get Coordinates from an Address    152

Get Coordinates from the GPS Sensor    155

Get Coordinates from Network Sensor    159

Get Coordinates from the Map    161

Displaying Your Contacts’ Locations    164

Summary    170

Exercises    171

8  Access to Hardware and Sensors in Android    173

Sensors, Managers, and Other Hardware    173

Sensors    173

Managers    174

Other Hardware    174

Monitoring the Battery    174

Using Sensors to Create a Compass    177

Using the Phone    181

Using the Camera    183

Summary    189

Exercise    190

Part III  Developing the iOS App    191

9  Using Xcode for iOS Development    193

Creating the Xcode Project    193

Project Settings    196

Creating the User Interface    199

Running the App in the Simulator    200

Adding App Behavior    202

Dismissing the Keyboard    205

App Icons and Launch Images    208

Summary    211

Exercises    211

10  iOS Navigation and Interface Design    213

Views and Controllers    213

View Controller    213

Tab Bar Controller    214

Navigation Controller    215

Creating the Interface    215

Creating the Project    215

Creating the Views    216

Design the Contacts Screen    222

Add Navigation Controller for the Date Screen    226

Activating the Interface    230

Summary    233

Exercises    233

11  Persistent Data in iOS    235

File Data Storage    235

User Defaults    236

Core Data    236

Setting Up Core Data    237

Creating the Project    237

Designing Data Structure    241

Passing Data Between Controllers    243

Saving Data to Core Data    248

Storing the Settings    251

Creating the Settings Interface    252

Working with NSUserDefaults Object    256

Activating the Settings Interface    257

Global Constants    259

Summary    262

Exercises    262

12  Tables in iOS: Navigation and Information

Display    263

Overview of Tables    263

Setting Up Tables    265

Populate the Table with Data    265

Retrieve Data from Core Data    269

Adding Contact Data    272

Display Detailed Data    273

Save Changes to Records    276

Deleting Records    277

Accessory Buttons    280

Alert View    281

Show Subtitles in the Table    285

Sort the Table    285

Summary    288

Exercises    288

13  Maps and Location in iOS    289

Overview of Location and Mapping    289

Hardware and Sensors    289

Core Location    290

MapKit    290

Adding Location Information to the App    291

Finding Location    291

Adding a Map    300

Summary    309

Exercises    309

14  Access to Hardware and Sensors in iOS    311

Getting Device Information    311

Monitoring Battery Status    314

Controlling the Camera    317

Calling a Phone Number    324

Long Press Gesture    324

Adding Long Press to Enabled Text Field    326

Using Core Motion for Accelerometer Data    328

Summary    333

Exercises    333

Part IV  Business Issues    335

15  Monetizing Apps    337

App Monetization Strategies    337

Paid Apps    337

Ad Supported Apps    338

In-App Purchases    340

Understanding the Economics of App Stores    341

Owning Your Own Business    342

Create an LLC    342

Plan Your Business    342

Other Income Possibilities    343

Choosing a Platform    343

Summary    345

Exercises    345

16  Publishing Apps    347

App Distribution Through the App/Play Stores    347

Android Play Store Distribution    348

iOS App Store Distribution    351

App Distribution for the Enterprise    353

Android Enterprise Distribution    353

iOS Enterprise Distribution    354

Testing and Fragmentation    354

Keeping Up with the Platform    356

Summary    356

Exercises    357

Part V  Appendixes    359

A  Installing Eclipse and Setup for Android

Development    361

Setting up Java and Eclipse    361

Download and Install Java SE SDK    362

Downloading Eclipse    363

Installing Eclipse on Windows    363

Installing Eclipse on Mac    365

Installing Android    366

Setting Up the Classroom    369

B  Installing Xcode and Registering Physical

Devices    371

Download and Install Xcode    371

Apple Developer Programs    372

Setting Up the Classroom    373

Deploying Apps to Real Devices    373

Creating Developer Accounts    375

Backing Up the Development Certificate    376

Registering Devices    378

Checking the Development Environment    379

C  Introduction to Objective-C    383

A Brief History of Objective-C    383

Two Languages in One    384

Objects and Classes    385

Properties in Detail    394

Declaring and Calling Methods    396

Inheritance and Protocols    397

Memory Management    398

Index    399

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020