How To Develop Android On Your Computer Or Tablet Or Phone

Similar documents
OpenCV on Android Platforms

Android Application Development

Running a Program on an AVD

Introduction to Android Development. Jeff Avery CS349, Mar 2013

Developing NFC Applications on the Android Platform. The Definitive Resource

Android Development. Marc Mc Loughlin

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

Introduction to Android Programming (CS5248 Fall 2015)

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

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

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)

Chapter 2 Getting Started

Frameworks & Android. Programmeertechnieken, Tim Cocx

Mobile Application Development 2014

How to develop your own app

Introduction to Android. CSG250 Wireless Networks Fall, 2008

Android Programming and Security

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

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

Android Developer Fundamental 1

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

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

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

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

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

Basics of Android Development 1

Open Source Telemedicine Android Client Development Introduction

An Introduction to Android

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

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

Android Tutorial. Larry Walters OOSE Fall 2011

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

Android For Java Developers. Marko Gargenta Marakana

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

Android Setup Phase 2

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

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

TEGRA X1 DEVELOPER TOOLS SEBASTIEN DOMINE, SR. DIRECTOR SW ENGINEERING

Android Geek Night. Application framework

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

Getting Started with Android Development

Introduction to Android

Android Basics. Xin Yang

Android Programming: Installation, Setup, and Getting Started

NVIDIA Tegra Android Platform Support Pack Getting Started Guide

Tutorial on Basic Android Setup

Developing In Eclipse, with ADT

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

Android Environment SDK

Introduction to NaviGenie SDK Client API for Android

ANDROID DEVELOPER TOOLS TRAINING GTC Sébastien Dominé, NVIDIA

Lab 0 (Setting up your Development Environment) Week 1

Android, Bluetooth and MIAC

BogDan Vatra and Andy Gryc. Qt on Android: Is it right for you?

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

ADT Plugin for Eclipse

Android Development: Part One

Development_Setting. Step I: Create an Android Project

How To Develop An Android App On An Android Device

ANDROID APP DEVELOPMENT: AN INTRODUCTION CSCI /19/14 HANNAH MILLER

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

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

ITG Software Engineering

Getting started with Android and App Engine

Homework 9 Android App for Weather Forecast

Take full advantage of IBM s IDEs for end- to- end mobile development

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

Getting Started: Creating a Simple App

Tutorial: Packaging your server build

Software Development Environment. Installation Guide

Android Environment SDK

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

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

eggon SDK for ios 7 Integration Instructions

01. Introduction of Android

Jordan Jozwiak November 13, 2011

IOTIVITY AND EMBEDDED LINUX SUPPORT. Kishen Maloor Intel Open Source Technology Center

Overview. The Android operating system is like a cake consisting of various layers.

Using Intel C++ Compiler in Eclipse* for Embedded Linux* targets

Android: How To. Thanks. Aman Nijhawan

-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

Python for Series 60 Platform

IOIO for Android Beginners Guide Introduction

Fahim Uddin 1. Java SDK

Smartphone market share

Android Security Evaluation Framework

Mobile Application Development

Introduction to Android

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

Board also Supports MicroBridge

Published: SWD

System Reference 2013

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

Module Title: Software Development A: Mobile Application Development

Hacking your Droid ADITYA GUPTA

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

4. The Android System

Admin. Mobile Software Development Framework: Android Activity, View/ViewGroup, External Resources. Recap: TinyOS. Recap: J2ME Framework

Transcription:

AN INTRODUCTION TO ANDROID DEVELOPMENT CS231M Alejandro Troccoli

Outline Overview of the Android Operating System Development tools Deploying application packages Step-by-step application development

The Android ecosystem An open source platform for mobile, embedded and wearable devices Google is the principle maintainer Other companies contribute to the system. Each device manufacturer can customize Android to suite their needs

Android architecture User applications Use Java framework and, optionally, native code. Android framework Java classes under com.android Native framework layer User mode C, C++ code compiled to native platform or 32bit compatibility mode on 64 bits. Linux Kernel (GPL license) C code compiled to native platform (x86, arm, mips)

Android versioning Plaform version 5.0 Lollipop 4.4 KitKat Framework API level SDK compatibility Each platform version has an API level NDK API level API level for native headers Distribution http://developer.android.com/about/dashboards/index.html

Browsing the Android Source Source at: https://android.googlesource.com/ Porting instructions (for system developers) https://source.android.com/devices/index.html

Reference to the framework APIs com.android classes http://developer.android.com/reference/packages.html

Outline Overview of the Android Operating System Development tools Deploying application packages Step-by-step application development

Tools for application development Android SDK Provides the Java framework classes Compiles to java bytecode Class framework is updated with every OS release Android NDK C/C++ toolchain for compiling to machine code Android platform tools adb (android debug bridge) : runs and debugs apps from your dev machine Android developer tools Eclipse plug-in for Android Android studio (doesn t yet fully support all NDK features)

Setup options Tegra Android Development pack Install components manually Use a Linux virtual machine with the tools pre-installed.

Tegra Android Development Pack

Tegra Android Development Pack Register for an account at: https://developer.nvidia.com/user/register Sign-up for Gameworks Registered Developer Program

NVIDIA Shield Tablet Click 7 times to enable developer options

Outline Overview of the Android Operating System Development tools Deploying application packages Step-by-step application development

Application packages.apk files: compressed files class byte code resources( icons, sounds, etc). Binary native files All.apks are signed Default development key is created by SDK. When updating an application, signature are checked.

Installing an application From application distribution markets Google Play Amazon AppStore From your local computer using adb

Enabling android debug bridge (adb)

Useful adb commands

Outline Overview of the Android Operating System Development tools Deploying application packages Step-by-step application development

Hello Android! In Eclipse File -> New -> Android Application Project

Hello Android!

Hello Android!

Import an project from existing code

AndroidManifest.xml Package Name / version Required SDK and target SDK Application/Activities Permissions

Android Activity Provides user interaction http://developer.android.com/reference/android/app/activity.html Callbacks for life-cycle management oncreate() onresume() onpause() An application can have multiple activities.. Needs one launcher activity

HelloAndroidActivity

Use oncreate() to create UI. HelloAndroidActivity

Add Activity to AndroidManifest.xml: Launch!

Launch! (take 2)

Launch with debugger

Launch (take 3!)

Views Can be composed in a tree hierarchy. The root View is the argument to setcontentview

Creating a layout

Accessing layout elements from Activtiy Use findviewbyid R.id.name corresponds to the name given in the xml file

Event listeners (and logging, too)

Logcat Window -> Show View -> Other -> Android -> Logcat

Creating a log file

Writing to the log file

Long running task Long running tasks on the main thread can block the UI App looks unresponsive

Use a separate Thread instead

Use Handlers to update UI

Add a Progress dialog

Summary