Android Development. Lecture 1b Android SDK & Development Environment

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

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

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

Fahim Uddin 1. Java SDK

Android Environment SDK

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

Android Environment Emulator

Homework 9 Android App for Weather Forecast

1) SETUP ANDROID STUDIO

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

Open Source Telemedicine Android Client Development Introduction

How to Create an Android Application using Eclipse on Windows 7

Jordan Jozwiak November 13, 2011

ADT Plugin for Eclipse

Introduction to Android

DEVELOPING MOBILE APPLICATIONS USING ANDROID

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

Android Environment SDK

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)

Introduction to Android Development. Jeff Avery CS349, Mar 2013

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

01. Introduction of Android

New Technology Introduction: Android Studio with PushBot

How To Develop An Android App On An Android Device

CS 528 Mobile and Ubiquitous Computing Lecture 2: Android Introduction and Setup. Emmanuel Agu

OpenCV on Android Platforms

Android Setup Phase 2

Running a Program on an AVD

Android Tutorial. Larry Walters OOSE Fall 2011

CS378 -Mobile Computing. Android Overview and Android Development Environment

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

Practical Android Projects Lucas Jordan Pieter Greyling

Lab 0 (Setting up your Development Environment) Week 1

Getting Started with Android Development

Hello World. by Elliot Khazon

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

Workshop on Android and Applications Development

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

Praktikum Entwicklung von Mediensystemen (Android)

Getting Started: Creating a Simple App

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

Lecture 1 Introduction to Android

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

Mobile Application Development Android

Developing In Eclipse, with ADT

Android Basics. Xin Yang

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

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

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

Introduction to Android

Develop a Hello World project in Android Studio Capture, process, store, and display an image. Other sensors on Android phones

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

Programmazione di sistemi mobili e tablet

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

Android Development. Marc Mc Loughlin

Developing with Android Studio

ANDROID INTRODUCTION TO ANDROID

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

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

Installing the Android SDK

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

Android Mobile App Building Tutorial

Android Programming: Installation, Setup, and Getting Started

Tutorial on Basic Android Setup

1. Introduction to Android

Android 4.4 App Development Essentials

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

341 - Bioinformatics Android Coursework

Chapter 2 Getting Started

Application Development Setup Guide

Introduction to Android

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

CSA Software Listing Table of Contents. Both Windows and Mac platforms are supported.

Mobile Application Development

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

Android: How To. Thanks. Aman Nijhawan

Mobile Application Development 2014

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

How to build your first Android Application in Windows

Basic Android Setup Windows Version

Getting started with Android and App Engine

Example of Standard API

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

Installing the Android SDK for Intel Application Development

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

ITG Software Engineering

Introduction to Android Development

How To Develop Android On Your Computer Or Tablet Or Phone

How To Use Titanium Studio

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

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

Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012

Praktikum Entwicklung Mediensysteme (für Master)

Android Development Tools for Eclipse

Android Application Development

Introduction to Gear VR Development in Unity APPENDIX A: SETUP (MAC OS X)

Module Title: Software Development A: Mobile Application Development

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

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

HTML5 Applications Made Easy on Tizen IVI. Brian Jones / Jimmy Huang

Transcription:

Android Development Lecture 1b Android SDK & Development Environment This work is licensed under a Creative Commons Attribution NonCommercialShareAlike 4.0 International License. Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Lecture Summary The Android SDK Android Environment Setup SDK Eclipse & ADT SDK Manager Android Emulator ADT Additional Tools First Android Application Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Android SDK http://developer.android.com/sdk/index.html The Android SDK has the tools, sample code, and docs needed to create Android Application. Platform SDK ADT Tools (Eclipse + ADT) Windows (32/64bit) Android SDK r23.05 Mac Os X (Intel 64bit) Android SDK r23.05 Linux (x86 32/64bit) Android SDK r23.05 Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Prepare Your Development Computer Android SDK Supported OS: Windows XP (32bit), Vista (32 or 64bit), or Windows 7/8 (32 or 64bit) Mac OS X 10.5.8 or later (x86 only) Linux Java Development Kit (JDK) Not compatible with Gnu Compiler for Java (gcj) Eclipse IDE (3.6 Helios o greater) part of the Eclipse Platform, it is a multilanguage software development environment based on extensible plugin system. Android Development Tools (ADT): A complete IDE for the Android development based on Eclipse is a plugin for the Eclipse IDE Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Eclipse/ADT IDE Project and File File Editor Explorer Console and additional Views Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Android Developer Toolkit ADT Android Development Tools (ADT) is designed to give you a powerful, integrated environment in which to build Android applications. ADT extends the capabilities of Eclipse to let you: quickly set up new Android projects create an application UI add components based on the Android Framework API create Android emulator with multiple options and available configurations test applications on real or emulated devices debug your applications using the Android SDK tools export signed (or unsigned).apk files in order to distribute your application. Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Android SDK Manager Before you can build an Android application, or even create a project you must install one ore more building target. By clicking on Android SDK Manager Button you can select platforms components that you would like to install on you development machine. There are several packages related to different API levels. In our course we will use API level 5, 4.x and 2.3.x in order to see latest platform release and compile developed application for available real devices. For the MobDev Course You should download: Android 5 (API 21) Android 4.4.2 (API 19) Android 2.3.3 (API 10) Extras: Android Support Library Google Play Services Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Hello World Application Source: http://developer.android.com/guide/developing/devices/emulator.html Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Hello World Application Source: http://developer.android.com/guide/developing/devices/emulator.html Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Hello World Application Source: http://developer.android.com/guide/developing/devices/emulator.html Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Hello World Application Package Explorer Package Explorer Source: http://developer.android.com/guide/developing/devices/emulator.html Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Android Application Structure Android Manifest.xml res/ layout/ [application layout files] drawable/ [images, patches, drawable, xml] raw/ [data files that can be loaded as streams] values/ [xml files with strings, number values used in the code for example to localize the application in difference languages] src/ java/package/directories gen/ [directory generated by Eclipse and Android SDK] Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Android Emulator The Android SDK includes a virtual mobile device emulator that runs on your computer. The emulator lets you prototype, develop, and test Android applications without using a physical device. The Android emulator emulates all of the hardware and software features of a typical mobile device, except that it cannot place actual phone calls. It provides a variety of navigation and control keys, which you can "press" using your mouse or keyboard to generate events for your application. It also provides a screen in which your application is displayed, together with any other Android applications running. To let you model and test your application more easily, the emulator utilizes Android Virtual Device (AVD) configurations. AVDs let you define certain hardware aspects of your emulated phone and allow you to create many configurations to test many Android platforms and hardware permutations. Once your application is running on the emulator, it can use the services of the Android platform to invoke other applications, access the network, play audio and video, store and retrieve data, notify the user, and render graphical transitions and themes. The emulator also includes a variety of debug capabilities, such as a console from which you can log kernel output, simulate application interrupts (such as arriving SMS messages or phone calls), and simulate latency effects and dropouts on the data channel. Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Android Emulator Android emulator supports many hardware features likely to be found on mobile devices, including: An ARMv5 CPU and the corresponding memorymanagement unit (MMU) A 16bit LCD display One or more keyboards (a Qwertybased keyboard and associated Dpad/Phone buttons) A sound chip with output and input capabilities Flash memory partitions (emulated through disk image files on the development machine) A GSM modem, including a simulated SIM Card Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Android Emulator Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

ADT Additional Tools ADT Plugin provides several useful tools to develop, control and profile Android applications, emulators and real devices Relevant ADT Views are: Devices LogCat Emulator Control Resource Explorer Threads Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

GenyMotion Emulator GenyMotion is an Android simulator that allows you create fast virtual replicas of Android systems. It is based on VirtualBox and allows an improved management of: WiFi (IP Addressing) GPS Open GL acceleration Multiscreen Full screen display Sensors: Battery,Gyroscope, Light, Temperature, Rotation Vector, Free for noncommercial use: Android 2.3, 4.1, 4.2, 4.3 and 4.4 GPS Widget Camera Widget http://www.genymotion.com/ Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Android Studio Android Studio is the new Android development It is based on IntelliJ IDEA (https://www.jetbrains.com/idea/). Provides new features and improvements over Eclipse ADT Will be the official Android IDE once it's ready. Main features are: Flexible Gradlebased build system. Build variants and multiple APK generation. Expanded template support for Google Services and various device types. Rich layout editor with support for theme editing. Lint tools to catch performance, usability, version compatibility, and other problems. ProGuard and appsigning capabilities. Builtin support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine. Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma

Android Development Lecture 1b Android SDK & Development Environment This work is licensed under a Creative Commons Attribution NonCommercialShareAlike 4.0 International License. Marco Picone, Ph.D. marco.picone@unipr.it Mobile Application Development 2014/2015 Parma