Android Development Crash Course

Similar documents
Android Programming (5 Days)

Mobile Programming Lecture 1. Getting Started

MC Android Programming

CS260 Intro to Java & Android 05.Android UI(Part I)

Android. Lesson 1. Introduction. Android Developer Fundamentals. Android Developer Fundamentals. to Android 1

CS260 Intro to Java & Android 05.Android UI(Part I)

Hello World. Lesson 1. Android Developer Fundamentals. Android Developer Fundamentals. Layouts, and. NonCommercial

Praktikum Entwicklung Mediensysteme. Implementing a User Interface

ORACLE UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Android UI DateBasics

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

Android App Development. Mr. Michaud ICE Programs Georgia Institute of Technology

GUI Design for Android Applications

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

AND-401 Android Certification. The exam is excluded, but we cover and support you in full if you want to sit for the international exam.

Required Core Java for Android application development

Android Application Development using Kotlin

ANDROID SYLLABUS. Advanced Android

ANDROID APPS DEVELOPMENT FOR MOBILE GAME

Minds-on: Android. Session 1

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

Pro Android 2. Sayed Y. Hashimi Satya Komatineni Dave Mac Lean. Apress

The World of Android Development

Chapter 2 Welcome App

Android Application Development 101. Jason Chen Google I/O 2008

Beginning Android 4 Application Development

Android App Development

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

CS 4518 Mobile and Ubiquitous Computing Lecture 4: Data-Driven Views, Android Components & Android Activity Lifecycle Emmanuel Agu

Fig. 2.2 New Android Application dialog. 2.3 Creating an App 41

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

SD Module-1 Android Dvelopment

CS 528 Mobile and Ubiquitous Computing Lecture 1b: Introduction to Android. Emmanuel Agu

07. Menu and Dialog Box. DKU-MUST Mobile ICT Education Center

LECTURE 08 UI AND EVENT HANDLING

Programming Mobile Applications with Android Lab1

Android" Application Development SAMS. Sams Teach Yourself. Shane Conder. Lauren Darcey. Second Edition

Android App Development

CS 528 Mobile and Ubiquitous Computing Lecture 2a: Introduction to Android Programming. Emmanuel Agu

CS 528 Mobile and Ubiquitous Computing Lecture 2a: Android UI Design in XML + Examples. Emmanuel Agu

Agenda. Overview of Xamarin and Xamarin.Android Xamarin.Android fundamentals Creating a detail screen

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

Android App Development Workshop

Mobile User Interfaces

Lab 3. Accessing GSM Functions on an Android Smartphone

CS 4518 Mobile and Ubiquitous Computing Lecture 5: Data-Driven Views and Android Components Emmanuel Agu

Android Programming Lecture 2 9/7/2011

Programming Android UI. J. Serrat Software Design December 2017

ANDROID APPLICATION PROGRAMMING

Android App Development. Muhammad Sharjeel COMSATS Institute of Information Technology, Lahore

Mobile Application Development

Mobile Computing Practice # 2a Android Applications - Interface

Link-OS SDK for Xamarin README

Pemrograman Mobile. Lesson 1. Introduction to Android. Create Your First Android App. Nizar Rabbi Radliya

Exercise 1: First Android App

Enterprise Smart Outlet: Android Development

CPET 565 Mobile Computing Systems CPET/ITC 499 Mobile Computing. Lab & Demo 2 (Part 1-2) Hello-Goodbye App Tutorial

Mobile Application Development Android

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

Androidfp_printOnly.book Page vii Tuesday, October 4, :15 AM. Contents. Before You Begin

CS378 -Mobile Computing. What's Next?

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

Android. Michael Greifeneder. Image source: Android homepage

1. What are the key components of Android Architecture? 2. What are the advantages of having an emulator within the Android environment?

ANDROID USER INTERFACE

Android UI Development

CMSC 628: Introduction to Mobile Computing

Introduction to Mobile Application and Development

CS371m - Mobile Computing. User Interface Basics

Android Basics. Android UI Architecture. Android UI 1

Introduction To Android

CPET 565 Mobile Computing Systems CPET/ITC 499 Mobile Computing. Lab & Demo 2 (1 &2 of 3) Hello-Goodbye App Tutorial

Android Basics Nanodegree Syllabus

Java Training Center - Android Application Development

Syllabus- Java + Android. Java Fundamentals

Programming Concepts and Skills. Creating an Android Project

ES E 3 3 L a L b 5 Android development

BSCS 514- Computer Graphics. Course Supervisor : Dr. Humera Tariq Hands on Lab Sessions: Mr. Faraz Naqvi

User Interface: Layout. Asst. Prof. Dr. Kanda Runapongsa Saikaew Computer Engineering Khon Kaen University

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

Project Covered During Training: Real Time Project Training

ITONLINEEXAM.COM. Chapter 1 Basic Introduction to Computers

ANDROID TRAINING PROGRAM COURSE CONTENT

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

Android User Interface

ConstraintLayouts in Android

Computer Science E-76 Building Mobile Applications

CS 528 Mobile and Ubiquitous Computing Lecture 4a: Fragments, Camera Emmanuel Agu

Mobile development initiation

Mobile Programming Lecture 2. Layouts, Widgets, Toasts, and Event Handling

Android User Interface Android Smartphone Programming. Outline University of Freiburg

Lesson 1 Computers and Operating Systems

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

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

Programming in Android. Nick Bopp

Chapter 1 Introduction to Computers

Assignment 1: Port & Starboard

Define the term, computer, and describe the relationship between data and information

BCA 6. Question Bank

M.C.A. Semester V Subject: - Mobile Computing (650003) Week : 2

Transcription:

Android Development Crash Course Campus Sundsvall, 2015 Stefan Forsström Department of Information and Communication Systems Mid Sweden University, Sundsvall, Sweden

OVERVIEW The Android Platform Start Programming Applications Example Application Laboration Reference Material 2

The Android platform

THE ANDROID PLATFORM An operating system aimed for Smartphones But also: Tablets, TV s, Sensor motes, Gaming consoles, Watches, etc. Programming Languages Java with Android extensions To code the functionality XML with graphical editor For designing the user interface 4

THE ANDROID PLATFORM Why choose Android? The basics are the same for all different platforms So if you know Android, the change to ios, Windows Phone, etc. is simple But we choose Android because It s free and open source! Just download and start coding It s the most widespread! With over 900 million devices worldwide It s in Java! Which is one of the most popular programming languages It s easy to publish! Register as a developer and publish right away 5

Programming Applications

DOCUMENTATION Most of it is accessible online http://developer.android.com/ Design Esthetic guidelines Develop Programming oriented Distribute Publishing process 7

INSTALLATION AND SETUP If you want to develop Android apps on your own laptop Download Java JDK and run installer http://www.oracle.com/technetwork/java/javase/downloads/index.html Install Android Studio with SDK Download and install http://developer.android.com/sdk/index.html And then you are ready to code! Start Android Studio 8

PROGRAMMING IN ANDROID STUDIO Java Code XML Design XML Code 9

Example Application

EXAMPLE Android XML Layout res/layout/main.xml TextView ImageView 3 Buttons 11

EXAMPLE Java Code src/mainactivity.java Register Listeners Handle OnClick Switch Button Id Change Image 12

EXAMPLE You now have a very simple Cute Kittens app! The laboration will be to extend this app 13

Reference Material

ANDROID COMPONENTS Activities An app can consists of many activities Can be seen as the different screens of an app Start Activity, Game Activity, HighScoreActivity, etc. Views The stuff you see on the screen and can interact with ImageView, TextView, Button, etc. Layouts Used for placing out views on the screen at a specific place LinearLayout, RelativeLayout, TableLayout, etc. Intents Inform the OS on intentions to perform a specific task Start new activity, etc. 15

ACTIVITIES Activities form a flow chart of the application They are stored in the form of a stack With the main activity at the bottom and the current activity on top 16

THE USER INTERFACE User Interface Specified in an XML file Can be seen as a blueprint for the user interface Specifies what views should be seen and where they should appear But Android creates the components at run-time When the XML file is parsed and interpreted 17

VIEWS Views Are the components you see on the screen Each View can be given a unique ID One must find them, to make interaction from the code FindViewById 18

LAYOUTS Layouts Used for positioning Views on the screen Where and what something should be placed The most common Layouts LinearLayout Horizontal or Vertical order of Views FrameLayout A stack of views, from the bottom up RelativeLayout View locations are specified in relation to each other, below, to the right of, etc. TableLayout Views are placed in a table, using row, columns, etc. 19

INTENTS Intents are used to make the Android OS do stuff for you Typical example, start new activity The share intent Probably the easiest way to share via social networks 20

MANIFEST The Android Manifest A configuration file for your whole application Examples The activities that exists within the application All activates must be listed Which activity to call when the app is started The main activity Overall graphical style Icon, Style, Theme, orientation, etc. Security permissions Internet, contacts, phone status, etc. 21

LISTENERS Listeners are used everywhere in Android Because they are a standardized way of coding event handling Used for Buttons, Touches, etc. Example: 22

MEDIA PLAYER Android has a multimedia framework With support for playing most common media types You can play media files as resources (raw resources) Located in the app res/raw folder Or from an URL, streaming over the Internet 23

Contact Dr. Stefan Forsström E-Mail: stefan.forsstrom@miun.se