07. Menu and Dialog Box. DKU-MUST Mobile ICT Education Center
|
|
- Jonas Snow
- 6 years ago
- Views:
Transcription
1 07. Menu and Dialog Box DKU-MUST Mobile ICT Education Center
2 Goal Learn how to create and use the Menu. Learn how to use Toast. Learn how to use the dialog box. Page 2
3 1. Menu Menu Overview Menu provides a way -> User select one of several Option Menu, Context Menu How to use the menu To generate an XML file -> Calling from Java Without XML file -> Only the Java code, create a menu Page 3
4 1. Menu Options menu using XML The Options menu appears by pressing the "MENU" button on the keypad. Setting sequence of the option menu 1 Create a menu folder, XML file creation and editing 2 Java Coding : oncreateoptionmenu() Method overriding Menu Coding Register menu file 3 Java Coding : onoptionsitemselected() Method overriding Content coding to work when you select the menu Menu XML file format Item1 ID Item1 title Item2 ID Item2 title Page 4
5 1. Menu Options menu using XML oncreateoptionmenu() method default format Menu XML ID onoptionsitemselected( ) method default format Item1 ID; The code to be executed when you select item 1 Item2 ID; The code to be executed when you select item 2 Page 5
6 1. Menu Options menu using XML [Practice 7-1] Creating an App Change background color (1/8) Practice Making a simple menu option When you click the Option Menu, change the background color of the layout Learn how to create a sub menu Project Info. Project Name : Project7_1 Package Name : com.cookandroid.project7_1 Build SDK : Goolge API 15 or 16 Minimum Required SDK : API 15 or 16 Activity Name : Project7_1Activity Title : Project7_1 Page 6
7 1. Menu Options menu using XML [Practice 7-1] Creating an App Change background color (2/8) Design the Screen Id name id baselayout in the main LinearLayout Create the TextView 1, Button 1. Button id is button1. Page 7
8 1. Menu Options menu using XML [Practice 7-1] Creating an App Change background color (3/8) Add a menu XML [menu] folder add a menu1.xml file Page 8
9 1. Menu Options menu using XML [Practice 7-1] Creating an App Change background color (4/8) Menu XML Coding Page 9
10 1. Menu Options menu using XML [Practice 7-1] Creating an App Change background color (5/8) Java coding 1 Declaration global variable 2(Layout of main.xml, Button) Assignment widget variable in the oncreate() method of Main Function Page 10
11 1. Menu Options menu using XML [Practice 7-1] Creating an App Change background color (6/8) oncreateoptionsmenu() override Page 11
12 1. Menu Options menu using XML [Practice 7-1] Creating an App Change background color (7/8) Java coding 2 Page 12
13 1. Menu Options menu using XML [Practice 7-1] Creating an App Change background color (8/8) Java coding 3 After the autoconplete the onoptionsitemselected(), Coding Page 13
14 1. Menu Options menu using XML [Self Test 7-1] Change the [Practice 7-1] Using the RelativeLayout, Arrangement the TextView, EditText, ImageView Input the angle in the EditText. When you select image rotation in the option menu, rotate the ImageView Create the Radio button(3 item-anyitem) When you choice the radiobutton, change the ImageView Page 14
15 1. Menu Options menu using only Java code Options menu using only Java code Add a menu item to the direct Menu.add() method Page 15
16 1. Menu Context Menu using XML Overview the ContextMenu The context menu appears when you long click the widget The only one available option menu, But the possible use of multiple context menu. Because the context menu can be registered for each widget menu. Appears in the center of the screen, similar to the Windows pop-up. Setting sequence Context Menu 1 Create a menu folder, Menu XML file of the Widget creation and editing 2 Java Coding : Regestered in the oncreate() to registerforcontextmenu() Menu Coding Register widget for using menu 3 Java Coding : oncreatecontextmenu() Method overriding Register the menu file Page 16 4 Java Coding : oncontextitemselected() Method overriding Content coding to work when you select the menu
17 1. Menu Context Menu using XML Context Menu XML file The menu XML file, create a separate XML file for each widget context menu appears. Menu XML syntax is the same as the options menu. Basic format Page 17
18 1. Menu Context Menu using XML [Practice 7-2] App to change the background color and the button changes (1/6) Make the Context Menu. -> similar to the practice 7-1 When you long click the Change the background color, show the three context menu for change the background color When you long click the Change the button, show the two context menu for change the button size and rotate the button Project Info Project Name : Project7_2 Package Name : com.cookandroid.project7_2 build SDK : Goolge API 15 or 16 Minimum Required SDK : API 15 or 16 Activity Name : Project7_2Activity Layout Name : main Title : Project7_2 Page 18
19 1. Menu Context Menu using XML [Practice 7-2] App to change the background color and the button changes (2/6) Design the Screen Create the two Button. Button id is button1, button2 Page 19
20 1. Menu Context Menu using XML [Practice 7-2] App to change the background color and the button changes (3/6) Add the menu XML Add the menu1.xml, menu2.xml file in the [menu] folder Page 20
21 1. Menu Context Menu using XML [Practice 7-2] App to change the background color and the button changes (4/6) Java coding 1 Page 21
22 1. Menu Context Menu using XML [Practice 7-2] App to change the background color and the button changes (5/6) Java coding 2 oncreatecontextmenu(), Auto overriding. And coding the inside Inflate menu XML files differently depending on whether the widget. Page 22
23 1. Menu Context Menu using XML [Practice 7-2] App to change the background color and the button changes (6/6) Java coding 3 Coding oncontextitemselected() method to work actually completed in the same way Method very similar to the Practice 7-1 -> onoptionsitemselected( ) Page 23
24 1. Menu Context Menu using XML [Self Test 7-2] Java code written only practice 7-2 Page 24
25 2. Toast Overview the Toast Convenient when you give a little message to the user should be aware. Suitable programmers to use for debugging purposes. Basic format Changing the location of Toast Page 25
26 2. Toast Example of Toast Page 26
27 3. DialogBox AlertDialog Overview 1 Create a Dialog Box Create the Method : AlertDialog.Builder 2 Set according to the purpose settitle() Setting the Title setmessage() Enter the message seticon() Setting the Icon setpositivebutton() <ok> button setnegativebutton() <cancel> button setitem() print the list setsinglechoiceitems output the radiobutton list setmultichoiceitems output the checkbox list 3 Dialog box, the screen output Show() Page 27
28 3. DialogBox AlertDialog Dialog Box Example 1 : without Button Page 28
29 3. DialogBox AlertDialog Dialog Box Example 2 : one Button and click -> operating code Page 29
30 3. DialogBox AlertDialog Sample List dialog box 1 : basic list dialog box Page 30
31 3. DialogBox AlertDialog Sample List dialog box 2 : RadioButton List dialog Box Page 31
32 3. DialogBox AlertDialog Sample List dialog box 3 : checkbox Page 32
33 3. DialogBox [Practice 7-3] Creating a user information input App(1/9) Make the App Toast into the image and color Dialog box that accepts user information. Project Info Project Name : Project7_3 Package Naem : com.cookandroid.project7_3 build SDK : Goolge API 15 or 16 Minimum Required SDK : API 15 or 16 Activity Name : Project7_3Activity Layout Name : main Page 33 Title: Project7_3
34 3. DialogBox [Practice 7-3] Creating a user information input App(2/9) Design the Screen Create the 2 TextView, 1 Button Widget id is tvname, tv , button1. Page 34
35 3. DialogBox [Practice 7-3] Creating a user information input App(3/9) Adding a dialog box for the layout XML (1/2) Add [Android XML Layout File] in the [layout] folder : File name is dialog1.xml Page 35
36 3. DialogBox [Practice 7-3] Creating a user information input App(4/9) Adding a dialog box for the layout XML (2/2) Generated in order : TextView, EditText, TestView, EditText Widget id is dlgedt1, dlgedt2(only EditText) Page 36
37 3. DialogBox [Practice 7-3] Creating a user information input App(5/9) Add XML for Toast : File Name is toast1.xml Generated in order : ImageView, TextView, ImageView TextView id is toasttext1 Layout Back ground color is red Page 37
38 3. DialogBox [Practice 7-3] Creating a user information input App(6/9) Java coding 1 Page 38
39 3. DialogBox [Practice 7-3] Creating a user information input App(7/9) Java coding 2 When you click the button1 variable, write the Listener Make the dialog box in the onclick() method, add button(confirm, cancle Run at the click of a button, the input to null. Page 39
40 3. DialogBox [Practice 7-3] Creating a user information input App(8/9) Java coding 3 Page 40
41 3. DialogBox [Practice 7-3] Creating a user information input App(9/9) Java coding 4 Page 41
42 DKU-MUST Mobile ICT Education Center
04. Learn the basic widget. DKU-MUST Mobile ICT Education Center
04. Learn the basic widget DKU-MUST Mobile ICT Education Center Goal Understanding of the View and Inheritance of View. Learn how to use the default widget. Learn basic programming of the Android App.
More information06. Advanced Widget. DKU-MUST Mobile ICT Education Center
06. Advanced Widget DKU-MUST Mobile ICT Education Center Goal Learn how to deal with advanced widget. Learn how the View Container and its applications Learn how to set the AndroidManiFest.xml Page 2 1.
More informationAndroid Programming Lecture 2 9/7/2011
Android Programming Lecture 2 9/7/2011 Creating a first app 1. Create a new Android project (a collection of source code and resources for the app) from the Eclipse file menu 2. Choose a project name (can
More informationLECTURE 08 UI AND EVENT HANDLING
MOBILE APPLICATION DEVELOPMENT LECTURE 08 UI AND EVENT HANDLING IMRAN IHSAN ASSISTANT PROFESSOR WWW.IMRANIHSAN.COM User Interface User Interface The Android Widget Toolbox 1. TextView 2. EditText 3. Spinner
More informationCS378 -Mobile Computing. More UI -Part 2
CS378 -Mobile Computing More UI -Part 2 Special Menus Two special application menus options menu context menu Options menu replaced by action bar (API 11) menu action bar 2 OptionsMenu User presses Menu
More information1. Implementation of Inheritance with objects, methods. 2. Implementing Interface in a simple java class. 3. To create java class with polymorphism
ANDROID TRAINING COURSE CONTENT SECTION 1 : INTRODUCTION Android What it is? History of Android Importance of Java language for Android Apps Other mobile OS-es Android Versions & different development
More informationAndroid Programming (5 Days)
www.peaklearningllc.com Android Programming (5 Days) Course Description Android is an open source platform for mobile computing. Applications are developed using familiar Java and Eclipse tools. This Android
More informationCS371m - Mobile Computing. More UI Action Bar, Navigation, and Fragments
CS371m - Mobile Computing More UI Action Bar, Navigation, and Fragments ACTION BAR 2 Options Menu and Action Bar prior to Android 3.0 / API level 11 Android devices required a dedicated menu button Pressing
More informationEECS 4443 Mobile User Interfaces. More About Layouts. Scott MacKenzie. York University. Overview (Review)
EECS 4443 Mobile User Interfaces More About Layouts Scott MacKenzie York University Overview (Review) A layout defines the visual structure for a user interface, such as the UI for an activity or app widget
More informationMeniu. Create a project:
Meniu Create a project: Project name: P0131_MenuSimple Build Target: Android 2.3.3 Application name: MenuSimple Package name: ru.startandroid.develop.menusimple Create Activity: MainActivity Open MainActivity.java.
More informationANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I)
ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I) Application Components Hold the content of a message (E.g. convey a request for an activity to present an image) Lecture 2: Android Programming
More informationCS371m - Mobile Computing. More UI Navigation, Fragments, and App / Action Bars
CS371m - Mobile Computing More UI Navigation, Fragments, and App / Action Bars EFFECTIVE ANDROID NAVIGATION 2 Clicker Question Have you heard of the terms Back and Up in the context of Android Navigation?
More informationLab 1 - Setting up the User s Profile UI
Lab 1 - Setting up the User s Profile UI Getting started This is the first in a series of labs that allow you to develop the MyRuns App. The goal of the app is to capture and display (using maps) walks
More informationEECS 4443 Mobile User Interfaces. More About Layouts. Scott MacKenzie. York University
EECS 4443 Mobile User Interfaces More About Layouts Scott MacKenzie York University Overview (Review) A layout defines the visual structure for a user interface, such as the UI for an activity or app widget
More informationANDROID APPS DEVELOPMENT FOR MOBILE GAME
ANDROID APPS DEVELOPMENT FOR MOBILE GAME Application Components Hold the content of a message (E.g. convey a request for an activity to present an image) Lecture 2: Android Layout and Permission Present
More informationMC Android Programming
MC1921 - Android Programming Duration: 5 days Course Price: $3,395 Course Description Android is an open source platform for mobile computing. Applications are developed using familiar Java and Eclipse
More informationRequired Core Java for Android application development
Required Core Java for Android application development Introduction to Java Datatypes primitive data types non-primitive data types Variable declaration Operators Control flow statements Arrays and Enhanced
More informationG1 Development Environment and Applica4on Development. Adam C. Champion CSE 788X11 Prof. Dong Xuan
G1 Development Environment and Applica4on Development Adam C. Champion CSE 788X11 Prof. Dong Xuan Outline Introduc
More informationAndroid Application Model I
Android Application Model I CSE 5236: Mobile Application Development Instructor: Adam C. Champion, Ph.D. Course Coordinator: Dr. Rajiv Ramnath Reading: Big Nerd Ranch Guide, Chapters 3, 5 (Activities);
More informationUser Interface: Layout. Asst. Prof. Dr. Kanda Runapongsa Saikaew Computer Engineering Khon Kaen University
User Interface: Layout Asst. Prof. Dr. Kanda Runapongsa Saikaew Computer Engineering Khon Kaen University http://twitter.com/krunapon Agenda User Interface Declaring Layout Common Layouts User Interface
More informationUI, Continued. CS 2046 Mobile Application Development Fall Jeff Davidson CS 2046
UI, Continued CS 2046 Mobile Application Development Fall 2010 Announcements Office hours have started HW1 is out, due Monday, 11/1, at 11:59 pm Clarifications on HW1: To move where the text appears in
More informationOverview. What are layouts Creating and using layouts Common layouts and examples Layout parameters Types of views Event listeners
Layouts and Views http://developer.android.com/guide/topics/ui/declaring-layout.html http://developer.android.com/reference/android/view/view.html Repo: https://github.com/karlmorris/viewsandlayouts Overview
More informationMVC Apps Basic Widget Lifecycle Logging Debugging Dialogs
Overview MVC Apps Basic Widget Lifecycle Logging Debugging Dialogs Lecture: MVC Model View Controller What is an App? Android Activity Lifecycle Android Debugging Fixing Rotations & Landscape Layouts Localization
More informationSouth Africa Version Control.
South Africa 2013 Lecture 7: User Interface (Navigation)+ Version Control http://aiti.mit.edu South Africa 2013 Today s agenda Recap Navigation Version Control 2 Tutorial Recap Activity 1 Activity 2 Text
More informationAndroid Development Crash Course
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
More informationCreating a User Interface
Creating a User Interface Developing for Android devices is a complicated process that requires precision to work with. Android runs on numerous devices from smart-phones to tablets. Instead of using a
More informationIntroducing the Android Menu System
Introducing the Android Menu System If you ve ever tried to navigate a mobile phone menu system using a stylus or trackball, you ll know that traditional menu systems are awkward to use on mobile devices.
More informationAndroid Application Model I. CSE 5236: Mobile Application Development Instructor: Adam C. Champion, Ph.D. Course Coordinator: Dr.
Android Application Model I CSE 5236: Mobile Application Development Instructor: Adam C. Champion, Ph.D. Course Coordinator: Dr. Rajiv Ramnath 1 Framework Support (e.g. Android) 2 Framework Capabilities
More informationLab 3. Accessing GSM Functions on an Android Smartphone
Lab 3 Accessing GSM Functions on an Android Smartphone 1 Lab Overview 1.1 Goals The objective of this practical exercise is to create an application for a smartphone with the Android mobile operating system,
More informationO X X X O O X O X. Tic-Tac-Toe. 5COSC005W MOBILE APPLICATION DEVELOPMENT Lecture 2: The Ultimate Tic-Tac-Toe Game
Tic-Tac-Toe 5COSC005W MOBILE APPLICATION DEVELOPMENT Lecture 2: The Ultimate Tic-Tac-Toe Game Dr Dimitris C. Dracopoulos O X X X O O X O X The Ultimate Tic-Tac-Toe: Rules of the Game Dimitris C. Dracopoulos
More informationMobile App Design Project Doodle App. Description:
Mobile App Design Project Doodle App Description: This App takes user touch input and allows the user to draw colored lines on the screen with touch gestures. There will be a menu to allow the user to
More informationMobila applikationer och trådlösa nät, HI1033, HT2013
Mobila applikationer och trådlösa nät, HI1033, HT2013 Today: - User Interface basics - View components - Event driven applications and callbacks - Menu and Context Menu - ListView and Adapters - Android
More information1. What are the key components of Android Architecture? 2. What are the advantages of having an emulator within the Android environment?
1. What are the key components of Android Architecture? Android Architecture consists of 4 key components: - Linux Kernel - Libraries - Android Framework - Android Applications 2. What are the advantages
More informationCreate new Android project in Android Studio Add Button and TextView to layout Learn how to use buttons to call methods. Modify strings.
Hello World Lab Objectives: Create new Android project in Android Studio Add Button and TextView to layout Learn how to use buttons to call methods. Modify strings.xml What to Turn in: The lab evaluation
More informationIntroduction To JAVA Programming Language
Introduction To JAVA Programming Language JAVA is a programming language which is used in Android App Development. It is class based and object oriented programming whose syntax is influenced by C++. The
More informationIntegrated development environment (IDE), 16 Intent explicit intents, 37 filters, 37
Index A Action bar action providers, 147 action view accessing, 146 collapsing, 146 declaration, 145 SearchView, 145 callback method, 144 components, 140 default Theme.Holo theme, 140 getactionbar method,
More informationORACLE UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)
Android Syllabus Pre-requisite: C, C++, Java Programming SQL & PL SQL Chapter 1: Introduction to Android Introduction to android operating system History of android operating system Features of Android
More informationMobile Programming Lecture 1. Getting Started
Mobile Programming Lecture 1 Getting Started Today's Agenda About the Android Studio IDE Hello, World! Project Android Project Structure Introduction to Activities, Layouts, and Widgets Editing Files in
More informationMobile Computing Practice # 2a Android Applications - Interface
Mobile Computing Practice # 2a Android Applications - Interface 1. Create an Android Lunch Places List application that allows the user to take note of restaurant characteristics like its name, address
More informationPraktikum Entwicklung Mediensysteme. Implementing a User Interface
Praktikum Entwicklung Mediensysteme Implementing a User Interface Outline Introduction Programmatic vs. XML Layout Common Layout Objects Hooking into a Screen Element Listening for UI Notifications Applying
More informationMAD ASSIGNMENT NO 2. Submitted by: Rehan Asghar BSSE AUGUST 25, SUBMITTED TO: SIR WAQAS ASGHAR Superior CS&IT Dept.
MAD ASSIGNMENT NO 2 Submitted by: Rehan Asghar BSSE 7 15126 AUGUST 25, 2017 SUBMITTED TO: SIR WAQAS ASGHAR Superior CS&IT Dept. Android Widgets There are given a lot of android widgets with simplified
More informationQ.1 Explain the dialog and also explain the Demonstrate working dialog in android.
Q.1 Explain the dialog and also explain the Demonstrate working dialog in android. - A dialog is a small window that prompts the user to make a decision or enter additional information. - A dialog does
More informationAnswers to Exercises
Answers to Exercises CHAPTER 1 ANSWERS 1. What is an AVD? Ans: An AVD is an Android Virtual Device. It represents an Android emulator, which emulates a particular configuration of an actual Android device.
More informationSpring Lecture 4 Lecturer: Omid Jafarinezhad
Mobile Programming Sharif University of Technology Spring 2016 - Lecture 4 Lecturer: Omid Jafarinezhad User Interface All user interface elements in an Android app are built using View and ViewGroup objects.
More informationCS260 Intro to Java & Android 05.Android UI(Part I)
CS260 Intro to Java & Android 05.Android UI(Part I) Winter 2015 Winter 2015 CS250 - Intro to Java & Android 1 User Interface UIs in Android are built using View and ViewGroup objects A View is the base
More informationAndroid App Development. Mr. Michaud ICE Programs Georgia Institute of Technology
Android App Development Mr. Michaud ICE Programs Georgia Institute of Technology Android Operating System Created by Android, Inc. Bought by Google in 2005. First Android Device released in 2008 Based
More informationIntroduction to User Interface Elements in Android
Introduction to User Interface Elements in Android Objective: In this tutorial you will learn how to use different User Interface elements provided by Android Studio. At the end of the session you will
More informationCS260 Intro to Java & Android 05.Android UI(Part I)
CS260 Intro to Java & Android 05.Android UI(Part I) Winter 2018 Winter 2018 CS250 - Intro to Java & Android 1 User Interface UIs in Android are built using View and ViewGroup objects A View is the base
More informationDeveloping Android Applications
Developing Android Applications Introduction to Software Engineering Fall 2015 Updated 21 October 2015 Android Lab 02 Advanced Android Features 2 Class Plan UI Elements Activities Intents Data Transfer
More informationBeginning Android 4 Application Development
Beginning Android 4 Application Development Lee, Wei-Meng ISBN-13: 9781118199541 Table of Contents INTRODUCTION xxi CHAPTER 1: GETTING STARTED WITH ANDROID PROGRAMMING 1 What Is Android? 2 Android Versions
More informationHello World. Lesson 1. Android Developer Fundamentals. Android Developer Fundamentals. Layouts, and. NonCommercial
Hello World Lesson 1 This work is licensed This under work a Creative is is licensed Commons under a a Attribution-NonCommercial Creative 4.0 Commons International Attribution- License 1 NonCommercial
More informationMobile Programming Lecture 2. Layouts, Widgets, Toasts, and Event Handling
Mobile Programming Lecture 2 Layouts, Widgets, Toasts, and Event Handling Lecture 1 Review How to edit XML files in Android Studio? What holds all elements (Views) that appear to the user in an Activity?
More informationConstraintLayouts in Android
B ConstraintLayouts in Android Constrained Layouts are a new addition to Android. These layouts are similar to Relative Layouts, in that all widgets are positioned with respect to other UI elements. However,
More informationListView Containers. Resources. Creating a ListView
ListView Containers Resources https://developer.android.com/guide/topics/ui/layout/listview.html https://developer.android.com/reference/android/widget/listview.html Creating a ListView A ListView is a
More informationAndroid Using Menus. Victor Matos Cleveland State University
Lesson 8 Notes are based on: The Busy Coder's Guide to Android Development by Mark L. Murphy Copyright 2008-2009 CommonsWare, LLC. ISBN: 978-0-9816780-0-9 & Android Developers http://developer.android.com/index.html
More informationAndroid Apps Development for Mobile and Tablet Device (Level I) Lesson 2
Workshop 1. Compare different layout by using Change Layout button (Page 1 5) Relative Layout Linear Layout (Horizontal) Linear Layout (Vertical) Frame Layout 2. Revision on basic programming skill - control
More informationHave a development environment in 256 or 255 Be familiar with the application lifecycle
Upcoming Assignments Readings: Chapter 4 by today Horizontal Prototype due Friday, January 22 Quiz 2 today at 2:40pm Lab Quiz next Friday during lecture time (2:10-3pm) Have a development environment in
More informationMobila applikationer och trådlösa nät, HI1033, HT2012
Mobila applikationer och trådlösa nät, HI1033, HT2012 Today: - User Interface basics - View components - Event driven applications and callbacks - Menu and Context Menu - ListView and Adapters - Android
More informationJava Training Center - Android Application Development
Java Training Center - Android Application Development Android Syllabus and Course Content (3 months, 2 hour Daily) Introduction to Android Android and it's feature Android releases and Versions Introduction
More informationActivities and Fragments
Activities and Fragments 21 November 2017 Lecture 5 21 Nov 2017 SE 435: Development in the Android Environment 1 Topics for Today Activities UI Design and handlers Fragments Source: developer.android.com
More informationMobile Application Development Android
Mobile Application Development Android Lecture 2 MTAT.03.262 Satish Srirama satish.srirama@ut.ee Android Lecture 1 -recap What is Android How to develop Android applications Run & debug the applications
More informationCS 528 Mobile and Ubiquitous Computing Lecture 2a: Introduction to Android Programming. Emmanuel Agu
CS 528 Mobile and Ubiquitous Computing Lecture 2a: Introduction to Android Programming Emmanuel Agu Editting in Android Studio Recall: Editting Android Can edit apps in: Text View: edit XML directly Design
More informationAndroid for Ubiquitous Computing Researchers. Andrew Rice University of Cambridge 17-Sep-2011
Android for Ubiquitous Computing Researchers Andrew Rice University of Cambridge 17-Sep-2011 Getting started Website for the tutorial: http://www.cl.cam.ac.uk/~acr31/ubicomp/ Contains links to downloads
More informationCS 528 Mobile and Ubiquitous Computing Lecture 3: Android UI, WebView, Android Activity Lifecycle Emmanuel Agu
CS 528 Mobile and Ubiquitous Computing Lecture 3: Android UI, WebView, Android Activity Lifecycle Emmanuel Agu Android UI Design Example GeoQuiz App Reference: Android Nerd Ranch, pgs 1 30 App presents
More informationProgramming Android UI. J. Serrat Software Design December 2017
Programming Android UI J. Serrat Software Design December 2017 Preliminaries : Goals Introduce basic programming Android concepts Examine code for some simple examples Limited to those relevant for the
More informationAdaptation of materials: dr Tomasz Xięski. Based on presentations made available by Victor Matos, Cleveland State University.
Creating dialogs Adaptation of materials: dr Tomasz Xięski. Based on presentations made available by Victor Matos, Cleveland State University. Portions of this page are reproduced from work created and
More informationThis Navigation Drawer Activity contains icons and TextFields that are clickable and take us to the different portions of the app.
Drive Lesson The app is called Drive and is meant for users to keep track of all sessions learning to drive. Because of its purpose, it is tailored specifically for student drivers anywhere from age 16
More informationCS 4330/5390: Mobile Application Development Exam 1
1 Spring 2017 (Thursday, March 9) Name: CS 4330/5390: Mobile Application Development Exam 1 This test has 8 questions and pages numbered 1 through 7. Reminders This test is closed-notes and closed-book.
More informationCOMP4521 EMBEDDED SYSTEMS SOFTWARE
COMP4521 EMBEDDED SYSTEMS SOFTWARE LAB 1: DEVELOPING SIMPLE APPLICATIONS FOR ANDROID INTRODUCTION Android is a mobile platform/os that uses a modified version of the Linux kernel. It was initially developed
More informationAndroid Application Development using Kotlin
Android Application Development using Kotlin 1. Introduction to Kotlin a. Kotlin History b. Kotlin Advantages c. How Kotlin Program Work? d. Kotlin software Prerequisites i. Installing Java JDK and JRE
More informationSymbols. About screen, (addition operator), 12 = (assignment operator), 13 15, 245, 276
Index Symbols + (addition operator), 12 = (assignment operator), 13 15, 245, 276 { } (braces), 23 + (concatenation operator), 12 13, 27, 30, 130 131 -- (decrement operator), 130. (dot operator), 59, 68
More informationMobile Application Development
Unit 1: Introduction to Android Que: 1 Answer the following question in short. 1. What is Android? 2. What is the importance of having an emulator within the Android environment? 3. What is adb? 4. Who
More informationTextView. A label is called a TextView. TextViews are typically used to display a caption TextViews are not editable, therefore they take no input
1 UI Components 2 UI Components 3 A label is called a TextView. TextView TextViews are typically used to display a caption TextViews are not editable, therefore they take no input - - - - - - -
More informationCS 4518 Mobile and Ubiquitous Computing Lecture 2: Introduction to Android Programming. Emmanuel Agu
CS 4518 Mobile and Ubiquitous Computing Lecture 2: Introduction to Android Programming Emmanuel Agu Android Apps: Big Picture UI Design using XML UI design code (XML) separate from the program (Java) Why?
More informationCS378 -Mobile Computing. User Interface Basics
CS378 -Mobile Computing User Interface Basics User Interface Elements View Control ViewGroup Layout Widget (Compound Control) Many pre built Views Button, CheckBox, RadioButton TextView, EditText, ListView
More informationCS371m - Mobile Computing. User Interface Basics
CS371m - Mobile Computing User Interface Basics Clicker Question Have you ever implemented a Graphical User Interface (GUI) as part of a program? A. Yes, in another class. B. Yes, at a job or internship.
More informationCE881: Mobile & Social Application Programming
CE881: Mobile & Social Application Programming, s, s and s Jialin Liu Senior Research Officer Univerisity of Essex 6 Feb 2017 Recall of lecture 3 and lab 3 :) Please download Kahoot or open a bowser and
More informationBuilding User Interface for Android Mobile Applications II
Building User Interface for Android Mobile Applications II Mobile App Development 1 MVC 2 MVC 1 MVC 2 MVC Android redraw View invalidate Controller tap, key pressed update Model MVC MVC in Android View
More informationFig. 2.2 New Android Application dialog. 2.3 Creating an App 41
AndroidHTP_02.fm Page 41 Wednesday, April 30, 2014 3:00 PM 2.3 Creating an App 41 the Welcome app s TextView and the ImageViews accessibility strings, then shows how to test the app on an AVD configured
More informationFigure 2.10 demonstrates the creation of a new project named Chapter2 using the wizard.
44 CHAPTER 2 Android s development environment Figure 2.10 demonstrates the creation of a new project named Chapter2 using the wizard. TIP You ll want the package name of your applications to be unique
More informationAndroid Dialogs. Dialogs are simple visual objects that pop up and display a message or prompt for some user input.
Android Dialogs Dialogs are simple visual objects that pop up and display a message or prompt for some user input. Create a new Android project with a suitable name and package. To begin with it will have
More informationDebojyoti Jana (Roll ) Rajrupa Ghosh (Roll ) Sreya Sengupta (Roll )
DINABANDHU ANDREWS INSTITUTE OF TECHNOLOGY AND MANAGEMENT (Affiliated to West Bengal University of Technology also known as Maulana Abul Kalam Azad University Of Technology) Project report on ANDROID QUIZ
More informationMobile Computing Practice # 2c Android Applications - Interface
Mobile Computing Practice # 2c Android Applications - Interface One more step in the restaurants application. 1. Design an alternative layout for showing up in landscape mode. Our current layout is not
More informationChapter 2 Welcome App
2.8 Internationalizing Your App 1 Chapter 2 Welcome App 2.1 Introduction a. Android Studio s layout editor enables you to build GUIs using drag-and-drop techniques. b. You can edit the GUI s XML directly.
More informationPractical Problem: Create an Android app that having following layouts.
Practical No: 1 Practical Problem: Create an Android app that having following layouts. Objective(s) Duration for completion PEO(s) to be achieved PO(s) to be achieved CO(s) to be achieved Solution must
More informationEventually, you'll be returned to the AVD Manager. From there, you'll see your new device.
Let's get started! Start Studio We might have a bit of work to do here Create new project Let's give it a useful name Note the traditional convention for company/package names We don't need C++ support
More informationAndroid Beginners Workshop
Android Beginners Workshop at the M O B IL E M O N D AY m 2 d 2 D E V E L O P E R D A Y February, 23 th 2010 Sven Woltmann, AndroidPIT Sven Woltmann Studied Computer Science at the TU Ilmenau, 1994-1999
More informationMumbai Android Bootcamp -Course Content
Mumbai Android Bootcamp -Course Content Dear Learners, The Mumbai Android Bootcamp course is floated with an aim to empower aspiring minds to be fluent in computer programming and use that to take a leap
More informationAndroid Application Development Course 28 Contact Hours
Android Application Development Course 28 Contact Hours Course Overview This course that provides the required knowledge and skills to design and build a complete Androidâ application. It delivers an extensive
More informationANDROID USER INTERFACE
1 ANDROID USER INTERFACE Views FUNDAMENTAL UI DESIGN Visual interface element (controls or widgets) ViewGroup Contains multiple widgets. Layouts inherit the ViewGroup class Activities Screen being displayed
More informationCS 4518 Mobile and Ubiquitous Computing Lecture 4: Data-Driven Views, Android Components & Android Activity Lifecycle Emmanuel Agu
CS 4518 Mobile and Ubiquitous Computing Lecture 4: Data-Driven Views, Android Components & Android Activity Lifecycle Emmanuel Agu Announcements Group formation: Projects 2, 3 and final project will be
More informationMobile Programming Lecture 7. Dialogs, Menus, and SharedPreferences
Mobile Programming Lecture 7 Dialogs, Menus, and SharedPreferences Agenda Dialogs Menus SharedPreferences Android Application Components 1. Activity 2. Broadcast Receiver 3. Content Provider 4. Service
More informationMobile Application Development Lab [] Simple Android Application for Native Calculator. To develop a Simple Android Application for Native Calculator.
Simple Android Application for Native Calculator Aim: To develop a Simple Android Application for Native Calculator. Procedure: Creating a New project: Open Android Stdio and then click on File -> New
More informationAndroid Programming - Jelly Bean
1800 ULEARN (853 276) www.ddls.com.au Android Programming - Jelly Bean Length 5 days Price $4235.00 (inc GST) Overview This intensive, hands-on five-day course teaches programmers how to develop activities,
More informationCS 4518 Mobile and Ubiquitous Computing Lecture 4: WebView (Part 2) Emmanuel Agu
CS 4518 Mobile and Ubiquitous Computing Lecture 4: WebView (Part 2) Emmanuel Agu WebView Widget WebView Widget A View that displays web pages Can be used for creating your own web browser OR just display
More informationBootstrap UI & supertooltips Demo
Bootstrap UI & supertooltips Demo By L @ St2654@nyu.edu Funky icons above are not swag, it s for educational purpose and would be used heavily in this chapter. This chapter is designed to understand new
More informationHCA Tech Note 120. Configuring the Control UI Home Page. Option 1: HCA constructs the home page
Configuring the Control UI Home Page HCA contains two different user interfaces: One interface called the Development UI - where all design elements and tools are available and you can make changes, and
More informationAndroidfp_printOnly.book Page vii Tuesday, October 4, :15 AM. Contents. Before You Begin
Androidfp_printOnly.book Page vii Tuesday, October 4, 2011 9:15 AM Preface Before You Begin xiv xxii 1 Introduction to Android 1 1.1 Introduction 2 1.2 Android Overview 4 1.3 Android 2.2 (Froyo) 7 1.4
More informationCS 234/334 Lab 1: Android Jump Start
CS 234/334 Lab 1: Android Jump Start Distributed: January 7, 2014 Due: Friday, January 10 or Monday, January 13 (in-person check off in Mobile Lab, Ry 167). No late assignments. Introduction The goal of
More informationAndroid Using Menus. Victor Matos Cleveland State University
8 Android Notes are based on: The Busy Coder's Guide to Android Development by Mark L. Murphy Copyright 2008-2009 CommonsWare, LLC. ISBN: 978-0-9816780-0-9 & Android Developers http://developer.android.com/index.html
More information