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



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

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

Mobile Application Development

Android Environment SDK

Android Environment SDK

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

Android Setup Phase 2

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

How To Develop An Android App On An Android Device

OpenCV on Android Platforms

How to Create an Android Application using Eclipse on Windows 7

Installing the Android SDK

Android Tutorial. Larry Walters OOSE Fall 2011

Getting Started with Android Development

Developing In Eclipse, with ADT

Oracle FLEXCUBE Direct Banking Android Tab Client Installation Guide Release

Fahim Uddin 1. Java SDK

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

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

Example Connection between USB Host and Android

Open Source Telemedicine Android Client Development Introduction

How to build your first Android Application in Windows

Application Development Setup Guide

Introduction to Android Development. Jeff Avery CS349, Mar 2013

Running a Program on an AVD

Android Development. Marc Mc Loughlin

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

Lab 0 (Setting up your Development Environment) Week 1

ADT Plugin for Eclipse

Home Course Catalog Schedule Pricing & Savings Training Options Resources About Us

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

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP02

Android Programming and Security

Introduction to Android

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

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

Android, Bluetooth and MIAC

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)

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

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

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

Tutorial on Basic Android Setup

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

Hello World. by Elliot Khazon

Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02

Developing Android Apps: Part 1

directory to "d:\myproject\android". Hereafter, I shall denote the android installed directory as

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 (

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

How To Develop Android On Your Computer Or Tablet Or Phone

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

How to Set Up Your PC for Android Application Development

Android Application Development

Android Programming: Installation, Setup, and Getting Started

Setting up Sudoku example on Android Studio

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

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

Developing NFC Applications on the Android Platform. The Definitive Resource

Android Introduction

Frameworks & Android. Programmeertechnieken, Tim Cocx

Basic Android Setup Windows Version

Laboratorio di Applicazioni Mobili (LAM 2014) Luciano Bononi

Android Development Setup [Revision Date: 02/16/11]

Jordan Jozwiak November 13, 2011

Chapter 2 Getting Started

Introduction to Android

Epidefender Studio Installation notice

How to Set Up Your PC for Android Application Development

Tutorial #1. Android Application Development Advanced Hello World App

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

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

Getting Started with Android

Cisco Cius Development Guide Version 1.0 September 30, 2010

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

Android: How To. Thanks. Aman Nijhawan

Introduction to Android Programming (CS5248 Fall 2015)

Robotium Automated Testing for Android

How to develop your own app

Smartphone market share

MMI 2: Mobile Human- Computer Interaction Android

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

Practical Android Projects Lucas Jordan Pieter Greyling

06 Team Project: Android Development Crash Course; Project Introduction

Android Geek Night. Application framework

IOIO for Android Beginners Guide Introduction

Basics. Bruce Crawford Global Solutions Manager

An Introduction to Android

Published: SWD

Developing Android Applications Introduction to Software Engineering Fall Updated 7 October 2015

ANDROID ALERT APP (SHOP SALE)

Login with Amazon Getting Started Guide for Android. Version 2.0

ID TECH UniMag Android SDK User Manual

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

How to Install Applications (APK Files) on Your Android Phone

Transcription:

Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

SDK and initial setup: Outline Today: How to setup a machine to start developing Android applications An overview of an Android project Some useful tools Your first Android application Maybe on a real device! 2

SDK and initial setup: 3 step setup Download Android SDK for your platform: http://developer.android.com/sdk/index.html Execute (and then select the Android API version): android-sdk-xxx/tools/android Install the ADT plugin for Eclipse: http://www.eclipse.org/downloads/ https://dl-ssl.google.com/android/eclipse 3

Basics: requirements How to develop Android Applications? Linux/MacOS X/Windows? Doesn't matter Android SDK Eclipse, not mandatory but can help Eclipse Plugin An Android device is not required

SDK: download and unpack Go to http://developer.android.com/sdk/index.html Download the SDK according to your OS Unpack it Done! Let's see what's inside...

Inside the SDK

SDK tools: android

ADT plugin for Eclipse Useful to run applications via Eclipse, highly reccomended Go to http://developer.android.com/sdk/eclipse-adt.html Pick the repository (actually https://dl-ssl.google.com/android/eclipse/) Add a repository in Eclipse and download the Developers Tools This will make a virtual bridge between eclipse and the SDK

Create it under Eclipse Assign an SDK target Create a Project Choose an application name Choose a package name Create an activity and assign a name Run it to test that everything is ok

Create an AVD AVD means Android Virtual Device Test the application before running it on a device Multiple APIs Multiple targets Makes it faster (and cheap) to test application on different configurations/resolutions/storage

Hello World, Android! Anatomy of an application: Activity what is started View what is seen Intent how to communicate with others R.java - Auto-generated file containing: Layouts Values Strings

Hello World, Android!

Project contents Project name

Project contents Project name Src folder with java files

Project contents Project name Src folder with java files Auto-generated files

Project contents Project name Src folder with java files Auto-generated files Android's base files

Project contents Project name Src folder with java files Auto-generated files Android's base files Compiled files

Project contents Project name Src folder with java files Auto-generated files Android's base files Compiled files Resources files

Project contents Project name Src folder with java files Auto-generated files Android's base files Compiled files Resources files Android Manifest

AndroidManifest.xml Mandatory file for every application Contains: Application declaration Permissions Intent-filters

How to test Via an AVD Fast, possible to have different resolutions/apis/... Not a real device On a real device You feel exactly what it will get deployed Must own a real device So? Test it on AVD, and when you feel the application is ready, test it on a real device

How to deploy Android applications must be signed before they can be installed on a device Eclipse can sign applications Debug mode, just to test it on your device Release mode, when it's ready for other users

Signing in release mode Eclipse has a tool called Export Wizard File > Export Export Android Application Select your key and preferences Application is compiled, signed and aligned, ready to be deployed Keep your private key safe Use a strong password Don't lend it to anyone