INTRODUCTION TO PROGRAMMING FOR ANDROID– GTMC1

Course Description

The main focus of this course is to teach students how to develop the GUI for an Android based application. This course is ideal for Java developers to get a quick entry into the Android platform.

^^

Duration

2 days

^^

Target Audience

This course is suitable for Developers and architects who will be developing applications for Android devices.

^^

Course Prerequisites

Basic knowledge of Java is required to join this course. These skills are taught in the course below. Familiarity with Eclipse is a plus but not necessary.

If you have any questions or doubts as to whether you meet the pre-requisites for this course, or indeed are wondering which course best suits you, please consult with us to discuss your suitability for course attendance.

^^

Suggested Follow on Courses

Please contact us for further details.

^^

Course Content

 1. INTRODUCTION TO ANDROID

What is Android?

A Short History

Advantages of Android

Disadvantages of Android

Q3 2011 Global Sales Figures

2011 US Only Market Share

Android Carriers

References

2. THE ARCHITECTURE OF ANDROID

Key Components Stack

The Kernel

Libraries

The Dalvik JVM

Application Framework

Applications

3. THE DEVELOPMENT ENVIRONMENT

What Do We Need?

Setting Up the SDK

Install Eclipse Plugin

Create a Virtual Device

Creating a Project

Running Your Application

Android Hardware Buttons

Run Configuration

Debugging an Application

Using Third Party JAR

Creating Reusable Library

Dalvik Debug Monitor Server (DDMS)

DDMS Tools in Eclipse

The Console Views

Developing for Multiple Android Versions

4. APPLICATION FUNDAMENTALS

Recapping The Basics

Packaging an Application

Application Reusability Architecture

The Manifest File

Activity

Creating an Activity Class

Activity Lifecycle

Launching an Activity

Pausing and Stopping an Activity

Destroying an Activity

Saving State

Creating Views

Registering an Activity

The Default Activity

Process Lifecycle

The Application Class

The Application Context

5. BASIC GUI PROGRAMMING

The Fundamentals

View Hierarchy

Creating Views Programmatically

Creating View in XML Layout

More on XML Layout

Common Programming Tasks with Views

TextView and EditText

Button

CheckBox

RadioButton and RadioGroup

ToggleButton

ImageView

RatingBar

 

6. LAYOUT MANAGEMENT

Background

LinearLayout

LinearLayout Orientation

match_parent (fill_parent) Example

Layout Gravity

Weight

TableLayout

Managing the Width

RelativeLayout

RelativeLayout Example

ScrollView

HorizontalScrollView

7. RESOURCE MANAGEMENT AND LOCALIZATION

Introduction

Main Types of Resources

Defining Value Resources

Defining String Arrays

Creating Image Resource

Alternate Resource Folders

Alternate Folder Name Rules

How Android Finds Resources

Dealing with Screen Orientation

Orientation Change and Activity Lifecycle

Developing for Tablets

Basics of Localization

Testing for Localization

Loading Localized String from Code

8. INTENTS AND INTENT FILTERS

What is an Intent?

The android.content.Intent Class

Explicitly Specifying Component’s Class

Example: An Activity Launching Another Activity

Implicit Target Component Specification

Intent Filters

Data Type Filter

Action Name

Category Name

Hint Matching Logic

Example Hint Matching – 1

Example Hint Matching – 2

Default Component of an Application

Starting an Activity

Getting Output from Activity

Example of Launcher: ActivityA

Example of Launched: ActivityB

Pending Intent

9. APPLICATION MENU

Introduction

Defining Menu Items

Menu XML File

Option Menu

Populating Menu Items from Resource

Manipulating Menu Items

Handling Menu Item Click Event

Context Menu

Showing a Context Menu

Handling Context Menu Item Click

^^

See more Mobile Computing courses