«compl*tc IDIOT'S GUIDE. Android App. Development. by Christopher Froehlich ALPHA. A member of Penguin Group (USA) Inc.



Similar documents
COURSE CONTENT. GETTING STARTED Select Android Version Create RUN Configuration Create Your First Android Activity List of basic sample programs

Here to take you beyond Mobile Application development using Android Course details

Developer's Cookbook. Building Applications with. The Android. the Android SDK. A Addison-Wesley. James Steele Nelson To

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

1. Introduction to Android

Table of Contents. Adding Build Targets to the SDK 8 The Android Developer Tools (ADT) Plug-in for Eclipse 9

ANDROID INTRODUCTION TO ANDROID

ITG Software Engineering

Module Title: Software Development A: Mobile Application Development

Des Moines Area Community College

Getting Started with Android Programming (5 days) with Android 4.3 Jelly Bean

INTERMEDIATE ANDROID DEVELOPMENT Course Syllabus

Mobility Introduction Android. Duration 16 Working days Start Date 1 st Oct 2013

Practical Android Projects Lucas Jordan Pieter Greyling

Android in Action. Second Edition. Revised Edition of Unlocking Android MANNING. (74 w. long.) W. FRANK ABLESON CHRIS KING ROBI SEN.

Wiley Publishing, Inc.

CS 528 Mobile and Ubiquitous Computing Lecture 2: Android Introduction and Setup. Emmanuel Agu

Android (Basic + Advance) Application Development

Mobile App Design and Development

Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months

Introduction to Android: Hello, Android! 26 Mar 2010 CMPT166 Dr. Sean Ho Trinity Western University

Running a Program on an AVD

Workshop on Android and Applications Development

CHAPTER 1: INTRODUCTION TO ANDROID, MOBILE DEVICES, AND THE MARKETPLACE

[PACKTl. Flash Development for Android Cookbook. Flash, Flex, and AIR. Joseph Labrecque. Over 90 recipes to build exciting Android applications with

Introduction to Android

4 Application Development

Android Application Development Distance Learning Program Brochure

ANDROID TRAINING COURSE MODULES. Module-I: Introduction to Android. Introducing Android. Installing Development Tools. Using the Emulator.

Android Application Development

City of Dublin Education & Training Board. Programme Module for. Mobile Technologies. leading to. Level 6 FETAC. Mobile Technologies 6N0734

ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I)

Application Development

Java 7 Recipes. Freddy Guime. vk» (,\['«** g!p#« Carl Dea. Josh Juneau. John O'Conner

Homeschool Programming, Inc.

Cookbook. Flash ios Apps. Christopher Caleb. 100 practical recipes for developing ios apps with Flash Professional and Adobe AIR PUBLISHING MUMBAI

Android Application Development Lecture Notes INDEX

Università Degli Studi di Parma. Distributed Systems Group. Android Development. Lecture 1 Android SDK & Development Environment. Marco Picone

Android Basics. Xin Yang

Lecture 1 Introduction to Android

CS378 -Mobile Computing. Android Overview and Android Development Environment

Google Android Syllabus

Jordan Jozwiak November 13, 2011

Android Application Development

Expert Android Apps Development

QUALIFICATIONS PACK - OCCUPATIONAL STANDARDS FOR TELECOM INDUSTRY. SECTOR:TELECOM SUB-SECTOR: Handset (Terminal Applications) REFERENCE ID: TEL/Q2300

Mobile Phones Operating Systems

INFORMATION BROCHURE

Android Developer Fundamental 1

Programming with Android

Android Development. Lecture AD 0 Android SDK & Development Environment. Università degli Studi di Parma. Mobile Application Development

Running Android Applications on BlackBerry 10 developer.blackberry.com/android

HTML5 Applications Made Easy on Tizen IVI. Brian Jones / Jimmy Huang

Development. SriSeshaa Technologies. Table of Contents

An Introduction to Android Application Development. Serdar Akın, Haluk Tüfekçi

Introduction to Android

Building an Android client. Rohit Nayak Talentica Software

DEVELOPING MOBILE APPLICATIONS USING ANDROID

Getting started with Android and App Engine

Developing Android Apps for BlackBerry 10. JAM854 Mike Zhou- Developer Evangelist, APAC Nov 30, 2012

Reminders. Lab opens from today. Many students want to use the extra I/O pins on

Introduction to Tizen SDK Alpha. Taiho Choi Samsung Electronics

Mobile application testing is a process by which application software developed for hand held mobile devices is tested for its functionality,

Software development. Development requirements. Java. Android SDK. Eclipse IDE (optional)

Android Development Exercises Version Hands On Exercises for. Android Development. v

Beginning Nokia Apps. Development. Qt and HTIVIL5 for Symbian and MeeGo. Ray Rischpater. Apress. Daniel Zucker

2. About iphone ios 5 Development Essentials. 5. Joining the Apple ios Developer Program

Graduate presentation for CSCI By Janakiram Vantipalli ( Janakiram.vantipalli@colorado.edu )

Android Architecture. Alexandra Harrison & Jake Saxton

Priority Based Pre-emptive Task Scheduling for Android Operating System

Android Application Development. Daniel Switkin Senior Software Engineer, Google Inc.

for Java developers Building Mobile Applications Introduction 1 Building Mobile Applications

01. Introduction of Android

Технологии Java. Android: Введение. Кузнецов Андрей Николаевич. Санкт-Петербургский Государственный Политехнический Университет

Beginning BlackBerry 7

TUTORIALS AND QUIZ ANDROID APPLICATION SANDEEP REDDY PAKKER. B. Tech in Aurora's Engineering College, 2013 A REPORT

Mobile Application Development 2014

Introduction to Android Development. Ed Burnette

Basic Features. In the Phone application. Making a call. Answer or divert calls

Android Certified Application Developer AND-401

Developing and deploying mobile apps

Android 5.0: Lollipop OS

Introduction to Android. Sean Sullivan October 27, 2008

Beginning Android Programming

ANDROID OPERATING SYSTEM

INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 02/15/2011

Professional Tizen Application Development

Point of View Mobii Android 4.2 Tablet PC. General notices for use... 2 Disclaimer... 2 Box Contents... 2

ANDROID BASED MOBILE APPLICATION DEVELOPMENT and its SECURITY

Cisco Cius Development Guide Version 1.0 September 30, 2010

ICAPRG601A Develop advanced mobile multi-touch applications

Memento: Personal Scrapbook Android Application

Introduction to Android. CSG250 Wireless Networks Fall, 2008

Development. Wiley Publishing, Inc. BUILDING APPLICATIONS AND GAMES USING. Christopher Fairbairn VISUAL STUDIO, SILVERLIGHT, AND XNA.

Screen Design : Navigation, Windows, Controls, Text,

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

Chapter 1. Introduction to ios Development. Objectives: Touch on the history of ios and the devices that support this operating system.

Android Application Development - Exam Sample

Praktikum Entwicklung Mediensysteme (für Master)

Transcription:

«compl*tc IDIOT'S GUIDE Android App Development by Christopher Froehlich A ALPHA A member of Penguin Group (USA) Inc.

Contents Part 1: Getting Started 1 1 An Open Invitation 3 Starting from Scratch 3 Software 4 Programming Experience 4 Selecting Your Development Environment 5 Varieties of Devices 6 Selecting a Platform V Device Restrictions 8 Forward Thinking and Backwards Compatibility 9 Assembling Your Toolkit 9 Java 10 Eclipse IDE for Java Developers 10 Android SDK U The ADTPluginfor Eclipse 12 Registeringfor the Android Market 14 2 Building for Android 15 Android Development Overview 15 Introduction to Eclipse 16 The Role of the Android SDK 18 Starting Your First Project 18 Creating the Project Files 19 Inside Your Project 21 Setting Your Preferences 22 Aloha, Android 24 Meet the Emulator 25 Debugging with the Emulator 27 Making the Device Connection 28 3 Crafting the Layout 31 Application Fundamentals 32 Reintroducing the Recipe App 34 Out the Welcome Screen 34 Laying Expanding Your View 40 Formattingfor All Displays 46 Your Icon 47 Introducing Your First Error 49

iv The Complete Idiot's Guide to Android App Development ^ 4 Finding More Activities ^ Improving Your Recipe App ^ Introduction to Refactoring About Vow App $6 Updating the Android Manifest $8 Adding an Activity. $9 Creating the Layout Putting It Together 62 Styling Your 65 App Selecting a Theme 65 Rolling Your Own Style 67 Polishing Your App 68 Adding a Menu 68 Storing Some Settings. 71 Quitting Time 75 5 Programming for Android 77 What Is Java? 77 Object Oriented Programming Review 78 The Java Virtual Machine 79 The Front of an Android Application Activities Views, 80 80 82 Behind the Scenes 86 Intents 86 Intent Filters 88 Background Receivers 89 Part 2: Constructing Your Application 91 6 Resources and Animation 93 The Splash View 93 Assemble the View 94 Colors and Dimensions 96 Ready, Set, Animate 99 Method Acting 101 2D Graphics Overview 106 Working with Dratvables 107 Using Shapes. 107

Contents v 7 Building Input and Output HI Making a New Recipe EditText and Other Widgets HI 112 Deep Nested Views 115 Working with ListViews 120 Inflating the Layout 120 FromXML to Java 123 Simplify the Interface with TabHosts 127 Toast Feedback 131 8 Storing and Retrieving Data 135 Storage Overview 135 SbaredPreferences 136 Internal Storage 138 External Data 140 Saving a New Recipe 140 Retrieving SbaredPreferences 141 Storing Input as SbaredPreferences 148 Manage Your Recipes 151 9 Search for It 157 Search Basics 157 Create the Configuration 159 Define a Searchable Activity 161 Build the Search Activity 162 Providing the Search Option 165 Voice Search 166 More Search Options 167 10 From Widgets to the Browser 169 Widgets and Dialogs 169 Constructing a Dialog 171 Dates and Times 173 More Widgets and Controls 176 Integrating the Browser 179 Opening the Web Page 180 Linkify 1%2 Embedding the Browser 183

vi The Complete Idiot's Guide to Android App Development Part 3: Make the Most of the Hardware 189 11 Cameras and Media 191 Introduction to Multimedia on Android 191 Incorporating the Camera into Your App 193 Prepare the SurfaceView 193 Working Capturing the Camera Class 195 the Photo 197 Recording Video 198 Accessing Stored Photos 200 Embedding Audio or Video 201 Using the Microphone 202 12 Location-Based Services 205 Introduction to Android Sensors and Receivers 205 Location, Location 207 Location Services 208 Consider Accuracy and the Battery 212 Emulator Limitations 213 Sense and Sensors 214 Reading a Sensor 215 Sensor Data 218 Integrate Maps 219 Registerfor Google Maps Access 219 Working with Google Maps 220 13 3D Graphics and Animation 225 Introduction to 3D Graphics 225 OpenGL Basics 226 Drawing an Activity 228 Model Objects 230 The Cube 230 Moving the Cube in 3D 233 14 Core Services 239 Overview of Android Hardware 239 The Phone Itself 240 Working with Calls 241 Send SMS and MMS Messages 245

Contents vii Network Interfaces 247 Wi-Fi vs. 3G 248 Wi-Fi 250 Working with Bluetooth 251 Part 4: Increasing Your Application Scope 259 15 A Touch of Locale 261 Localization 261 Managing Resources 262 Alternate Resources 264 Performing Translation in Code 267 Runtime Changes 270 Efficiently Rotating the Screen 272 Manually Manage Configuration Changes 273 Multi-Touch 274 MotionBvents 275 Build Your Own Gestures 277 16 Threads and the Background 283 What Are Threads? 283 About Processes. 285 Working with Asy?jcTask 286 Dispatching Threads 290 Services 293 The Service Life Cycle 294 Building a Basic Service 294 Using Notifications 297 17 SQL and Databases 301 SQL at a Glance 301 Intro to SQLite 304 Building the Helper Class 305 Database Interaction 307 More SQL Detail 310 Bring the Data into View 311 Additional SQLite Tools 315

viii The Complete Idiot's Guide to Android App Development 18 ContentProviders 319 Introduction to ContentProviders 319 Provider Syntax. Requesting Data from a ContentProvider 322 Building Your Own Provider 323 Prepare the Class.., ^24 Implement the Methods 326 Provider Permissions and the Manifest 330 Part 5: Taking Your App to Market 333 19 Comprehensive Debugging 335 Logging 335 Debugging Your App 338 The Debug Perspective 339 Advanced Logging-with Tracevievi 340 Switching to the DDMS Perspective 341 Debugging with Dev Took 343 20 Testing Your Apps 345 The Good News 345 Build a Testing Plan 346 Selecting Your Targets 341 Working ivith Multiple Versions ofandroid 348 Methods Change 350 Be Mindful of the Future 352 And More Tests 353 21 App Markets and Beyond 355 Available Android Markets 355 Welcome to the Android Market 357 Registering Your Accounts 557 App Preparation 358 Certification 360 And Release! 362 Next Steps 364 Advertising 365 The Next Generation 366 Keep in Touch 366

Contents ix Appendixes A Glossary. 369 B Resources, References, and Useful Websites...375 Index 379