Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Scienze dellInformazione Università di Bologna.

Slides:



Advertisements
Similar presentations
Programming with Android: Activities and Intents
Advertisements

Programming with Android: Activities
Programming with Android: Module Overview
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
©2003 aQute, All Rights Reserved Tokyo, August 2003 : 1 OSGi Service Platform Tokyo August 28, 2003 Peter Kriens CEO aQute, OSGi Fellow
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
ZMQS ZMQS
Molecular Biomedical Informatics Web Programming 1.
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
Ando-it-yourself droid Praveen Kumar Pendyala. Outline Brief intro to the Droid developement Setting up the Life saviors - Development tools Hello Droid.
ANDROID DEVELOPMENT KELLY MCBEAN. DEVELOPMENT ENVIRONMENT OVERVIEW Eclipse Standard IDE for Developing Android Applications Install: 1.Java (JDK) – Since.
ABC Technology Project
August 2012 This work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit
Programming with Android: System Architecture
Programming with Android: Application Resources Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.
David Walker Ottawa TMG Users Group 15 March 2014.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Web Toolkit Julie George & Ronald Lopez 1. Requirements  Java SDK version 1.5 or later  Apache Ant is also necessary to run command line arguments 
Addition 1’s to 20.
25 seconds left…...
Week 1.
We will resume in: 25 Minutes.
Multi Contents Registration Manual National Institute of Informatics
The PLASTIC Model to HUTN transformation tool UDA.
CMSC433 Solving Project 0 Getting started with BitBucket, Git and Eclipse CMSC433 - Programming Language Technologies and Paradigms (Spring 2012)
Cosc 5/4730 Android Maps v2. Maps V1 and V2 In March 2013 google removed the ability to get a map key for version 1. Version 2 had been introduced in.
Programming Mobile Applications with Android
Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria Università di Bologna.
The Android Development Environment.  Getting started on the Android Platform  Installing required libraries  Programming Android using the Eclipse.
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
Setting up the Development Environment Copyright © SUPINFO. All rights reserved Preparation.
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
SET UP COMPUTER ** PLEASE BE AWARE SCREENSHOTS MAY NOT MATCH **
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
Android Application Development CSE 5520/4520 Wireless Networks.
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
Android Programming. Outline Preparation Create new project Build and Run a project Debug a project Deploy on devices.
Android Introduction Platform Overview.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Android Programming By Mohsen Biglari Android Programming, Part1: Introduction 1 Part1: Introduction By Mohsen Biglari.
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
Presentation Seminar on “IMAGE SLIDER –AN ANDROID APPLICATION”
Android for Java Developers Denver Java Users Group Jan 11, Mike
Eclipse Tutorial Barrett Summer Scholars 2011 Sustainable Engineering: Learning to Engineer Truly Green Products.
Presented By: Muhammad Tariq Software Engineer Android Training course.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
Intoduction to Andriod studio Environment With a hello world program.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
Android 01: Fundamentals
Obtaining the Required Tools
Android.
Development-Introduction
CA16R405 - Mobile Application Development (Theory)
Presentation transcript:

Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Scienze dellInformazione Università di Bologna

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 2 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 3 SDK and initial setup: 3 step setup Download Android SDK for your platform: Execute (and then select the Android API version) : android-sdk-xxx/tools/android Install the ADT plugin for Eclipse:

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

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup SDK: download and unpack Go to Download the SDK according to your OS Unpack it Done! Let's see what's inside...

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 6 Inside the SDK

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 7 SDK tools: android

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup ADT plugin for Eclipse Useful to run applications via Eclipse, highly reccomended Go to adt.htmlhttp://developer.android.com/sdk/eclipse- adt.html Pick the repository (actually ssl.google.com/android/eclipse/) 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

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 9 Create a Project Create it under Eclipse Assign an SDK target Choose an application name Choose a package name Create an activity and assign a name Run it to test that everything is ok

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

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

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 12 Hello World, Android!

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 13 Project contents Project name

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 14 Project contents Project name Src folder with java files

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 15 Project contents Project name Src folder with java files Auto-generated files

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 16 Project contents Project name Src folder with java files Auto-generated files Android's base files

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 17 Project contents Project name Src folder with java files Auto-generated files Android's base files Compiled files

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 18 Project contents Project name Src folder with java files Auto-generated files Android's base files Compiled files Resources files

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 19 Project contents Project name Src folder with java files Auto-generated files Android's base files Compiled files Resources files Android Manifest

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 …

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 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

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

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