CS5530 Mobile/Wireless Systems Android UI

Similar documents
CS5530 Mobile/Wireless Systems Using Google Map in Android

AngularJS. Unit Testing AngularJS Directives with Karma & Jasmine



Deploy Your First Cloud Foundry App to Any Cloud Foundry Service Provider

CS4500/5500 Operating Systems Introduction

IT Essentials (ITE v6.0) Chapter 5 Exam Answers 100% 2016

TECHNICAL REQUIREMENTS

TRAINING GUIDE. Lucity Mobile

Client Configurations

Assignment #5: Rootkit. ECE 650 Fall 2018


Installing and using QGIS

CS4500/5500 Operating Systems Processes

Model WM100. Product Manual

Course 10262A: Developing Windows Applications with Microsoft Visual Studio 2010 OVERVIEW

Properties detailed info There are a few properties in Make Barcode to set for the output of your choice.

Using Some of those Nifty New Features You Might Have Missed

Android Certified Associate Developer

Lab# 10: Embedded Applications and Location Tracking Applications

Getting Started with the SDAccel Environment on Nimbix Cloud


Installing Photran with Eclipse (MinGW or Cygwin)

Developing Microsoft SharePoint Server 2013 Core Solutions

Knowledgeware Rule-based Clash

CONFIGURING UUM . Android. You will need the following information to set up UUM

WebEx Web Conferencing Quick Start Guide

AVer IFP Software Release Note Aug

These tasks can now be performed by a special program called FTP clients.

1 Released Items Support Packages Tool Information Changes to Previous Version Installation Requirements...

Enterprise Chat and Developer s Guide to Web Service APIs for Chat, Release 11.6(1)

Because this underlying hardware is dedicated to processing graphics commands, OpenGL drawing is typically very fast.

Guidelines for Installing HI 1734-WS Faceplates

Second Assignment Tutorial lecture

1 Getting and Extracting the Upgrader

Recommended Minimum Requirements for Cisco Meeting Application Web RTC Use

Information about the ACC Education App Featuring ACCSAP 9

I - EDocman Installation EDocman component EDocman Categories module EDocman Documents Module...2

Release Notes Zebra TC20 and TC25 Android N LifeGuard Update 03 for NN-00-M1 (Non-GMS)

Firmware Upgrade Wizard v A Technical Guide

JSR Java API for JSON Binding (JSON- B)

Guide to getting started in J2ME for the Motorola A780 phone

AVer IFP Software Release Note Nov

CS5530 Mobile/Wireless Systems Swift

The following table shows the minimum system requirements for the Microsoft Dynamics NAV Windows client.

IMPORTING INFOSPHERE DATA ARCHITECT MODELS INFORMATION SERVER V8.7

Step 3:- You Will See the Sign-in Page. Then Enter your Login ID & Password and Click on the Sign in Button.

MediaTek LinkIt Development Platform for RTOS Memory Layout Developer's Guide

CS1150 Principles of Computer Science Loops

Asset Panda Web Application Release 12.02

Outlook Web Application (OWA) Basic Training

VMware AirWatch SDK Plugin for Apache Cordova Instructions Add AirWatch Functionality to Enterprise Applicataions with SDK Plugins

ATKey.BLE Quick Guide (Windows 10)

Core Java and Advanced Java

Launch Wizard Invitations Wizard Multi-Question Charts Enhanced API (coming soon) Performance Improvements Improved Single Sign-On Integration

AVer IFP Software Release Note Nov

Tutorial on Eclipse Leshan Internet of Things (2IMN15) , Eindhoven University of Technology By Leila F. Rahman

1 Getting and Extracting the Upgrader

DAVE TM & DAVE TM SDK

Arius 3.0. Release Notes and Installation Instructions. Milliman, Inc Peachtree Road, NE Suite 1900 Atlanta, GA USA

How to Mass Assign Student Course Requests

UiPath Automation. Walkthrough. Walkthrough Calculate Client Security Hash

NiceLabel LMS. Installation Guide for Single Server Deployment. Rev-1702 NiceLabel

Cookies: enable, disable or delete cookies

SafeDispatch SDR Gateway for MOTOROLA TETRA

DS-5 Release Notes. (build 472 dated 2010/04/28 08:33:48 GMT)

CS5530 Mobile/Wireless Systems Android Bluetooth Interface

Enabling Your Personal Web Page on the SacLink

Quick Tips

Mobility Support by the Common API for Transparent Hybrid Multicast

SAS Viya 3.2 Administration: Mobile Devices

Towne Information Systems, Inc. Inter-Office Correspondence

Managing Your Access To The Open Banking Directory How To Guide

JavaScript for Developers

Quick Start Guide. Basic Concepts. DemoPad Designer - Quick Start Guide

Design Patterns. Collectional Patterns. Session objectives 11/06/2012. Introduction. Composite pattern. Iterator pattern

INSERTING MEDIA AND OBJECTS

MICRONET INTERNATIONAL COLLEGE BDTVEC ND in Computer Studies MULTIMEDIA AND WEB DESIGN (MWD) ASSIGNMENT 3 (20%) Due Date: 31st January 2013

Exosoft Backup Manager

Upgrading Kaltura MediaSpace TM Enterprise 1.0 to Kaltura MediaSpace TM Enterprise 2.0

Software Engineering

Table of Contents. Introduction... 2 Installing the ABBYY FineReader Engine Library... 3

CodeSlice. o Software Requirements. o Features. View CodeSlice Live Documentation

NilRead Quick Start Guide

Last modified on Author Reason 3/4/2019 CHRS Recruiting team Initial Publication

Mission Antyodaya Android Mobile & Web Application. Frequently Asked Questions

Information on using ChurchApp

THttpServer class. Sergey Linev (GSI)

Maximo Reporting: Maximo-Cognos Metadata

Customer Self-Service Center Migration Guide

Course 6368A: Programming with the Microsoft.NET Framework Using Microsoft Visual Studio 2008

Introduction to Oracle Business Intelligence Enterprise Edition: OBIEE Answers 11g

File Share Navigator Online

istartsmart 3.5 Upgrade - Installation Instructions

Release Type: Firmware Software Hardware New Product

CUBA Platform. Developer s Manual

Parallel Processing in NCAR Command Language for Performance Improvement

Parallels Operations Automation 5.3

Pexip Infinity User Guide

Kaltura Video Extension for IBM Connections User Guide. Version: 1.0

Transcription:

Mbile/Wireless Systems Andrid UI Yanyan Zhuang Department f Cmputer Science http://www.cs.uccs.edu/~yzhuang UC. Clrad Springs

cat annunce.txt_ Assignment 2 will be psted sn Due after midterm I will be away next Mnday Dr. Chw s guest lecture Midterm date March 20 2

Andrid Andrid IDE A mbile perating system develped by Ggle Based n Linux kernel and designed primarily fr smartphnes and tablets Andrid studi https://develper.andrid.cm/studi/index.html Andrid API Java as the prgramming language 3

Andrid A fast evlving OS: Dashbards } https://develper.andrid.cm/abut/dashbards/index.html 4

Andrid Specify Minimum and Target API Levels AndridManifest.xml <manifest xmlns:andrid="http://schemas.andrid.cm/apk/res/andrid"... > <uses-sdk andrid:minsdkversin="4" andrid:targetsdkversin="15" />... </manifest> Check System Versin at Runtime if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {... } 5

Running Andrid Cde Run cde n simulatr Run cde n a real device N license needed On Andrid 4.2 and newer, Develper ptins is hidden by default Need t enable develper ptin and USB debugging (Galaxy example): this is all yu need t d } G t Settings > Mre > Abut Device, scrll dwn t Build Number } Tap it repeatedly (7 times) } See the Develper ptins menu under Settings > check USB debugging 6

Andrid Debug Bridge (ADB) Andrid Debug Bridge (adb) Cmmand-line tl t yu cmmunicate with a device Installing/debugging apps, and a Unix shell A client-server prgram with three cmpnents A client runs n develpment machine } Invke a client by issuing `adb` A daemn (adbd) runs cmmands n a device } Runs as a backgrund prcess n device A server manages cmmunicatin between client and daemn } Runs as a backgrund prcess n develpment machine 7

Andrid Debug Bridge (ADB) T install adb (Mac OS example) Install hmebrew } ruby -e "$(curl -fssl https://raw.githubusercntent.cm/hmebrew/install/master/install)" Install adb } brew install andrid-platfrm-tls Start adb } $ adb devices List f devices attached 07f105740c8cad3f device } $ adb shell 8

Andrid App Structure Prject files By default, Andrid Studi displays files in Andrid view manifests } AndridManifest.xml file java } Java surce cde, separated by package names res } All nn-cde resurces XML layuts, UI strings, images 9

Andrid App Structure Prject files Prject view } Actual file structure f the prject Including all files hidden frm Andrid view Lks fairly cmplex nw 10

Create an Andrid Prject Start a new Andrid Studi prject, r File à New Prject Applicatin Name: "MyFirstApp" Cmpany Dmain: "example.cm" Target Andrid Devices: keep the default values We will get back t this later Add an Activity t Mbile: select Empty Activity Custmize the Activity: keep default values à Finish Takes a lng time t Finish 11

Create an Andrid Prject In Andrid view app > java > cm.example.myfirstapp > MainActivity.java } Main activity (entry pint fr yur app) } When build and run an app, system launches an instance f this Activity and lads its layut app > res > layut > activity_main.xml } Defines the layut fr the activity's UI app > manifests > AndridManifest.xml } Describes the characteristics f the app and defines each f its cmpnents Gradle Scripts > build.gradle } 2 files with this name: ne fr the prject and ne fr the "app" mdule } Mstly wrk with mdule's build.gradle file t cnfigure hw the Gradle tls cmpile and build yur app 12

Running the App On a real device Windws may need USB driver fr the device } https://develper.andrid.cm/studi/run/em-usb.html Enable USB debugging (earlier) On a simulatr Create an Andrid Virtual Device (AVD) definitin } Tls > Andrid > AVD Manager } Create Virtual Device > Select Hardware } System Image > Dwnlad (ne f the recmmended system images) Takes a lng time again 13

Building Simple User Interface UI is built w/ a hierarchy f layuts (ViewGrup bjects) & widgets (View bjects) Layuts are invisible cntainers that cntrl hw its child views are psitined Widgets are UI cmpnents like buttns and text bxes 14

Building Simple User Interface Building UI XML Layut Editr 15

Building Simple User Interface Cmpnent Tree windw Shws the layut's hierarchy f views CnstraintLayut A layut that defines the psitin fr each view based n cnstraints t sibling views and the parent layut 16

Building Simple User Interface Change UI strings res > values > strings.xml 17

Start Activity Add a methd in MainActivity.java that's called by the buttn Intent } An bject that prvides runtime binding between separate cmpnents, such as tw activities } The Intent represents an app s "intent t d smething" putextra() } An Intent can carry data types as key-value pairs called extras startactivity() 18

Add up Navigatin Navigatin return t the lgical parent screen in app hierarchy Declare which activity is the lgical parent in AndridManifest.xml <activity andrid:name=".displaymessageactivity" andrid:parentactivityname=".mainactivity" > <!-- The meta-data tag is required if yu supprt API level 15 and lwer --> <meta-data andrid:name="andrid.supprt.parent_activity" andrid:value=".mainactivity" /> </activity> 19