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

Similar documents
Introduction To Android

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

COPYRIGHTED MATERIAL. 1Getting Started with Android Programming

Android Development Tools = Eclipse + ADT + SDK

Programming Concepts and Skills. Creating an Android Project

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

Configuring the Android Manifest File

Android Development Tutorial. Yi Huang

Mobile OS. Symbian. BlackBerry. ios. Window mobile. Android

MODULE 2: GETTING STARTED WITH ANDROID PROGRAMMING

LECTURE NOTES OF APPLICATION ACTIVITIES

BCA 6. Question Bank

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

Application Development Setup Guide

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

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

Android Application Development. By : Shibaji Debnath

12 Publishing Android Applications

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

Tutorial: Android Object API Application Development. Sybase Unwired Platform 2.2 SP03

Tutorial on Basic Android Setup

Mobile Programming Lecture 1. Getting Started

Content. 1. Overview Setup Demonstration Linux Application Project on DE10-Nano Android Application Project...

(Refer Slide Time: 0:48)

University of Babylon - College of IT SW Dep. - Android Assist. Lect. Wadhah R. Baiee Activities

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

COMP4521 EMBEDDED SYSTEMS SOFTWARE

Developing Android applications in Windows

Using Eclipse for Android Development

Applications. Marco Ronchetti Università degli Studi di Trento

Programming Mobile Applications with Android Lab1

Lab 1: Getting Started With Android Programming

If you don t have the JDK, you will need to install it. 1. Go to

Embedded Systems Programming - PA8001

Wirtschaftsinformatik Skiseminar ao. Prof. Dr. Rony G. Flatscher. Seminar paper presentation Dennis Robert Stöhr

SD Card with Eclipse/Emulator

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

ANDROID APPLICATIONS

Chapter 2 Setting Up for Development

Real-Time Embedded Systems

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

UNIT:2 Introduction to Android

SD Module- Android Programming

Mobile Application Development - Android

UNDERSTANDING ACTIVITIES

by- Salman A. Khan, Ishendra Agarwal,Prateek Sahu,Manas

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

Android Studio Setup Procedure

Started with Android Programming for Tablets

CS260 Intro to Java & Android 04.Android Intro

Android Sdk Setup For Windows 7 32 Bit Full Version

SHWETANK KUMAR GUPTA Only For Education Purpose

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

Installing and configuring an Android device emulator. EntwicklerCamp 2012

M O B I L E T R A I N I N G. Beginning Your Android Programming Journey

COLLEGE OF ENGINEERING, NASHIK-4

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

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

Android App Development

COSC 3P97 Mobile Computing

Android App Development. Ahmad Tayeb

Mobile and Wireless Systems Programming

Lab 3: Using Worklight Server and Environment Optimization Lab Exercise

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

Vendor: Android. Exam Code: OA Exam Name: Android Application Engineer Certifications Basic. Version: Demo

Android Sdk Tutorial For Windows 7 64 Bit Full Version

Android.Test-inside.OA0-002.v by.Andres.70q. Exam Code: OA Exam Name: Android Application Engineer Certifications Basic

LECTURE NOTES ON MOBILE APPLICATION DEVELOPMENT

Introduction to Android

Android for Ubiquitous Computing Researchers. Andrew Rice University of Cambridge 17-Sep-2011

Android Workshop: Model View Controller ( MVC):

Tegra 250 Development Kit Android Setup Experience

Android. Michael Greifeneder. Image source: Android homepage

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

Getting started: Installing IDE and SDK. Marco Ronchetti Università degli Studi di Trento

Android Beginners Workshop

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

Answers to Exercises

CMSC 436 Lab 10. App Widgets and Supporting Different Devices

Android System Development Training 4-day session

Lecture 7: Data Persistence : shared preferences. Lecturer : Ali Kadhim Al-Bermani Mobile Fundamentals and Programming

Diploma in Android Programming (DAP)

CS 234/334 Lab 1: Android Jump Start

MARS AREA SCHOOL DISTRICT Curriculum TECHNOLOGY EDUCATION

ES E 3 3 L a L b 5 Android development

1. SUPPORT PLATFORMS 2. INSTALLATION GUIDE Install Android SDK

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

Security model. Marco Ronchetti Università degli Studi di Trento

Introduction to Android

Android HelloWorld - Example. Tushar B. Kute,

Installation Guide - Mac

Android Exam AND-401 Android Application Development Version: 7.0 [ Total Questions: 129 ]

Monroe Township High School AP Computer Science A Summer Packet

Basic Android Setup for Machine Vision Fall 2015

Introduction to Android development

Computer Science E-76 Building Mobile Applications

Mobile Application Development

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

ITG Software Engineering

UNic Eclipse Mini Tutorial (Updated 06/09/2012) Prepared by Harald Gjermundrod

Transcription:

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

Lecture # 2 Android Tools

Objectives Understand Android Tools Setup Android Development Environment Create HelloWorld Application Understand HelloWorld Structure Familiarize with Android Application Types and Components Know how to Build and Run Android Application

Developing for Android Eclipse Android SDK Android Development Tools (ADT) Android Virtual Devices (AVD) / Emulator Dalvik Debug Monitor Services (DDMS) The Android Debug Bridge (ADB)

JAVA JDK The Android SDK makes use of the Java SE Development Kit (JDK). If your computer does not have the JDK installed, you should start by downloading it from www.oracle.com/technetwork/java/javase/downloads/ind ex.html and installing it prior to moving to the next section.

Android SDK You can download the Android SDK from http://developer.android.com/sdk/index.html

Configuring the Android SDK Manager

Android SDK Manager Each version of the Android OS is identifi ed by an API level number. For example, Android 2.3.3 is level 10 (API 10), while Android 3.0 is level 11 (API 11). For each level, two platforms are available. For example, level 14 offers the following: SDK Platform Google APIs by Google Inc. The key difference between the two is that the Google APIs platform contains additional APIs provided by Google (such as the Google Maps library).

Eclipse IDE

Download Eclipse Eclipse IDE for Java Developers Open http://www.eclipse.org/ Select "Downloads" Select Eclipse IDE for Java Developers, 149MB Select Windows 32 or 64 Extract zip file to c:\eclipse

Android Development Tools (ADT) Plug in Start Eclipse, then select Help > Install New Software URL Location: https://dlssl.google.com/android/eclipse/

(ADT) Plug in (continue )

(ADT) Plug in (continue ) NOTE: For each new version of SDK, the installation steps tend to differ slightly. If you do not experience the same steps as described here, don t worry, just follow the instructions on screen.

Creating Android Virtual Devices (AVDs) (AVD) is used for testing your Android applications. An AVD is an emulator instance that enables you to model an actual device. You can create as many AVDs as you want in order to test your applications with several different configurations, to confirm the behavior of your application when it is run on different devices with varying capabilities.

Android Emulator De

Creating Android Virtual Devices (AVDs) Eclipse: Window Android Virtual Device Manager

Your First Android Project Using Eclipse, create a new project by selecting File New Project

Modify the default project

test your application on the Android emulator

Click the Home button

Click the application launcher icon Click the applicati on launcher icon

Note: the HelloWorld application is now installed in the application launcher

APPLICATION ANATOMY src Contains the.java source fi les for your project, example: HelloWorldActivity.java is the source file for your activity. You write the code for your application in this file. The Java file is listed under the package name for your project, which in this case is net.learn2develop.helloworld.

APPLICATION ANATOMY ) gen Contains the R.java file, a compiler-generated file that references all the resources found in your project. You should not modify this file. All the resources in your project are automatically compiled into this class so that you can refer to them using the class.

APPLICATION ANATOMY Android 4.0 library This item contains one file, android.jar, which contains all the class libraries needed for an Android application. assets This folder contains all the assets used by your application, such as HTML, text files, databases, etc.

APPLICATION ANATOMY bin This folder contains the files built by the ADT during the build process. it generates the.apk file (Android Package). An.apk file is the application binary of an Android application. It contains everything needed to run an Android application

APPLICATION ANATOMY res This folder contains all the resources used in your application. It contains subfolders: drawable<resolution>, layout, and values. AndroidManifest.xml Here you specify the permissions needed by your application, as well as other features (such as intent-filters, receivers, etc.)

The main.xml file The main.xml file defines the user interface for your activity. @string in this case refers to the strings.xml file located in the res/values folder. @string/hello ref to string defined in the strings.xml file

Main.xml file Example:

AndroidManifest.xml file AndroidManifest.xml file contains detailed information about the application:

AndroidManifest.xml file It defines the package name of the application ( net.learn2develop.helloworld) The version code of the application is 1. (set via the android:versioncode attribute). Can be used to determine whether an application needs to be upgraded. The version name of the application is 1.0 (set via the android:versionname attribute). mainly used for display to the user. The android:minsdkversion attribute of the <uses-sdk> specifies minimum version of the OS on which the application will run.

AndroidManifest.xml file The application uses the image named ic_launcher.png located in the drawable folders. The name of this application is the string named app_name defined in the strings.xml fi le. There is one activity in the application represented by the HelloWorldActivity.java file. The label is the same as the application name.

AndroidManifest.xml file Within the definition for each activity, there is an element named <intent-filter>: The action for the intent filter is named: android.intent.action.main to indicate that this activity serves as the entry point for the application. The category for the intent-filter is named android.intent.category.launcher to indicate that the application can be launched from the device s launcher icon.

AndroidManifest.xml file Example:

The HelloWorldActivity.java file: The code that connects the activity to the UI (main.xml) is the setcontentview() method, which is in the HelloWorldActivity.java file