Introduction to Android. CSG250 Wireless Networks Fall, 2008

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

Android For Java Developers. Marko Gargenta Marakana

Android Application Development

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

Android Development. Marc Mc Loughlin

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

Jordan Jozwiak November 13, 2011

Chapter 2 Getting Started

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

Android 多 核 心 嵌 入 式 多 媒 體 系 統 設 計 與 實 作

ITG Software Engineering

AndroLIFT: A Tool for Android Application Life Cycles

Android Application Development - Exam Sample

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

Android Basics. Xin Yang

Android Programming and Security

Frameworks & Android. Programmeertechnieken, Tim Cocx

Android Fundamentals 1

Beginner s Android Development Tutorial!

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

Deep Inside Android. OpenExpo Zurich September 25 th, Gilles Printemps - Senior Architect. Copyright 2007 Esmertec AG.

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

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

-Android 2.3 is the most used version of Android on the market today with almost 60% of all Android devices running 2.3 Gingerbread -Winner of

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.

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

Running a Program on an AVD

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

Introduction to Android

1. Introduction to Android

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

ANDROID. Programming basics

OpenCV on Android Platforms

Introduction to Android Development. Jeff Avery CS349, Mar 2013

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

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

Introduction to Android Android Architecture Software Development Purpose of the project Location Based Service (LBS) Android. Location class Google

The power of root on Android emulators

Android Environment SDK

Open Source Telemedicine Android Client Development Introduction

06 Team Project: Android Development Crash Course; Project Introduction

Practical Android Projects Lucas Jordan Pieter Greyling

Introduction to Android

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

Android Environment SDK

Android Geek Night. Application framework

Lecture 1 Introduction to Android

Getting started with Android and App Engine

Introduction to Android Programming (CS5248 Fall 2015)

A Modular Approach to Teaching Mobile APPS Development

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

A Short Introduction to Android

An Introduction to Android

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

Login with Amazon Getting Started Guide for Android. Version 2.0

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Smartphone market share

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

Module Title: Software Development A: Mobile Application Development

Workshop on Android and Applications Development

Android Concepts and Programming TUTORIAL 1

Android Application Development Lecture Notes INDEX

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

An Introduction to Android. Huang Xuguang Database Lab. Inha University

Praktikum Entwicklung Mediensysteme (für Master)

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

Tushar Dalvi Sr. Security Engineer at LinkedIn Penetration Tester. Responsible for securing a large suite mobile apps

CS378 -Mobile Computing. Android Overview and Android Development Environment

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

Android, Bluetooth and MIAC

Allow Installation from Unknown Sources

Mobile Applications Grzegorz Budzyń Lecture. 2: Android Applications

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

How to develop your own app

Università Degli Studi di Parma. Distributed Systems Group. Android Development. Lecture 2 Android Platform. Marco Picone

Homeschool Programming, Inc.

Programming with Android: System Architecture. Dipartimento di Scienze dell Informazione Università di Bologna

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

Android (Basic + Advance) Application Development

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

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

Developing with Android Studio

Android Framework. How to use and extend it

How To Develop An Android App On An Android Device

Mocean Android SDK Developer Guide

Programming with Android

Basics of Android Development 1

Penetration Testing Android Applications

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

Android Java Live and In Action

Fahim Uddin 1. Java SDK

Mobile Application Development 2014

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

Transcription:

Introduction to Android CSG250 Wireless Networks Fall, 2008

Outline Overview of Android Programming basics Tools & Tricks An example Q&A

Android Overview Advanced operating system Complete software stack for fast development (mashups) Open platform Open source Equal opportunities

Customization

Application and Activities Activity Activity ContentProvider Activity Activity ContentProvider Process Service Service Process Process APK Package APK Package

Architecture of Android

Application Building Blocks Activities Views & Widgets Intents Services ContentProvider Notification An Activity is a discrete chunk of functionality. It s typically corresponding to a set of UIs and logics. A View is an object that knows how to draw itself to the screen. Android user interfaces are comprised of trees of Views. Set and respond to notifications or status changes. Can wake up your app. Faceless task that runs in the background Enable applications to share data Enables all applications to display custom alerts in the status bar

Mobile Application Paradigm Be energy efficient Use less RAM Always save the state Avoid Cancel button Minimize certain operations: memory transfers, division, modulus

Application Life Cycle public class Activity extends ApplicationContext { protected void oncreate(); protected void onstart(); protected void onrestart(); protected void onresume(); protected void onpause(); protected void onstop(); } protected void ondestroy();

Data Access Preferences Store and retrieve key/value pairs of primitive data types Files Access files on the device or on a removable storage medium Database (SQLite3) Content Providers Read/write other applications private data Network & Web services Google Data APIs, Calendars, Document, Finance, Picasa Amazon S3 Flickr

Security Model Application signing Self-signed certificates. No need to be signed by a certificate authority Independent user ID for each Android package (.apk) file Persistent storages can be set to private, world readable, or world writeable Applications are running in separate processes. Explicitly declare the permissions for additional capabilities Inter-process communications. (Binder)

Developing Environment Java IDE Android SDK suite Eclipse Plugin Libraries Emulator Tools Dalvik Debug Monitor Service (ddms) Android Debug Bridge (adb) Android Asset Packaging Tool (aapt) Traceview Hierarchy Viewer

Project Structure /project/androidmanifest.xml /src /bin /res/drawable /layout /raw /values /assets

Define UI in XML <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> <TextView android:id="@+id/datedisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/date_widgets_example_datedisplay_text"/> <Button android:id="@+id/pickdate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/date_widgets_example_pickdate_text"/> <Button android:id="@+id/picktime" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/date_widgets_example_picktime_text"/> </LinearLayout>

Develop with Eclipse Plugin

Debug with Eclipse Plugin

TraceView

Hierarchy Viewer

Useful Commands emulator emulator -wipe_data folder: {home}/.android/ emulator -sdcard <file> adb (Android debug bridge) adb install <.apk file> adb uninstall adb push/pull adb shell

Resources API demos Get source http://source.android.com/ Android code page http://code.google.com/android/ Google groups http://groups.google.com/group/android-developers Communities e.g. http://www.anddev.org/ YouTube

Example

Todo List

?? Q&A

References Some of the contents and images are used from others work. http://sites.google.com/site/io/anintroduction-to-android http://sites.google.com/site/io/dalvikvm-internals http://sites.google.com/site/io/insidethe-android-application-framework