Phonegap Bridge Configuration file

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

Mobile App Development Using: Presented by Tyler Richey Images from
The Web Warrior Guide to Web Design Technologies
1 Mobile Computing Mobile First (formerly Worklight) Copyright 2015 by Janson Industries.
Coursework 2: getting started (4) – using PhoneGap to build mobile applications (optional) Chris Greenhalgh G54UBI /
Explore the Dreamweaver Workspace View a Web page and use Help Plan and Define a Web site Add a Folder and Pages, and set the Home page Create and View.
Introduction CIS 136 Building Mobile Apps 1. What did we do Software review 2.
Chapter 1 Getting Started With Dreamweaver. Explore the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
CST JavaScript Validating Form Data with JavaScript.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 2: Working with Webpage Files.
4.1 JavaScript Introduction
Lightning Talk Fred Rodriguez Nguyen Do CPSC 473 May 6, 2012.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Favorite Twitter® Searches App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
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.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
Introduction to JavaScript 41 Introduction to Programming the WWW I CMSC Winter 2004 Lecture 17.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
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
First Venture into the Android World Chapter 1 Part 2.
Trunica Inc. 500 East Kennedy Blvd #300 Tampa, FL Cross Platform Mobile Apps With Cordova and Visual Studio 2015 © Copyright 2015.
PAYware Transact Terminal Interface Manager
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.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Live. learn. work. play Superior Avenue Suite 310 Cleveland Ohio Tel: Fax:
JavaScript 사용현황 김민철. Table of contents  1. Mobile  WAC  PhoneGap  AppsPresso  2. TV  Samsung Smart TV  KT IPTV  3. 기타  node.js 2.
APP DESIGN AND DEVELOPMENT WITH THE IONIC FRAMEWORK Chuck Leone
Phonegap API & Phonegap Bridge CIS 136 Building Mobile Apps 1.
INTRODUCTION TO ANDROID. Slide 2 Introduction I take a top-down approach to describing an application’s anatomy.
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.
Finally getting to html and CSS… Tim Berners-Lee, the writer of the software program that makes him the inventor of the WWW, defines the Internet as a.
Mobile App Development Using:
4.01 How Web Pages Work.
Doron Orbach UCMDB Product Manager
DHTML.
ET-570 Smart Phone Apps.
Chapter 5 Validating Form Data with JavaScript
Mobile Applications (Android Programming)
In this session, you will learn to:
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Creating Oracle Business Intelligence Interactive Dashboards
Topics Graphical User Interfaces Using the tkinter Module
Learning the Basics – Lesson 1
CONTENT MANAGEMENT SYSTEM CSIR-NISCAIR, New Delhi
Apache Cordova Overview
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
Compile, Build, and Debug
JQuery UI Plug-ins, Object Models & the Window Object
Social Media And Global Computing Introduction to Visual Studio
CIS16 Application Development Programming with Visual Basic
Forms, cont’d.
Tutorial 6 Creating Dynamic Pages
And I have to create mobile apps too?
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
Office 365 Development.
Apache Cordova What is it ? Platforms Development Architecture Plugins
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Presentation transcript:

Phonegap Bridge Configuration file CIS 136 Building Mobile Apps

Configuration Bridges the Gap between your standard web technologies, and the unique capabilities inherent in your smartphone A platform agnostic XML file that controls many aspects of an app's behavior Defines global and platform-specific options core set of images for each target platform icons and splash screens If you do not specify an icon then the Apache Cordova logo is used Root element of the config file is the <widget>

Core components id: Specifies the app's reverse-domain identifier version: Full version number expressed in major/minor/patch notation versioncode: Alternative version for Android xmlns: Namespace for the config.xml document xmlns: gap Namespace prefix name: The app's formal name, as it appears on the device's home screen and within app-store interfaces description: Specifies metadata that may appear within app-store listings author: Specifies contact information that may appear within app-store listings content: The app's starting page in the top-level web assets directory. The default value is index.html

Origin policy access: Defines the set of external domains the app is allowed to communicate with. The default “*” allows it to access any server allow-intent: Controls which URLs the app is allowed to ask the system to open. By default, no external URLs are allowed platform: configurations that should only appear in a specific platform

Preferences options as pairs of name/value attributes http://devgirl.org/files/config-app/

Icons References to icons used in the app

Splash Screen

Plug-ins add-on code that provides JavaScript interface to native components In Phonegap, there is a minimal set and there are lots of 3rd party plug-ins to choose from, like Paypal http://node-modules.com/search?u=cordova&q=paypal+ecosystem%3Acordova Learning how and when to use the plug-in is key Requires writing Javascript/jQuery code https://cordova.apache.org/docs

Core plug-ins Battery Camera Console Contacts Device Accelerometer Compass Dialogs File System File Transfer Geolocation Globalization inApp Browser Media Media Capture Network Information Splashscreen Vibration StatusBar http://docs.phonegap.com/plugin-apis/

Beep, Alert, prompt, confirm Dialog Plugin Beep, Alert, prompt, confirm

Dialog Plugin 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

Dialog Plugin 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

Dialog Plugin methods Four methods: navigator.notification.alert navigator.notification.confirm navigator.notification.prompt navigator.notification.beep

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

Alert method – shows and alert dialog box 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)

Confirm method 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])

Confirm Method confirmCallback (confirmDialog) executes when the user presses one of the buttons in the confirmation dialog box

Prompt method 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)

Prompt Method The promptCallback (promptResponse) 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. input: The text entered in the prompt dialog box. (String)