Introduction CIS 136 Building Mobile Apps 1. What did we do Software review 2.

Slides:



Advertisements
Similar presentations
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
Advertisements

Microsoft Expression Web-Illustrated Unit J: Creating Forms.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 7 - JavaScript: Introduction to Scripting Outline 7.1 Introduction 7.2 Simple Program: Printing.
Mobile App Development Using: Presented by Tyler Richey Images from
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
How to make it work? Doncho Minkov Telerik Academy academy.telerik.com Technical Trainer
Phonegap Deployment CIS 136 Building Mobile Apps 1.
1 Introduction to Human Computer Interaction  Livecode Overview  Based on Livecode User Guide from RunRev Ltd. (2010) 
Anatomy of an App HTML, CSS, jQuery, jQuery Mobile CIS 136 Building Mobile Apps 1.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
CST JavaScript Validating Form Data with JavaScript.
Lesson 13: Building Web Forms Introduction to Adobe Dreamweaver CS6 Adobe Certified Associate: Web Communication using Adobe Dreamweaver CS6.
Lightning Talk Fred Rodriguez Nguyen Do CPSC 473 May 6, 2012.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Phonegap Bridge – Telephony CIS 136 Building Mobile Apps 1.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Introduction to Mobile Programming. Slide 2 Overview Fundamentally, it all works the same way You get the SDK for the device (Droid, Windows, Apple) You.
Javascript: More features B. Ramamurthy 7/4/2014B. Ramamurthy, CSE651C1.
DUE Hello World on the Android Platform.
JavaScript: Functions © by Pearson Education, Inc. All Rights Reserved.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
CIS 205—Web Design & Development Dreamweaver Chapter 1.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
1 Chapter 1 Introduction to Java. 2 History of Java Java Originally for _________________________ devices Then used for creating Web pages with __________________________.
Using Client-Side Scripts to Enhance Web Applications 1.
Android Boot Camp for Developers Using Java, 3E
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
An Introduction to Front-end Web Development Tom Perkins.
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit G Using Forms to Control Input.
User Interface Design using jQuery Mobile CIS 136 Building Mobile Apps 1.
Mobile web Sebastian Lopienski IT Technical Forum 29 June 2012.
JavaScript - A Web Script Language Fred Durao
Creating an Example Android App in Android Studio Activity lifecycle & UI Resources.
Social Media Apps Programming Min-Yuh Day, Ph.D. Assistant Professor Department of Information Management Tamkang University
JQuery JavaScript is a powerful language but it is not always easy to work with. jQuery is a JavaScript library that helps with: – HTML document traversal.
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 13 GUI Programming.
Trunica Inc. 500 East Kennedy Blvd #300 Tampa, FL Cross Platform Mobile Apps With Cordova and Visual Studio 2015 © Copyright 2015.
Selenium January Selenium course content  Introduction (Session-1)Session-  Automation  What is automation testing  When to go for automation.
Downloading Lumi Show on iPhones Through our technology, people gain insight, instantly.
Understanding JavaScript and Coding Essentials Lesson 8.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
Craig Pelkie Copyright © 2015, Craig Pelkie ALL RIGHTS RESERVED Use RPG to Mobilize your IBM i.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Mobile Application Development Kevin Payne & Andi Saputra JWH Group.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
Phonegap Bridge –Geolocation and Google maps CIS 136 Building Mobile Apps 1.
APP DESIGN AND DEVELOPMENT WITH THE IONIC FRAMEWORK Chuck Leone
Phonegap API & Phonegap Bridge CIS 136 Building Mobile Apps 1.
Themes CIS 136 Building Mobile Apps 1. Themes 2  jQuery Mobile has a robust theme framework that supports up to 26 sets of toolbar, content and button.
Working in a Mobile App Development Environment Lesson 2.
PhoneGap. web-based mobile development framework, based on the open-source Cordova project. use standard web technologies such as HTML5, CSS3, and JavaScript.
Mobile App Development Using:
A little more App Inventor and Mind the GAP!
PhoneGap, Processing.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Topics Graphical User Interfaces Using the tkinter Module
Obtaining the Required Tools
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Compile, Build, and Debug
Phonegap Bridge Configuration file
CIS 136 Building Mobile Apps
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
Office 365 Development.
Apache Cordova What is it ? Platforms Development Architecture Plugins
Introduce to Angular 6 Present by: Võ Văn Hào
MyLion Registration Website | Mobile device
Presentation transcript:

Introduction CIS 136 Building Mobile Apps 1

What did we do Software review 2

Installations 3  Node.js – package installer - downloaded, unzipped, installed Verified installation via CMD line Interface (CLI) > npm -v  Brackets – editor - downloaded, unzipped, installed  Phonegap Desktop – app creator - downloaded, unzipped, found.exe and ran (no installation)  Phonegap  Installed using Node.js via CMD line Interface (CLI) > npm install – g phonegap  Verified installation via CMD line Interface (CLI) > phonegap –v  Phonegap Developer App – emulator for Android phones –downloaded from play store and installed on phone

Scaffolding Understanding the folders and files 4

Scaffolding 5 .cordova (optional)  cli hooks (like before_build, after_plugin_add, etc)  hooks (replaces.cordova)  pieces of code that Cordova CLI executes at certain points in your PhoneGap application build  platforms  Where the platform’s build file will be located, if building manually  plug-ins  Phonegap libraries providing device interface  config.xml  Needed to build the app file – lists plugins and other aspects of app

Scaffolding 6  All work is done in the www folder  css  Style sheets for app and jQuery mobile  img  Image files  js  Jquery libraries and scripts  res  Splash screen and icons  spec  Jasmine unit testing framework www folder

CMD line Create, deploy, build 7

CMD line – Create app 8  Phonegap Desktop is an easy way to create an app and start the testing emulator (Phonegap Developer)  Can create app using CMD window > phonegap create >phonegap create myproject com.elcamino.myproject MyProject myproject – will become name of app’s folder com.elcamino.myproject – added into config.xml file in widget tags, as ID attribute MyProject – added into config.xml file, inside tag Note: do not use spaces in app names

Phonegap Developer App 9  Starts a phonegap server  3 finger tap –home page  4 finger tap – refresh  Can also start a phonegap server using CMD window > phonegap serve  this will return an IP address that you can use in the Phonegap Developer app

Dialoging Beep, Alert, prompt, confirm 10

Dialoging 11  Phonegap API provides ways to communicate with the user, using same approach as in traditional web design  Alert window  Prompt window  Confirm window  The dialog plugin provides access to these native dialog UI elements  Plugin name: org.apache.cordova.dialog

Dialoging 12  Before accessing native features using the Phonegap API, must ensure that the phonegap container has finished initializing  Use event listeners, and listen for when the device is ready document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { }

Plugin methods 13  Four methods:  navigator.notification.alert  navigator.notification.confirm  navigator.notification.prompt  navigator.notification.beep

Beep method 14  SYNTAX navigator.notification.beep(times); times: The number of times to repeat the beep. (Number)

Alert method – shows and alert dialog box 15 SYNTAX: navigator.notification.alert(message, alertCallback, [title], [buttonName]) message: Dialog message. (String) alertCallback: Callback to invoke when alert dialog is dismissed. (Function) title: Dialog title. (String) (Optional, defaults to Alert) buttonName: Button name. (String) (Optional, defaults to OK) document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { navigator.notification.alert("hello monica", alertDismissed); function alertDismissed() { }

Confirm method 16  SYNTAX navigator.notification.confirm(message, confirmCallback, [title], [buttonLabels]) message: Dialog message. (String) confirmCallback: Callback to invoke with index of button pressed (1, 2, or 3) or when the dialog is dismissed without a button press (0). (Function) title: Dialog title. (String) (Optional, defaults to Confirm) buttonLabels: Array of strings specifying button labels. (Array) (Optional, defaults to [OK,Cancel])  confirmCallback executes when the user pressesone of the buttons in the confirmation dialog box

17

Prompt method 18  SYNTAX  navigator.notification.prompt(message, promptCallback, [title], [buttonLabels], [defaultText]) message: Dialog message. (String) promptCallback: Callback to invoke with index of button pressed (1, 2, or 3) or when the dialog is dismissed without a button press (0). (Function) title: Dialog title (String) (Optional, defaults to Prompt) buttonLabels: Array of strings specifying button labels (Array) (Optional, defaults to ["OK","Cancel"]) defaultText: Default textbox input value (String) (Optional, Default: empty string)  promptCallback executes when the user presses one of the buttons in the dialog box

19 The promptCallback executes when the user presses one of the buttons in the prompt dialog box. The results object passed to the callback contains the following properties: buttonIndex: The index of the pressed button. (Number) Note that the index uses one-based indexing, so the value is 1, 2, 3, etc. input1: The text entered in the prompt dialog box. (String)