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

Slides:



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

Programming with Android: Calculator Example
Programming with Android: Module Overview
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.
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.
Coursework 2: getting started (1) – running the phone emulator Chris Greenhalgh G54UBI / Chris Greenhalgh
Programming Mobile Applications with Android
Joemarie Comeros Amparo Android Development Orientation for Starters.
The Android Development Environment.  Getting started on the Android Platform  Installing required libraries  Programming Android using the Eclipse.
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
Cosc 4730 Installing IDEs And a note on carriers..
Android: Hello World Frank Xu Gannon University. Steps Configuration ▫Android SDK ▫Android Development Tools (ADT)  Eclipse plug-in ▫Android SDK and.
Android and Project Structure. Android Android OS – Built on Linux Kernel – Phones – Netbooks – Readers – Other???
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
2. Setting Up Your Android Development Environment.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
UFCFX5-15-3Mobile Device Development Android Development Environments and Windows.
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 **
Getting Started with Android Programming Note: if you have already installed android development tools, please check that you have the same version as.
Android Tutorial Larry Walters OOSE Fall References This tutorial is a brief overview of some major concepts…Android is much richer and more complex.
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.
Sayed Ahmed BSc. Eng. In Computer Sc. and Eng. (BUET), Bangladesh MSc., Computer Science, Canada President/Chief Architect/Lead Developer Justetc (Just.
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.
Android. The Eclipse IDE Installation Requirements: Eclipse Java Windows All must match (32-bit OR 64-bit) If you have a 64-bit OS & 32-bit browser,
Sayed Ahmed Computer Engineering (BUET), Bangladesh MSc., Computer Science, Canada President/Chief Architect/Lead Developer Justetc (Just et cetera) Technologies.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
Ali Shahrokni Application Components Activities Services Content providers Broadcast receivers.
Presentation Seminar on “IMAGE SLIDER –AN ANDROID APPLICATION”
DUE Hello World on the Android Platform.
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.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Presented By: Muhammad Tariq Software Engineer Android Training course.
Android architecture & setting up. Android operating system comprises of different software components arranges in stack. Different components of android.
Configuring Android Development Environment Nilesh Singh.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Introduction to Android (Part.
Android Development Environment Environment/tools Windows Eclipse IDE for Java Developers (v3.5 Galileo) Java Platform (JDK 6 Update 18) Android.
Android Hello World 1. Click on Start and type eclipse into the textbox 2.
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
First Venture into the Android World Chapter 1 Part 2.
 Installation of Android Development Environment  Creating the App with OpenGL ES API  Running the App on Emulator Android App Development.
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
Installation of Visual Studio Android emulator and Android Studio
Intoduction to Andriod studio Environment With a hello world program.
Android apps development - Eclipse, Android SDK, and ADT plugin Introduction of.
Guide To Develop Mobile Apps With Titanium. Agenda Overview Installation of Platform SDKs Pros of Appcelerator Titanium Cons of Appcelerator Titanium.
IBM Worklight environment setup 1. Eclipse IDE Multi-purpose integrated development environment (IDE) Open source Supported for Windows, Mac OS X, Linux.
Day 1 Session 2. Setup & Installation
Introduction to Android Programming
COM594: Mobile Technology Practical – Week 1 Android and Android Studio.
Mobile Device Development
Android 01: Fundamentals
Obtaining the Required Tools
Android.
Development-Introduction
CA16R405 - Mobile Application Development (Theory)
Packing and Signing of the Application
Android Developer Fundamentals V2 Lesson 1
CA16R405 - Mobile Application Development (Theory)
Presentation transcript:

Programming with Android: SDK install and initial setup Luca Bedogni Marco Di Felice Dipartimento di Informatica: Scienza e Ingegneria 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 Two options  Historically Android development was in Eclipse  Download the SDK  Install the Android plugin  Now there is Android Studio  You still have to download the SDK  Customized environment

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 4 Which one?  For the class, 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 5 Android Studio

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 6 Where and how to get it  Go to  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 7 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 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 Your first Android application  Go to File > New Project

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 10 Testing on the emulator  Select “Launch Emulator”

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 11 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 12 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 13 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 14 Application structure  Even the simplest application has a lot of files  Some are autogenerated  Each project contains  Activities  Layouts  XML files  AndroidManifest.xml

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 15 build  Autogenerated files  No need to modify them  Some are autogenerated  Each project contains  Activities  Layouts  XML files  AndroidManifest.xml

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 16 src  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 17 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 18 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 19 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 Eclipse 20

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

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 24 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 25 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 26 Project contents  Project name

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

Luca Bedogni, Marco Di Felice - Programming with Android – SDK install and initial setup 28 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 29 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 30 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 31 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 32 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 33 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 34 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