Understand and Build Android Programming Environment. Presented by: Che-Wei Chang



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

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

Hello World. by Elliot Khazon

Fahim Uddin 1. Java SDK

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

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

Introduction to Android

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

1) SETUP ANDROID STUDIO

Mobile Operating Systems. Week I

How to Create an Android Application using Eclipse on Windows 7

Getting Started with Android Development

International Engineering Journal For Research & Development

Lab 0 (Setting up your Development Environment) Week 1

Introduction to Android

Example of Standard API

Workshop on Android and Applications Development

Installing the Android SDK

An Introduction to Android

Friendly ARM MINI2440 & Dalvik Virtual Machine with Android

With a single download, the ADT Bundle includes everything you need to begin developing apps:

Epidefender Studio Installation notice

Running a Program on an AVD

Introduction to Android

Overview of CS 282 & Android

Mobile Devices - An Introduction to the Android Operating Environment. Design, Architecture, and Performance Implications

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

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)

01. Introduction of Android

What else can you do with Android? Inside Android. Chris Simmonds. Embedded Linux Conference Europe Copyright 2010, 2net Limited.

Android Environment SDK

Application Development Setup Guide

341 - Bioinformatics Android Coursework

Tutorial on Basic Android Setup

GETTING STARTED WITH ANDROID DEVELOPMENT FOR EMBEDDED SYSTEMS

Download and Installation Instructions. Android SDK and Android Development Tools (ADT) Microsoft Windows

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 (

How to build your first Android Application in Windows

Building graphic-rich and better performing native applications. Pro. Android C++ with the NDK. Onur Cinar

CS378 -Mobile Computing. Android Overview and Android Development Environment

4.1 Introduction 4.2 Explain the purpose of an operating system Describe characteristics of modern operating systems Control Hardware Access

ANDROID OPERATING SYSTEM

Module Title: Software Development A: Mobile Application Development

Issues in Android on Mobile Platform and Their Resolution

Download and Installation Instructions. Android SDK and Android Development Tools (ADT)

Android Basics. Xin Yang

Practical Android Projects Lucas Jordan Pieter Greyling

Example Connection between USB Host and Android

About this Release. Introduction. Prerequisites. Installation. Using the Web SDK Packager

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

Android Programming and Security

ADT Plugin for Eclipse

Android-based Java Programming for Mobile Phone LED Control

Android 4.4 App Development Essentials

A Modular Approach to Teaching Mobile APPS Development

Lecture 1 Introduction to Android

Notes and terms of conditions. Vendor shall note the following terms and conditions/ information before they submit their quote.

Android Setup Phase 2

farmerswife Contents Hourline Display Lists 1.1 Server Application 1.2 Client Application farmerswife.com

Intel Application Software Development Tool Suite 2.2 for Intel Atom processor. In-Depth

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

Android Tutorial. Larry Walters OOSE Fall 2011

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

Robotium Automated Testing for Android

1/5/2013. Technology in Action

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

How To Develop An Android App On An Android Device

ITG Software Engineering

Chapter 14 Virtual Machines

Android Development. Marc Mc Loughlin

Technology in Action. Alan Evans Kendall Martin Mary Anne Poatsy. Eleventh Edition. Copyright 2015 Pearson Education, Inc.

Mobile Devices - An Introduction to the Android Operating Environment. Design, Architecture, and Performance Implications

Virtualization: Hypervisors for Embedded and Safe Systems. Hanspeter Vogel Triadem Solutions AG

Android Architecture. Alexandra Harrison & Jake Saxton

Android Development: Part One

Lecture 3 Mobile App Development (Android, ios, BlackBerry, Windows Mobile) <lecturer, date>

Smartphone market share

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

Android Development Tutorial. Nikhil Yadav CSE40816/ Pervasive Health Fall 2011

Basic Android Setup Windows Version

STLinux Software development environment

Introduction to Android Development. Jeff Avery CS349, Mar 2013

Mobile Phones Operating Systems

How To Develop For A Powergen 2.2 (Tegra) With Nsight) And Gbd (Gbd) On A Quadriplegic (Powergen) Powergen Powergen 3

Basics. Bruce Crawford Global Solutions Manager

Chapter 2 System Structures

PARALLELS SERVER 4 BARE METAL README

Introduction to Android

How To Write A Test Drive For Kaspersky Anti Virus 6.0 For Windows Server (For Windows)

Intel Integrated Native Developer Experience (INDE): IDE Integration for Android*

Five standard procedures for building the android system. Figure1. Procedures for building android embedded systems

VMware Server 2.0 Essentials. Virtualization Deployment and Management

How to Set Up Your PC for Android Application Development

To ensure you have the appropriate equipment and settings please review the following: Software and Hardware Recommendations.

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

ORACLE BUSINESS INTELLIGENCE WORKSHOP. Prerequisites for Oracle BI Workshop

Android Operating System

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Linux Basics

Introduction to Android Programming (CS5248 Fall 2015)

Hacking your Droid ADITYA GUPTA

Transcription:

Real Time System Project 1 Understand and Build Android Programming Environment Advisor: Prof. Tei-Wei i Kuo Presented by: Che-Wei Chang

Outline Introduction to Android Framework What is Android Android Framework Analysis Energy Saving over Android Platform Dynamic Power Management Dynamic Voltage Scaling Instructions to Install Android Tool Chain Step by Step Installation Configuration of Android Software Development Kit Project Requirements Report Format Submission Rules 2

Introduction to Android An Open Software Platform for Mobile Development An Open Handset Alliance Project Based on the Linux Kernel Fast Application Development in Java Ranked First Among All Smartphone OS Handsets Sold in the U.S. in the Second Quarter of 2010, at 33% 3 http://en.wikipedia.org/wiki/android_(operating_system)

4 Android Framework

Linux Kernel and Libraries The Linux Kernel Work as the Hardware Abstraction Layer (HAL) Provide hardware device drivers Provide the essential operating system functionality Android Libraries Include multimedia framework Handle GUI windows Provide light-weight programming libraries Support 2D and 3D graphics 5 http://en.wikipedia.org/wiki/dalvik_(software)

Android Runtime and Application Framework Dalvik Virtual Machine and Core Libraries Android applications are converted into the compact Dalvik Executable DVM is designed d to be suitable for systems that are constrained in terms of memory and processor speed The VM was slimmed down to use less space Application Framework Provide API interface Manage application lifecycle 6

Outline Introduction to Android Framework What is Android Android Framework Analysis Energy Saving over Android Platform Dynamic Power Management Dynamic Voltage Scaling Instructions to Install Android Tool Chain Step by Step Installation Configuration of Android Software Development Kit Project Requirements Report Format Submission Rules 7

Power Consumption of Android Platforms Real-time scheduling technology provides intelligent solutions for energy-efficient designs Provide dynamic power management for peripherals and dynamic voltage scheduling for the microprocessor in an intelligent way to prolong the lifespan of mobile devices without violation of any quality-of-service requirements. Unit: ma 8 http://rockthearth.blogspot.com/2009/04/power-consumption-of-t-mobile-g1.html

9 Power Monitor

Dynamic Power Management (DPM) Ideas Dynamically scale the power level of peripheral devices Eliminate unnecessary power dissipation with minimum performance degradationd Power level switching overheads Energy Delay Active/Standby Sleep Active Sleep Active Sleep Active Sleep Time 10

Power Model - Backlight Switch Overhead Switching every 5 seconds Level 0.05 1.00 11

Power Model 3G 3G off (air mode) 3G on (working at 24 KBps) 3G on (idle) 12

Power Model - 3G (cont.) idle to work work stable idle off to on off idle idle idle to off (5s) off 13

Dynamic Voltage Scaling (DVS) Ideas Dynamically scale down the processor frequency to fit current workloads 14

Power Model - CPU System Idle Level Frequency 1 19.2MHz 2 122.88MHz 40mA ~ 60mA 3 128MHz 4 245.76MHz 5 384MHz 6 528MHz 15

Power Model CPU (cont.) 100mA ~ 155mA System runs with a busy thread. Level Current (ma) 1 100 ~ 112 2 100 ~ 112 3 125 112mA ~ 155mA 4 135 5 143 6 155 16

Outline Introduction to Android Framework What is Android Android Framework Analysis Energy Saving over Android Platform Dynamic Power Management Dynamic Voltage Scaling Instructions to Install Android Tool Chain Step by Step Installation Configuration of Android Software Development Kit Project Requirements Report Format Submission Rules 17

Quick Start for Android Developers Prepare Your Development Computer Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64- bit) Mac OS X 10.5.8 or later (x86 only) Linux (tested t on Linux Ubuntu Hardy Heron) 64-bit distributions must be capable of running 32-bit applications Download and Install the SDK Starter Package Unpack the starter package to a safe location and then add the location to your PATH Install the ADT Plugin for Eclipse Set up a remote update site at https://dl-ssl.google.com/android/eclipse/ Add Android Platforms and Other Components to Your SDK Execute SDK Setup.exe 18 http://developer.android.com/sdk/index.html

Set Up Android SDK Download the SDK from: http://developer.android.com/sdk/index.html Unpack Package Set PATH Append your SDK path 19

Install Android SDK Execute SDK Manager in the root directory of Android SDK Select all packages to be installed Create virtual devices 20

Install the ADT Plugin for Eclipse Install JDK Version 6 Install Eclipse 3.5 Galileo Open Eclipse ->Help ->Install New Software -> Add Android Development Tools (ADT) by link https://dlssl.google.com/android/eclipse/ 21

Set SDK Path for Eclipse Eclipse -> Window-> Preferences 22

Open an Android Project Set SDK Path for Eclipse Restart Eclipse if it is necessary Create an Android project: New-> Project -> Android Project 23

Eclipse Setting Set the Deployment Target Selection (optional) Run-> Run Configurations-> Target -> Manual Run as-> Android Application 24

Outline Introduction to Android Framework What is Android Android Framework Analysis Energy Saving over Android Platform Dynamic Power Management Dynamic Voltage Scaling Instructions to Install Android Tool Chain Step by Step Installation Configuration of Android Software Development Kit Project Requirements Report Format Submission Rules 25

RTS Project 1 Write an Android program to show only RTS project1 by your-student-id on an Android emulator (version 1.5) Read an Android report and summary it 26

Project Requirement You should have two parts in your report Tool chain installation and coding Your step by step Your problem and solution Any other testing Your references Android survey report You can read anything thing about Android (including technique reports, news, research papers, forum articles, ) Show the major ideas of the report (it could be a table, an experimental result, an observation, ) Summary the report (with your words) within 1/3 of an A4 page 27

Bonus Install the tool chain on more than one kind of operating system (3) Implementation an Android application which play a audio file, and the audio file say RTS project1 by yourstudent-id (10) Any other interesting things (the Maximum total bonus credit is 15) 28

Submission Just the report You report should be opened by MS Office or PDF Reader The report is limited to three pages Total email size should be less than 6MB If you have any bonus, make sure TA can reproduce your result There are only Window XP 32bit, Window 7 64bit, Ubuntu 10.10 (32bit and 64bit) and Mac Snowleopard Email your project tto TA<f95093@ <f95093@csie.ntu.edu.tw> t with the email title: [RTS Project1] FullStudentID_YourName TA will reply you in one day if TA has received your submission For the delayed dl dsubmission, i deduct dd ttwo points it for each hday The deadline is two weeks later (2010/11/03 15:00) Note: when you have any question about this project Write an email to ask TA <f95093@csie.ntu.edu.tw> at any time, or Come to Room 440 during TA hours RTS TA is not a human debugger!

References Wiki: Android Wiki: Open Handset Alliance Wiki: Dalvik Android Developer: http://developer.android.com/sdk/index.html p Power Consumption Table: http://rockthearth.blogspot.com/2009/04/power- p p consumption-of-t-mobile-g1.html 30