Building MyFirstApp Android Application Step by Step. Sang Shin Learn with Passion!

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

Android Application Development. By : Shibaji Debnath

Android HelloWorld - Example. Tushar B. Kute,

Group B: Assignment No 8. Title of Assignment: To verify the operating system name and version of Mobile devices.

Configuring the Android Manifest File

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

Introduction To Android

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

COMP4521 EMBEDDED SYSTEMS SOFTWARE

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

Our First Android Application

UNDERSTANDING ACTIVITIES

This document providesanoverview ofthestepsrequired to implement an android app which will call the ACH android SDK.

INTRODUCTION TO ANDROID

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

CE881: Mobile & Social Application Programming

Android Tutorial: Part 3

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

CS 403X Mobile and Ubiquitous Computing Lecture 3: Introduction to Android Programming Emmanuel Agu

CS 4518 Mobile and Ubiquitous Computing Lecture 4: WebView (Part 2) Emmanuel Agu

Produced by. Mobile Application Development. Eamonn de Leastar

Software Practice 3 Before we start Today s lecture Today s Task Team organization

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

Android. Mobile operating system developed by Google A complete stack. Based on the Linux kernel Open source under the Apache 2 license

Lab 1: Getting Started With Android Programming

Mobile Application Development

Real-Time Embedded Systems

Mobile Programming Lecture 1. Getting Started

Android development. Outline. Android Studio. Setting up Android Studio. 1. Set up Android Studio. Tiberiu Vilcu. 2.

Embedded Systems Programming - PA8001

LECTURE NOTES OF APPLICATION ACTIVITIES

CS378 -Mobile Computing. Anatomy of and Android App and the App Lifecycle

Q.1 Explain the dialog and also explain the Demonstrate working dialog in android.

Applied Cognitive Computing Fall 2016 Android Application + IBM Bluemix (Cloudant NoSQL DB)

Have a development environment in 256 or 255 Be familiar with the application lifecycle

Multiple devices. Use wrap_content and match_parent Use RelativeLayout/ConstraintLayout Use configuration qualifiers

CS 4518 Mobile and Ubiquitous Computing Lecture 3: Android UI Design in XML + Examples. Emmanuel Agu

Android Improving Layouts HierarchyViewer & lint. Victor Matos Cleveland State University

Android Coding. Dr. J.P.E. Hodgson. August 23, Dr. J.P.E. Hodgson () Android Coding August 23, / 27

Wireless Vehicle Bus Adapter (WVA) Android Library Tutorial

Orientation & Localization

Understand applications and their components. activity service broadcast receiver content provider intent AndroidManifest.xml

Android Apps Development for Mobile and Tablet Device (Level I) Lesson 4. Workshop

Getting Started. Dr. Miguel A. Labrador Department of Computer Science & Engineering

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

Android Programs Day 5

CMSC436: Fall 2013 Week 3 Lab

Lifecycle Callbacks and Intents

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

CS 234/334 Lab 1: Android Jump Start

EMBEDDED SYSTEMS PROGRAMMING UI and Android

Getting Started With Android Feature Flags

Android Application Development using Kotlin

CMSC 436 Lab 10. App Widgets and Supporting Different Devices

Android Development Tools = Eclipse + ADT + SDK

Workshop. 1. Create a simple Intent (Page 1 2) Launch a Camera for Photo Taking

Mobile Application Development MyRent Settings

Introduction To JAVA Programming Language


CS 4330/5390: Mobile Application Development Exam 1

Mobile Application Development - Android

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

Assignment 1: Port & Starboard

ES E 3 3 L a L b 5 Android development

Android File & Storage

Android/Java Lightning Tutorial JULY 30, 2018

EMBEDDED SYSTEMS PROGRAMMING Application Basics

LECTURE NOTES ON MOBILE APPLICATION DEVELOPMENT

MODULE 2: GETTING STARTED WITH ANDROID PROGRAMMING

BlackBerry Developer Global Tour. Android. Table of Contents

App Development for Android. Prabhaker Matet

Lecture 13 Mobile Programming. Google Maps Android API

South Africa Version Control.

Lab Android Development Environment

Introduction to Android Development

android-espresso #androidespresso

Using Libraries, Text-to-Speech, Camera. Lecture 12

Produced by. Mobile Application Development. Higher Diploma in Science in Computer Science. Eamonn de Leastar

Table of Content. CLOUDCHERRY Android SDK Manual

Introduction to Android

ITG Software Engineering

Mobile Development Lecture 10: Fragments

<uses-permission android:name="android.permission.internet"/>

Upon completion of the second part of the lab the students will have:

LifeStreet Media Android Publisher SDK Integration Guide

COLLEGE OF ENGINEERING, NASHIK-4

Lab 3: Using Worklight Server and Environment Optimization Lab Exercise

Mobile Application Development Lab [] Simple Android Application for Native Calculator. To develop a Simple Android Application for Native Calculator.

Figure 2.10 demonstrates the creation of a new project named Chapter2 using the wizard.

Developed and taught by well-known Contact author and developer. At public for details venues or onsite at your location.

MARS AREA SCHOOL DISTRICT Curriculum TECHNOLOGY EDUCATION

ANDROID APPLICATIONS

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

(Refer Slide Time: 0:48)

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

Accelerating Information Technology Innovation

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

Using Eclipse for Android Development

Android App Development for Beginners

EMBEDDED SYSTEMS PROGRAMMING UI Specification: Approaches

Transcription:

Building MyFirstApp Android Application Step by Step. Sang Shin www.javapassion.com Learn with Passion! 1

Disclaimer Portions of this presentation are modifications based on work created and shared by the Android Open Source Project > http://code.google.com/policies.html They are used according to terms described in the Creative Commons 2.5 Attribution License > http://creativecommons.org/licenses/by/2.5/ 2

Goals of This Presentation Get you started with Android Studio application development with minimum knowledge Introduce you Android Studio development environment Get you be exposed to the basic building blocks of an Android application in a cursory manner > The details will be covered in the rest of the course 3

Topics Installation and configuration Building blocks of Android application > AndroidManifest.xml > Java package Activities > Resource files > layout > values strings.xml > drawable > menu 4

Installation & Configuration 5

Software Needed JDK (Java Development Kit) > Java language to build Android application Android Studio > IDE, SDK, Libraries, samples, documentation, emulators, debugger, command line tool 6

Creating Android Project Automatic creation of building blocks of an Android application > Starting > > > > Activity class Layout resource file AndroidManife st.xml strings.xml Android library 7

Lab Exercise(20 min): Installation & Configuration Exercise 0 & 1 of 6110_android_stepbystep.zip 8

Building Blocks of Android Application 9

Android Studio App Components AndroidManifest.xml Activity class Resource files > Layout > strings.xml, etc.. Android library (automatically configured) 10

AndroidManifest.xml file Java package for the application. > The package name serves as a unique identifier for the application. Application name and icon Application version information Activities > One activity is designated as a starting Activity Every application must have a manifest file called AndroidManifest.xml file (with precisely that name) in its root directory. The manifest presents essential information about the application to the Android system, information the system must have before it can run any of the 11 application's code.

Building Block AndroidManifest.xml 12

Activity Class - Quick Overview Each Activity class typically represents a screen > Like a JSP page in a Web application The oncreate() method of Activity class gets called by the Android system when your Activity starts > You create your screen UI inside oncreate() method Every Activity has to be described in the AndroidManifest.xml file An Activity is typically chosen as a starting one of your application - like a class that has a main() method in Java > Through special configuration in AndroidManifest.xml 13

Main Activity Class package com.jpassion.com.myfirstapp; Import public class MainActivity extends ActionBarActivity { @Override protected void oncreate(bundle savedinstancestate) ( ) @Override public boolean oncreateoptionsmenu(menu menu) ( ) @Override public boolean onoptionsitemselected(menuitem item) (...) 14

Layout Resource Files Every screen has a corresponding layout resource file > Unless you create screen UI programmatically Each activity class specifies which layout resource file to use for each screen it represents > setcontentview(r.layout.activity_main ); Located under /res/layout directory > /res/layout/main.xml layout resource file is referred to as R.layout.activity_main activity_main is defined at create wizards and user can set name. 15

Building Block Layout Resource 16

Resource Files - strings.xml Let you define the text strings of your applications in a well-known file > Rather than in Java code > Rather than in Layout resource files The strings are then referred to through the names assigned to them > @string/edit_message (in the layout resource file) > R.string.edit_message (in the Java code) Located under /res/values directory 17

Building Block Values Resource 18

Lab Exercises(60 min): Exercise 2-8 of 6110_android_stepbystep.zip 19

Thank you! Check JavaPassion.com Codecamps! http://www.javapassion.com/codecamps Learn with Passion! 20 20