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

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

Mobile Programming Lecture 1. Getting Started

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

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

(Refer Slide Time: 1:12)

(Refer Slide Time: 0:48)

SD Module-1 Android Dvelopment

Programming with Android: Activities and Intents. Dipartimento di Informatica Scienza e Ingegneria Università di Bologna

Programmazione di sistemi mobili e tablet

Mobile Computing Professor Pushpedra Singh Indraprasth Institute of Information Technology Delhi Andriod Development Lecture 09

Lab 3: Using Worklight Server and Environment Optimization Lab Exercise

Programming Concepts and Skills. Creating an Android Project

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

Android App Development

Jade: Java Agent DEvelopment Framework Getting Started

Lab Android Development Environment

by- Salman A. Khan, Ishendra Agarwal,Prateek Sahu,Manas

Programming Mobile Applications with Android Lab1

XML Tutorial. NOTE: This course is for basic concepts of XML in line with our existing Android Studio project.

ECOM 5341 Mobile Computing(Android) Eng.Ruba A. Salamah

Around Android. Essential Android features illustrated by a walk through a practical example

Getting Started with Android Development Zebra Android Link-OS SDK Android Studio

Lab 1: Getting Started With Android Programming

Developing Android applications in Windows

Android Studio is google's official IDE(Integrated Development Environment) for Android Developers.

Lab for the course on Process and Service Modeling and Analysis. LAB-01 Introduction. Lecturer: Andrea MARRELLA

Programming with Android: Android for Tablets. Dipartimento di Scienze dell Informazione Università di Bologna

Application Development Setup Guide

Introduction To Android

Tutorial on Basic Android Setup

Introduction to Android development

Minds-on: Android. Session 1

Presentation Outline 10/16/2016

In this Class Mark shows you how to put applications into packages and how to run them through the command line.

ANDROID APPS (NOW WITH JELLY BEANS!) Jordan Jozwiak November 11, 2012

Android Sdk Setup For Windows 7 32 Bit Full Version

Programming with Android: Introduction. Layouts. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

Ionic Tutorial. For Cross Platform Mobile Software Development

(Refer Slide Time: 1:07)

Introduction to Android

Android Development Tools = Eclipse + ADT + SDK

Android App Development. Ahmad Tayeb

Ahmed Ali Big fan of Android

Programming with Android: Intents. Luca Bedogni. Dipartimento di Scienze dell Informazione Università di Bologna

Hello World. Lesson 1. Create your first Android. Android Developer Fundamentals. Android Developer Fundamentals

Android Application Development Course 28 Contact Hours

Questions and Answers. Q.1) Which of the following is the most ^aeuroeresource hungry ^aeuroepart of dealing with activities on android?

If you don t have the JDK, you will need to install it. 1. Go to

How to Set up Eclipse and Android SDK Manager Environment You need to download the following

Programming with Android: Widgets and Events. Luca Bedogni. Dipartimento di Scienze dell Informazione Università di Bologna

Steps to Set Up the Environment of Xamarin in Visual

Android Programming Lecture 2 9/7/2011

Mobile Application Development

Configuring the Android Manifest File

CS260 Intro to Java & Android 04.Android Intro

GUI Design for Android Applications

Mobile Application Development - Android

Create new Android project in Android Studio Add Button and TextView to layout Learn how to use buttons to call methods. Modify strings.

Course Syllabus. Course Title. Who should attend? Course Description. Android ( Level 1 )

University of Stirling Computing Science Telecommunications Systems and Services CSCU9YH: Android Practical 1 Hello World

Android project proposals

ELET4133: Embedded Systems. Topic 3 Eclipse Tour & Building a First App

Manual Android Virtual Device Failed To Load Click Details

Wirtschaftsinformatik Skiseminar ao. Prof. Dr. Rony G. Flatscher. Seminar paper presentation Dennis Robert Stöhr

CS 4518 Mobile and Ubiquitous Computing Lecture 2: Introduction to Android. Emmanuel Agu

Link-OS SDK for Xamarin README

Android Validating Xml Against Schema Java Example

SD Module- Android Programming

Introduction to Android

Produced by. Mobile Application Development. David Drohan Department of Computing & Mathematics Waterford Institute of Technology

Lab #1: A Quick Introduction to the Eclipse IDE

Parallel Dijkstra s Algorithm

1. Implementation of Inheritance with objects, methods. 2. Implementing Interface in a simple java class. 3. To create java class with polymorphism

Programming with Android: Introduction. Layouts. Luca Bedogni. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

ANDROID SYLLABUS. Advanced Android

INTRODUCTION TO ANDROID

Mobile development initiation

Programming with Android: Animations, Menu, Toast and Dialogs. Luca Bedogni. Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna

Eventually, you'll be returned to the AVD Manager. From there, you'll see your new device.

Android InsecureBankv2 Usage Guide. InsecureBankv2

Jade: Java Agent DEvelopment Framework Overview

Manual Android Virtual Device Failed To Load Error

ApacheCon NA How to Avoid Common Mistakes in OFBiz Development Presented by Adrian Crum

Important Note: A)Please remove previous versions before installing a new version. B)Installation path containing SPACE char's does not work.

ANDROID APPLICATIONS

COSC 3P97 Assignment 1

Android Software Development Kit (Part I)

Google Maps Troubleshooting

Introduction to Android Android Smartphone Programming. Outline University of Freiburg. What is Android? Background University of Freiburg.

Android System Architecture. Android Application Fundamentals. Applications in Android. Apps in the Android OS. Program Model 8/31/2015

Android App Development

Anno Accademico Laboratorio di Tecnologie Web Introduzione ad Eclipse e Tomcat

Chapter 2 Setting Up for Development

Installing and configuring an Android device emulator. EntwicklerCamp 2012

Android Development Tutorial. Yi Huang

Android project proposals

Jade: Java Agent DEvelopment Framework Overview

Real-Time Embedded Systems

COMP4521 EMBEDDED SYSTEMS SOFTWARE

Data Management CS 4720 Mobile Application Development

Transcription:

Programming with Android: SDK install and initial setup Luca Bedogni 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! Luca Bedogni - Programming with Android SDK install and initial setup 2

Two options ØHistorically Android development was in Eclipse ØDownload the SDK ØInstall the Android plugin ØNow there is Android Studio ØCustomized environment Luca Bedogni - Programming with Android SDK install and initial setup 3

Which one? ØFor LAM, it s the same ØIf you already use and love Eclipse, go with it ØYou might see examples done in both platforms ØYou can always import an Eclipse project into Android Studio ØThe inverse is difficult Luca Bedogni - Programming with Android SDK install and initial setup 4

Android Studio Luca Bedogni - Programming with Android SDK install and initial setup 5

Where and how to get it ØGo to http://developer.android.com/sdk/installing/studio.html ØDownload Android Studio and the SDK ØInstall it and you re done! Luca Bedogni - Programming with Android SDK install and initial setup 6

Basic requirements ØHow to develop Android applications? ØLinux/Mac OS X/Windows? Doesn t matter ØA real device is not mandatory ØCode your application in the IDE ØTest it with the emulator ØDeploy it on a real device Luca Bedogni - Programming with Android SDK install and initial setup 7

SDK tools Ø Android tool Ø Used to get APIs and add-ons Ø You can also start it from Android Studio Luca Bedogni - Programming with Android SDK install and initial setup 8

SDK tools Ø Android tool Ø Used to get APIs and add-ons Ø You can also start it from Android Studio Luca Bedogni - Programming with Android SDK install and initial setup 9

SDK tools Ø Android tool Ø Used to get APIs and add-ons Ø You can also start it from Android Studio Luca Bedogni - Programming with Android SDK install and initial setup 10

Your first Android application ØGo to File > New Project Luca Bedogni - Programming with Android SDK install and initial setup 11

Your first Android application ØGo to File > New Project Luca Bedogni - Programming with Android SDK install and initial setup 12

Your first Android application ØGo to File > New Project Luca Bedogni - Programming with Android SDK install and initial setup 13

Your first Android application ØGo to File > New Project Luca Bedogni - Programming with Android SDK install and initial setup 14

Your first Android application Luca Bedogni - Programming with Android SDK install and initial setup 15

Testing on the emulator ØSelect Run > Run App Luca Bedogni - Programming with Android SDK install and initial setup 16

Creating an emulator Ø Can configure several options Ø You can create as many as you want Luca Bedogni - Programming with Android SDK install and initial setup 17

Did everything went fine? Ø Test in on the emulator Ø You should see something similar to this Luca Bedogni - Programming with Android SDK install and initial setup 18

Hello world, Android! ØAnatomy of an application ØActivity: what is started ØView: what is seen ØIntent: how to communicate with others ØMix of XML and Java ØGenerally XML for layouts ØJava for the app logic Luca Bedogni - Programming with Android SDK install and initial setup 19

The java and res folders ØAll the code of your application ØThe java folder contains the java code! ØInside res there are a lot of resources ØImages ØLayouts ØXml files ØAndroidManifest.xml Luca Bedogni - Programming with Android SDK install and initial setup 20

AndroidManifest.xml ØMandatory file for every application ØContains: ØApplication declaration ØPermissions ØIntent filters ØTargets Luca Bedogni - Programming with Android SDK install and initial setup 21

How to test ØVia an AVD Ø Fast, possible to have different resolutions, APIs Ø Not a real device ØOn a real device Ø You get exactly what is deployed Ø Must own a real device ØSo? Ø Test in on AVDs. Ø When you feel that the application is ready, go with a real device Luca Bedogni - Programming with Android SDK install and initial setup 22

How to deploy ØAndroid applications must be signed before installing them on a real device Ø Ø Ø You need a key for this and you can generate one from the menu. Luca Bedogni - Programming with Android SDK install and initial setup 23