Android Application Development



Similar documents
Android Certified Application Developer AND-401

Android Application Development - Exam Sample

Q1. What method you should override to use Android menu system?

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

Android Development. Marc Mc Loughlin

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

Introduction to Android. CSG250 Wireless Networks Fall, 2008

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

How To Develop Android On Your Computer Or Tablet Or Phone

Islamic University of Gaza. Faculty of Engineering. Computer Engineering Department. Mobile Computing ECOM Eng. Wafaa Audah.

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

Introduction to Android Development

Android Developer Fundamental 1

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

1. Introduction to Android

ITG Software Engineering

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

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

Android Basics. Xin Yang

Fahim Uddin 1. Java SDK

Developing NFC Applications on the Android Platform. The Definitive Resource

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

Android For Java Developers. Marko Gargenta Marakana

Introduction to Android Development. Jeff Avery CS349, Mar 2013

Android Setup Phase 2

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

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

Android: Setup Hello, World: Android Edition. due by noon ET on Wed 2/22. Ingredients.

Mobile App Design and Development

OpenCV on Android Platforms

App Development for Smart Devices. Lec #2: Android Tools, Building Applications, and Activities

Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen,

Jordan Jozwiak November 13, 2011

Lab 0 (Setting up your Development Environment) Week 1

Android Development Setup [Revision Date: 02/16/11]

How To Develop An Android App On An Android Device

Hello World. by Elliot Khazon

Beginning Android Programming

Getting Started with Android Development

directory to "d:\myproject\android". Hereafter, I shall denote the android installed directory as

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

Getting Started: Creating a Simple App

The "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.

Mocean Android SDK Developer Guide

Android Development Tools for Eclipse

Running a Program on an AVD

Android Development. 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系

Workshop on Android and Applications Development

Android Java Live and In Action

ANDROID INTRODUCTION TO ANDROID

Basic Android Setup Windows Version

How to Create an Android Application using Eclipse on Windows 7

Login with Amazon Getting Started Guide for Android. Version 2.0

Tutorial on Basic Android Setup

Homeschool Programming, Inc.

l What is Android? l Getting Started l The Emulator l Hello World l ADB l Text to Speech l Other APIs (camera, bitmap, etc)

Homework 9 Android App for Weather Forecast

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

Tutorial on OpenCV for Android Setup

Android Application Development: Hands- On. Dr. Jogesh K. Muppala

Introduction to Android Programming (CS5248 Fall 2015)

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

06 Team Project: Android Development Crash Course; Project Introduction

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

AndroLIFT: A Tool for Android Application Life Cycles

Getting started with Android and App Engine

Android Environment SDK

Mobile Security - Tutorial 1. Beginning Advanced Android Development Brian Ricks Fall 2014

Programming with Android: SDK install and initial setup. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

Android Mobile App Building Tutorial

Android on Intel Course App Development - Advanced

ID TECH UniMag Android SDK User Manual

Practical Android Projects Lucas Jordan Pieter Greyling

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

SDK Quick Start Guide

Developing Android Applications Introduction to Software Engineering Fall Updated 7 October 2015

How To Run A Hello World On Android (Jdk) On A Microsoft Ds.Io (Windows) Or Android Or Android On A Pc Or Android 4 (

INTERMEDIATE ANDROID DEVELOPMENT Course Syllabus

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

Android Application Development

ADT Plugin for Eclipse

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02

Android (Basic + Advance) Application Development

Android Programming and Security

Frameworks & Android. Programmeertechnieken, Tim Cocx

Installing the Android SDK

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

Software Development Environment. Installation Guide

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

Advantages. manage port forwarding, set breakpoints, and view thread and process information directly

Lecture 1 Introduction to Android

Module Title: Software Development A: Mobile Application Development

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

Beginner s Android Development Tutorial!

Introduction to Android SDK Jordi Linares

Transcription:

Android Application Development Self Study Self Study Guide Content: Course Prerequisite Course Content Android SDK Lab Installation Guide Start Training Be Certified Exam sample

Course Prerequisite The prerequisite for this course, the trainee must has good knowledge in Java in the first place, if not, it is recommended to start with the Java fundamentals course, which available in the Android ATC web site, self study tab. 1

Course Contents Lesson 1 Hello Android Framework Introduction ------------------------------------------------------------ 1-2 Creating an Android Project ------------------------------------------------------------ 1-2 Running Your Application ------------------------------------------------------------ 1-5 Components of an Android application ------------------------------------------------------------ 1-9 Application Life-cycle ------------------------------------------------------------ 1-11 Modifying created project ------------------------------------------------------------ 1-13 Change activity s name ------------------------------------------------------------ 1-13 Lab 1 ------------------------------------------------------------ 1-14 Lesson 2 Android SDK Tools and Activity Class Android Software Layers ------------------------------------------------------------ 2-2 Android Libraries ------------------------------------------------------------ 2-4 The Android Manifest File ------------------------------------------------------------ 2-6 Structure of the Manifest File ------------------------------------------------------------ 2-7 Android SDK Tools ------------------------------------------------------------ 2-7 Activity life-cycle through Java ------------------------------------------------------------ 2-10 Create an Activity ------------------------------------------------------------ 2-12 Methods to remember ------------------------------------------------------------ 2-14 Lab 2 ------------------------------------------------------------ 2-15 Lesson 3: ListActivity and ListView Introduction ------------------------------------------------------------ 3-2 Views ------------------------------------------------------------ 3-2 Using Views ------------------------------------------------------------ 3-3 Adding a View to your application ------------------------------------------------------------ 3-3 List Views and List Activity ------------------------------------------------------------ 3-5 Using a ListActivity ------------------------------------------------------------ 3-5 Adding ListView ------------------------------------------------------------ 3-7 Add Event to List Items ------------------------------------------------------------ 3-10 Summary ------------------------------------------------------------ 3-10 Methods to remember ------------------------------------------------------------ 3-11 Lab 3 ------------------------------------------------------------ 3-12 2

Lesson 4 Intents and Intent filters Introduction ------------------------------------------------------------ 4-2 Intents ------------------------------------------------------------ 4-2 Explicit Intents ------------------------------------------------------------ 4-2 Implicit Intents ------------------------------------------------------------ 4-3 Native Android Actions ------------------------------------------------------------ 4-3 Data Transfer ------------------------------------------------------------ 4-4 Intent to Call Activities ------------------------------------------------------------ 4-5 Direct calls ------------------------------------------------------------ 4-5 Sub-activities: Calling Activities for Results ------------------------------------------------------------ 4-5 Register an IntentFilter ------------------------------------------------------------ 4-7 Methods to remember ------------------------------------------------------------ 4-8 Lab 4 ------------------------------------------------------------ 4-9 Lesson 5: Custom Views Introduction ------------------------------------------------------------ 5-2 Different Uses of Customized Views ------------------------------------------------------------ 5-2 Modify Existing Views ------------------------------------------------------------ 5-2 What is in ondraw() ------------------------------------------------------------ 5-5 The full picture ------------------------------------------------------------ 5-6 Lab 5 ------------------------------------------------------------ 5-9 Lesson 6: Dialogs and Toasts Dialogs ------------------------------------------------------------ 6-2 Dialog sub-classes ------------------------------------------------------------ 6-2 Creating dialogs with user-defined layout ------------------------------------------------------------ 6-3 Activities with Dialog Theme ------------------------------------------------------------ 6-7 Toasts ------------------------------------------------------------ 6-8 Methods to remember ------------------------------------------------------------ 6-11 Lab 6 ------------------------------------------------------------ 6-12 Lesson 7: More UI - Options Menu, Context Menu, and WebView Introduction ------------------------------------------------------------ 7-2 Menus ------------------------------------------------------------ 7-2 Handle Select Events ------------------------------------------------------------ 7-6 Sub-menus ------------------------------------------------------------ 7-7 3

Context Menus ------------------------------------------------------------ 7-7 Handling Context Menu Selection ------------------------------------------------------------ 7-9 Additional Menu Item options ------------------------------------------------------------ 7-9 Menu Item Click Listener ------------------------------------------------------------ 7-10 Intents ------------------------------------------------------------ 7-11 WebView ------------------------------------------------------------ 7-11 Methods to remember ------------------------------------------------------------ 7-13 Lab 7 ------------------------------------------------------------ 7-14 Lesson 8: Android Storage: Network, File I/O, and SharedPreferences Android Storage Options ------------------------------------------------------------ 8-2 Connecting to the internet ------------------------------------------------------------ 8-2 File I/O ------------------------------------------------------------ 8-3 Including files as resources ------------------------------------------------------------ 8-3 Shared Preferences ------------------------------------------------------------ 8-4 Retrieving Shared Preferences ------------------------------------------------------------ 8-5 Save activity state ------------------------------------------------------------ 8-6 Lab 8 ------------------------------------------------------------ 8-8 Lesson 9: Android Storage: SQLite and Content Providers Introduction ------------------------------------------------------------ 9-2 SQLite in your application ------------------------------------------------------------ 9-2 SQLite library ------------------------------------------------------------ 9-2 Databases in Android ------------------------------------------------------------ 9-3 Native Android Content Providers ------------------------------------------------------------ 9-6 Methods to remember ------------------------------------------------------------ 9-7 Lab 9 ------------------------------------------------------------ 9-8 Lesson 10: Android Notifications Introduction ------------------------------------------------------------ 10-2 Creating a notification ------------------------------------------------------------ 10-2 Notification actions ------------------------------------------------------------ 10-3 Summary ------------------------------------------------------------ 10-6 Lab 10 ------------------------------------------------------------ 10-8 4

Android SDK Lab Installation Guide Introduction The following is a short guide on how to install all software needed to start your Android development. Lab software include the following: 1. Java SDK This includes the Java virtual machine and development tools, which allows you to compile and run your Java code. 2. Android SDK The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android. 3. Eclipse IDE This is the integrated development environment you need to facilitate your programming task. Google officially provides a set of Eclipse plugins for Android development. 4. Eclipse ADT plugin This is a set of plugins for the Eclipse IDE built to give Android developers a powerful, integrated environment to build Android applications. 5. Download Android SDK Platform and system image for emulator This includes an emulator for any Android version you require, and allows you to test your Android application without the need for a real Android device. 5

Lab setup step by step To fully setup your machine for Android development, you only need to setup two programs. 1. Install the Java SDK compatible with your operating system using the following link: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html a. Click on Accept License Agreement b. Click on the link under Download that conforms to your operating system. Make sure to choose the x86 version if your operating system is 32-bit, or x64 if your operating system is 64-bit. 6

2. All other software components listed above are bundled by android.com in one zipped file (.zip): a. Download it from the following location: http://developer.android.com/sdk/index.html b. Make sure to choose the correct type of your machine (32-bit or 64-bit) before starting the download. c. Click Download the SDK ADT Bundle for Windows 7

d. Once downloaded, unzip the file e. Double click on eclipse.exe 3. You re ready to start Android development Should you have any question or require any additional clarification, you may contact us at: support@androidatc.com 8

Start Training: To start training with this course, you can make order for the self study guide of this book, which includes the lessons with explanation step by step and lab for each lesson, this book will shipping to you during 4 working days and it is cover all topics which mentioned in the previous table of contents. To make book order, come back to the Android ATC web site, then click "Self Study" tab, then click "Book Order", under " Android Application Development", and the payment will be by Visa card, American Express card or PayPal. 9

Be Certified After completing the study materials, you should ready to get international certificate displays that you are Android application developer. You can reserve your exam at nearest Pearson VUE testing center for you, for more information, kindly check : http://www.pearsonvue.com/androidatc The " Android Application Development" exam AND-401 consists of 45 multiple choice questions with 70 % pass score. You can check the exam sample in the next page. 10

Android Certified Application Developer Exam (AND-401) Sample Q1. What method you should override to use Android menu system? A. oncreateoptionsmenu() B. oncreatemenu() C. onmenucreated() D. oncreatecontextmenu() Answer: A Q2. What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML? A. findviewbyreference(int id); B. findviewbyid(int id) C. retrieveresourcebyid(int id) D. findviewbyid(string id) Answer: B Q3. Which of the following is not an Android component (i.e. a point from which the system can enter your application)? A. Service B. Activity C. Layout D. Content Provider Answer: C Q4. What does the following code achieve? Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startactivityforresult(intent); A. Starts a browser activity B. Starts a sub-activity C. Starts an activity service D. Sends results to another activity. Answer: B 11

Q5. When using an implicit intent, what process does the system use to know what to do with it? A. Intent resolution B. Intent declaration C. Intent overloading D. Intent transition Answer: A Q6. Which of the following is NOT true about the MenuItem interface? A. The MenuItem instance will be returned by the Menu class add(...) method. B. MenuItem can decide the Intent issued when clicking menu components. C. MenuItem can display either an icon or text. D. MenuItem can set a checkbox. Answer: B Q7. Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Select Two) A. oncreate > onstart > onresume > onpause> onstop> oncreate B. oncreate > onstart > onresume > onpause> onstop>onrestart C. oncreate > onstart > onresume > onpause> onstop>ondestroy D. oncreate > onstart > onresume > onpause> onstop>onresume Answer: B and C Q8.Consider the following code: Intent i = new Intent(this, MainActivity.class); i.addflags(intent.flag_activity_clear_top); startactivity(i); What best explains the code above? A. The activity being launched is already running in the current task, then instead of launching a new instance of that activity, all of the other activities on top of it will be closed and this Intent will be delivered to the (now on top) old activity as a new Intent. B. Any existing task that would be associated with the activity to be cleared before the activity is started. 12

C. A new Activity will be launched and it will be on the top of the stack D. A new activity will be launched but will be in full-screen mode. Answer: A Q9: Which of the following lines of code is used to pass a value to the next activity? A. Intent i = new Intent(this,newActivity); i.addextra( test ); startactivity(i); B. Intent i = new Intent(this,newActivity); i.putvalue( test ); startactivity(i); C. Intent i = new Intent(this,newActivity); i.putvalue( value1, test ); startactivity(i); D.Intent i = new Intent(this,newActivity); i.putextra( value1, test ); startactivity(i); Answer: D 13