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

Similar documents
Compsci 290.3, Spring 2017 Software Design and Implementation: Mobile Landon Cox Owen Astrachan

Cloud Tutorial: AWS IoT. TA for class CSE 521S, Fall, Jan/18/2018 Haoran Li

DevOps Course Content

Election Campaigner Through Android Application

Cadac SoundGrid I/O. User Guide

NetTest A European Solution from Austria for measuring Broadband Quality SERENTSCHY.COM ADVISORY SERVICES GMBH

Google App Engine 8/10/17. CS Cloud Compu5ng Systems--Summer II 2017

DOES ADDITION LEAD TO MULTIPLICATION? Koos Hussem X-CAGO B.V.

Website Refresh Consultation March Consultation on the refresh of the Joint Office of Gas Transporters Website

Let the Blogging Begin!

2018 Seismology of the Americas. Mobile App How-to Guide

M-Vote (Online Voting System)

Data Processing Development

This Week on developerworks: Ruby, AIX, collaboration, BPM, Blogger API Episode date:

MAKING MONEY OUT OF PROPERTY IN SOUTH AFRICA BY JASON LEE DOWNLOAD EBOOK : MAKING MONEY OUT OF PROPERTY IN SOUTH AFRICA BY JASON LEE PDF

ForeScout Extended Module for McAfee epolicy Orchestrator

Parliamentary proceedings in Italian Senate

XMM-Newton Instrument Operations & Data Generation. J.R. Muñoz and the IOT members, SRE-OOX UGM#15, ESAC Apr 2014

If your answer to Question 1 is No, please skip to Question 6 below.

Online Voting System Using Aadhar Card and Biometric

Objec&ves. Review. So-ware Quality Metrics Sta&c Analysis Tools Refactoring for Extensibility

Installation Guide: Plesk 12 ServerShield and ServerShield Plus

The Spanish eid document.... Both a national identification and a compliant travel one

5222 E. Baseline Road, Suite 101 Gilbert, AZ 85234

Florida Courts eportal Criminal Setup Checklist

Facebook Guide for State Legislators

Campaign Training: VoteBuilder Overview

Mojdeh Nikdel Patty George

Unrestricted Siemens AG 2017

User Guide. News. Extension Version User Guide Version Magento Editions Compatibility

Utilizing Siebel Clinical CTMS, RDC OnSite and AERS in the greater APAC region with multibyte charactersets

Case Study. MegaMatcher Accelerator

IBM Cognos Open Mic Cognos Analytics 11 Part nd June, IBM Corporation

Guide to Electronic Voting Election Runner

Child Check In Quick Start Guide. v 9.5. Local: (706) Atlanta: (404) Toll Free: (866)

Trusted Logic Voting Systems with OASIS EML 4.0 (Election Markup Language)

DOWNLOAD OR READ : THE FOX AND THE GHOST KING PDF EBOOK EPUB MOBI

DOWNLOAD OR READ : TV GUIDE LISTINGS BALTIMORE PDF EBOOK EPUB MOBI

DragonBoard 410c based on Qualcomm Snapdragon 410E processor Connecting the UART to USB Adapter Application Note

Case 1:17-cv GMS Document 1 Filed 10/25/17 Page 1 of 5 PageID #: 30 IN THE UNITED STATES DISTRICT COURT FOR DISTRICT OF DELAWARE

SIC Centralized Information System

IFTECH INVENTING FUTURE TECHNOLOGY INC. ARAIG SDK AGREEMENT

Kjell-Einar Anderssen. Country Manager Norway - Nutanix

OPEN SOURCE CRYPTOCURRENCY

SMCSac --Who We Are. The centerpiece for gatherings surrounding the subject of social media. o Expands social media literacy and shares best practices

UTAH LEGISLATIVE BILL WATCH

Open Data Kit (ODK) Mobile Data Collection, Aggregation, and Dissemination

Electronic Voting and Civil Referendums in Hong Kong

LME App Terms of Use [Google/ Android specific]

Electronic pollbooks: usability in the polling place

Objec&ves. Review. JUnit Coverage Collabora&on

Aadhaar Based Voting System Using Android Application

KNOX DEVELOPMENT AND LICENSE AGREEMENT ( Agreement )

HOW TO RUN AN ONLINE ELECTION

REPORT VOLUME 6 MAY/JUNE 2017

Case 1:17-cv Document 1 Filed 12/11/17 Page 1 of 17 IN THE UNITED STATES DISTRICT COURT FOR THE WESTERN DISTRICT OF TEXAS AUSTIN DIVISION

Clause Logic Service User Interface User Manual

Case 2:16-cv RWS Document 1 Filed 10/14/16 Page 1 of 6 PageID #: 1

Financial Revision 6.1 Treasurer s Report Enhancements

Geoportal Helpdesk - Support #2722 EEA: HTTP Status codes returned by the INSPIRE Validator

NATIONALISM AND THE STATE BY JOHN BREUILLY DOWNLOAD EBOOK : NATIONALISM AND THE STATE BY JOHN BREUILLY PDF

Clinton vs. Trump 2016: Analyzing and Visualizing Tweets and Sentiments of Hillary Clinton and Donald Trump

Final Review. Chenyang Lu. CSE 467S Embedded Compu5ng Systems

POLL WATCHER S MANUAL 9 MAY 2016 ELECTIONS

3. Index. Annexure I Composition of BOD 3 Composition of Committee

Coverage tools Eclipse Debugger Object-oriented Design Principles. Oct 26, 2016 Sprenkle - CSCI209 1

M-Polling with QR-Code Scanning and Verification

Kosovo Passport Europe s first Passport with certified SAC. Labinot Carreti, Head of Sales Europe / CIS / North Africa Montreal, 07th of October 2014

Plan For the Week. Solve problems by programming in Python. Compsci 101 Way-of-life. Vocabulary and Concepts

RULES AND REGULATIONS

The duties and responsibilities of the members of the APPR Committee are: to attend and participate in all APPR Committee meetings.

TT SERIES OD ORBITAL CUTTING & BEVELING MACHINES 1/8 TO 168 OD 1/9

2013 Spring Meetings Recap

Procedures for the Use of Optical Scan Vote Tabulators

Creating Attractive and Useful SharePoint Pages

EPUB - BLOOMBERG BAT TEST ANSWERS

Data, Social Media, and Users: Can We All Get Along?

Jussi T. Lindgren, PhD Lead Engineer Inria

End User License Agreement For APPS

General terms and conditions for the service Satispay Consumer

DEMOCRACY AND PUBLIC ADMINISTRATION IN PAKISTAN (PUBLIC ADMINISTRATION AND PUBLIC POLICY) BY AMNA IMAM, EAZAZ A. DAR

Peregian Springs State School mlearning P 3 BYO ipad Program 2018 Frequently Asked Questions Updated 10 October 2017

SPARC Version New Features

1. Overview The excel utility can be used for creating the XBRL/XML file for efiling of Corporate Governance Report

User Guide. City Officials Historical Database. By Susan J. Burnett

Google feud unblocked

DOWNLOAD OR READ : THE PALESTINIAN REFUGEES IN JORDAN PDF EBOOK EPUB MOBI

MIDEM 2012: Continuing to redefine mobile engagement for events

Statement on Security & Auditability

DAQRI SMART HELMET PLATFORM SERVICE AGREEMENT & TERMS

3T Software Labs EULA

THE PREPARED CURRICULUM:

Mobile Application End User License Agreement

DuPage County Election Commission

United States District Court

Emergence of multimodal biometrics at the Border Biometrics Institute Asia-Pacific Conference

MANAGEMENT OF OFFENDERS (SCOTLAND) BILL

Annexure I - Composition of BOD 3 Composition of Committee

M-Series, Actuator Overview. Machine Screw Cutaway. UNI-LIFT Machine Screw Actuators offer precise. 12

Media pack

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! Luca Bedogni, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - Programming with Android SDK install and initial setup 4

Android Studio Luca Bedogni, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - Programming with Android SDK install and initial setup 10

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

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

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

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

Your first Android application Luca Bedogni, Marco Di Felice - Programming with Android SDK install and initial setup 15

Testing on the emulator Ø Select Run > Run App Luca Bedogni, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - 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, Marco Di Felice - Programming with Android SDK install and initial setup 23