Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 18

Android - Hands On Lab

By: Chaitanya Chandurkar Sumit Raghani

Agenda
Introduction to Android Operating System. Development Tools. Android MVC Architecture. Revising Java Basics. Hello World App. Views and Layouts. Coding Tap Me Game. Coding Notification Manager. Coding Calculator App.

Introduction
Mobile OS based on a modified version of Linux. Open Source and free. Sections:
1. 2. 3. 4. 5. Linux kernel 2.6 Core System Services Support Libraries Code Providing supports. SQLite, WebKit Android Runtime DVM (Dalvik Virtual Machine) Application framework - Use capabilities on Android OS Applications Top Level

Development Tools
Java Development Kit (JDK)
JDK 1.6 is strongly recommended

Eclipse IDE
Eclipse IDE version 4.2.0 (Juno).

Android SDK:
The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android. SDK Rev 20.0.1

Android MVC Architecture

Hello World

Application Design

Application Design

Application Design : File Structure


src - Contains all Java files. Source File gen - Auto Generated Java Files assets - External Files. Sound Files, Databases bin Compiled Libraries and APK file libs Support Libraries res Resource Files
Drawable Images and Icons. Layout Activity Design. Menu Menus Items. Values Common values to be accessed in all java files.

Manifest File Android Configuration File

Let us begin coding.

Tap Me Game

Tap Me Game (Contd.)


Requirement
1. Count Down Timer
2. 2 TextViews (Score and Timer)

3. 2 Buttons (Tap and Stop/Start)


4. boolean flag (isGameStarted)

Notification Manager
Practical Session

Calculator App
Practical Session

Reference

developer.android.com

Thank You !!

Any Questions ?

You might also like