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

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

Lab Android Development Environment

Android Sdk Setup For Windows 7 32 Bit Full Version

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

Basic Android Setup for Machine Vision Fall 2015

(Refer Slide Time: 0:48)

Android Studio is google's official IDE(Integrated Development Environment) for Android Developers.

Android ATC Android Security Essentials Course Code: AND-402 version 5 Hands on Guide to Android Security Principles

Preparing Rapise for Android Mobile Testing. Testing Architectures. Installation Notes

Introduction to Android

Android App Development for Beginners

Android Programming Lecture 2 9/7/2011

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

Programming Mobile Applications with Android Lab1

ANDROID SYLLABUS. Advanced Android

Mobile Programming Lecture 1. Getting Started

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

Assistant Professor Computer Science. Introduction to Human-Computer Interaction

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

Minds-on: Android. Session 1

Choose OS and click on it

Tutorial on Basic Android Setup

Android Studio for Windows

Programming Concepts and Skills. Creating an Android Project

Java Training Center - Android Application Development

IT-G400 Series. Android 6.0 Quick Start Guide. This document is a Development Guide Book for IT-G400 application developers. Ver 1.

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

Syllabus- Java + Android. Java Fundamentals

USER GUIDE FOR SMARTPHONE BASED REAL-TIME ACOUSTIC FEEDBACK CANCELLATION SYSTEM

ELET4133: Embedded Systems. Topic 3 Eclipse Tour & Building a First App

HOW TO DEVELOP FOR GLASS ENTERPRISE

ORACLE UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

ATC Android Application Development

Assignment 1: Port & Starboard

Getting Started with Eclipse/Java

BlackBerry Developer Global Tour. Android. Table of Contents

SD Module-1 Android Dvelopment

Google Maps Troubleshooting

Ionic Tutorial. For Cross Platform Mobile Software Development

Application Development Setup Guide

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

Android Application Development using Kotlin

Lab 1: Getting Started With Android Programming

Mobile Programming Lecture 4. Debugging

How to Install (then Test) the NetBeans Bundle

Android Development Tools = Eclipse + ADT + SDK

Mobile Application Development

MARS AREA SCHOOL DISTRICT Curriculum TECHNOLOGY EDUCATION

Android Studio Setup Procedure

Index. Alessandro Del Sole 2017 A. Del Sole, Beginning Visual Studio for Mac,

Link-OS SDK for Xamarin README

Android Application Development Course Code: AND-401 Version 7 Duration: 05 days

Getting started with Tabris.js Tutorial Ebook

(Refer Slide Time: 1:12)

Android Sdk Install Documentation Eclipse. Ubuntu >>>CLICK HERE<<<

Mobile and Ubiquitous Computing: Android Programming (part 1)

Android Online Training

Sample Spark Web-App. Overview. Prerequisites

3. Hello World! for IDEA. Java. Summer 2008 Instructor: Dr. Masoud Yaghini

android-espresso #androidespresso

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.

GUJARAT TECHNOLOGICAL UNIVERSITY

Lab 3: Using Worklight Server and Environment Optimization Lab Exercise

Lifecycle Callbacks and Intents

Around Android. Essential Android features illustrated by a walk through a practical example

Android App Development

Android Application Development

Xcode Setup. Setup. 1. Copy your files. 2. Install X Code

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

Developing Android applications in Windows

Android App Development

How to Set up Eclipse and Android SDK Manager Environment You need to download the following

TREX Set-Up Guide: Creating a TREX Executable File for Windows

From time to time Google changes the way it does things, and old tutorials may not apply to some new procedures.

Mobile and Wireless Systems Programming

WRITING CONSOLE APPLICATIONS IN C

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

What s NetBeans? Like Eclipse:

Hands-On Workshop on Google Android Developer Fundamentals

Our First Android Application

Setting Up the Development Environment

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

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

NetBeans IDE Java Quick Start Tutorial

Hello! I AM ZARAH. I am an Android developer for Domain.com.au

Produced by. Mobile Application Development. David Drohan Department of Computing & Mathematics Waterford Institute of Technology

What is the Selendroid?

Beginner s Guide to Android App Development

Android Development Crash Course

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

INTRODUCTION TO ANDROID

[ :25:55.588] [Info] Installation ID: 04cdabde-1d90-49ee-9df5-7daeed7f6d51 [ :25:55.594] [Info] Operating system: Mac OS X

Controlling CHAPTER CueMix from an ipad using TouchOSC

Introduction To JAVA Programming Language

Lesson 1: Hello ios! 1

Windows Presentation Foundation (WPF)

Chapter 2 Setting Up for Development

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

Tutorial guideline for App Inventor

Mobile Application Development Google Maps Android API

Transcription:

Hello World Lesson 1 1

1.1 Create Your First Android App 2

Contents Android Studio Creating "Hello World" app in Android Studio Basic app development workflow with Android Studio Running apps on virtual and physical devices 3

Prerequisites Java Programming Language Object-oriented programming XML - properties / attributes Using an IDE for development and debugging 4

Android Studio 5

What is Android Studio? l l l l l l l l l l Android IDE Project structure Templates Layout Editor Testing tools Gradle-based build Log Console Debugger Monitors Emulators 6

Installation Overview GNU/Linux, Mac, or Windows Requires Java Development Kit (JDK) 1.7 or better from Oracle Java SE downloads page Set JAVA_HOME to JDK installation location Download and install Android Studio from http://developer.android.com/sdk/index.html See 1.1 P Install Android Studio for details 7

Creating Your First Android App 8

Start Android Studio 9

Create a project inside Android Studio 10

Name your app 11

Pick activity template Choose templates for common activities, such as maps or navigation drawers. Pick Empty Activity or Basic Activity for simple and custom activities. 12

Name your activity l l l Good practice to name main activity MainActivity and activity_main layout Use AppCompat Generating layout file is convenient 13

Android Studio Panes Layout Editor Project Files Android Monitors: logcat: log messages 14

Project folders 1.manifests Android Manifest file description of app read by the Android runtime 2.java Java source code packages 3.res Resources (XML) - layout, strings, images, dimensions, colors... 4.build.gradle Gradle build files 15

Gradle build system Modern build subsystem in Android Studio Three build.gradle: project module settings Typically not necessary to know low-level Gradle details Learn more about gradle at https://gradle.org/ 16

Run your app 1.Run 2. Select virtual or physical device 3. OK Creative Commons Attribution- 17 NonCommercial 4.0 International 17

Create a virtual device Use emulators to test app on different versions of Android and form factors. Tools > Android > AVD Manager or: 18

Configure virtual device 1.Choose hardware 2. Select Android Version 3. Finalize 19

Run on a virtual device 20

Run on a physical device 1. Turn on Developer Options: a. Settings > About phone b. Tap Build number seven times 2. Turn on USB Debugging a. Settings > Developer Options > USB Debugging 3. Connect phone to computer with cable Windows/Linux additional setup: l Using Hardware Devices Windows drivers: l OEM USB Drivers 21

Get feedback as your app runs As the app runs, Android Monitor logcat shows information You can add logging statements to your app that will show up in logcat. 22

Logging import android.util.log; // Use class name as tag private static final String TAG = MainActivity.class.getSimpleName(); // Show message in Android Monitor, logcat pane // Log.<log-level>(TAG, "Message"); Log.d(TAG, Creating the URI ); 23

Android Monitor > logcat pane 1.Log statements in code. 2.logcat pane shows system and logging messages Set filters to see what's important to you Search using tags 24

Learn more Meet Android Studio Official Android documentation at developer.android.com Create and Manage Virtual Devices Supporting Different Platform Versions Supporting Multiple Screens 25

Learn even more Gradle Wikipedia page Google Java Programming Language style guide Find answers at Stackoverflow.com 26

What's Next? Concept Chapter: 1.1 C Create Your First Android App Practical: 1.1 P Install Android Studio and Run Hello World 27

END Storing Data 28