MOBILE DEVELOPMENT. With jquery Mobile & PhoneGap by Pete Freitag / Foundeo Inc. petefreitag.com / foundeo.com

Similar documents
Making Web Application using Tizen Web UI Framework. Koeun Choi

Cross-Platform Tools

Introduction to PhoneGap

place/business fetch details, removefromfavorite () function, 189 search button handler bind, B BlackBerry build environment

the intro for RPG programmers Making mobile app development easier... of KrengelTech by Aaron Bartell

Building Mobile Applications Creating ios applications with jquery Mobile, PhoneGap, and Drupal 7

Retool your HTML/JavaScript to go Mobile

Introduction: The Xcode templates are not available in Cordova or above, so we'll use the previous version, for this recipe.

Republic Polytechnic School of Infocomm C308 Web Framework. Module Curriculum

Web Development 1 A4 Project Description Web Architecture

CS 696 Emerging Web and Mobile Technologies Spring Semester, 2011 Doc 9 jquery Mobile Mar 1, 2011

<Insert Picture Here>

Develop a Native App (ios and Android) for a Drupal Website without Learning Objective-C or Java. Drupaldelphia 2014 By Joe Roberts

Building Web Applications with HTML5, CSS3, and Javascript: An Introduction to HTML5

Website Planning Checklist

1. About the Denver LAMP meetup group. 2. The purpose of Denver LAMP meetups. 3. Volunteers needed for several positions

Peers Technologies Pvt. Ltd. Web Application Development

Adobe Summit 2015 Lab 712: Building Mobile Apps: A PhoneGap Enterprise Introduction for Developers

Web Design Basics. Cindy Royal, Ph.D. Associate Professor Texas State University

PLAYER DEVELOPER GUIDE

ios SDK possibilities & limitations

Developing Mobile Websites with Responsive Web Design and jquery Mobile

SYST35300 Hybrid Mobile Application Development

Mobility Introduction Android. Duration 16 Working days Start Date 1 st Oct 2013

(This page intentionally left blank)

Website Login Integration

Mobile Web Applications. Gary Dubuque IT Research Architect Department of Revenue

HYBRID APPLICATION DEVELOPMENT IN PHONEGAP USING UI TOOLKITS

Designing for the Mobile Web Lesson 3: HTML5 Web Apps

CiviMobile & CiviSync Mobile. Peter McAndrew Rohit Thakral

Your first SmartPad4i Application with JQueryMobile.

Online Multimedia Winter semester 2015/16

Nokia Mobile HTML5 Framework. UX introduction to creating location-based mobile apps

max firt.mobi martes 26 de julio de 11

research: technical implemenation

Copyright 2011 Center for Innovation in Teaching and Research 1

Fortis Theme. User Guide. v Magento theme by Infortis. Copyright 2012 Infortis

Mobile Learning Basics + (Free) Mobile Learning Guide. Jason Haag and Marcus Birtwhistle

How to code, test, and validate a web page

c. Write a JavaScript statement to print out as an alert box the value of the third Radio button (whether or not selected) in the second form.

Mobile App Design and Development

MAGENTO THEME SHOE STORE

With mobile devices and tablets becoming popular for browsing the web, an increasing number of websites are turning to responsive designs to

Introduction to Tizen SDK Alpha. Taiho Choi Samsung Electronics

PNY DUO-LINK On-The-Go Flash Drive for iphone and ipad. User Manual

Transitioning Computer Courseware to Mobile Web Apps

Quick Start Guide Mobile Entrée 4

Developing Applications for ios

JC Now. Case Study in Building an App on the Cheap. Nick O Day GIS Manager. be the exception

Cross-Platform Phone Apps & Sites with jquery Mobile

The Bootstrapper's Guide to the Mobile Web by Deltina Hay. Mobile App Strategy Worksheet. I. Target Market, App Category, Platforms

About this Release. Introduction. Prerequisites. Installation. Using the Web SDK Packager

How To Use Titanium Studio

Tobar Segais: User Manual. Stephen Connolly

Using the Jive for ios App

ecommercesoftwareone Advance User s Guide -

JTouch Mobile Extension for Joomla! User Guide

Enabling Cordova (aka PhoneGap) on Tizen. René Pourtier / Luc Yriarte

CS412 Interactive Lab Creating a Simple Web Form

Version 1.3 OFFICIAL THEME USER GUIDE. Renova. Unique Creative Portfolio - Responsive HTML5

Developer Guide: Hybrid Apps. SAP Mobile Platform 2.3

Building native mobile apps for Digital Factory

Building a Simple Mobile optimized Web App/Site Using the jquery Mobile Framework

Sizmek Formats. IAB Mobile Pull. Build Guide

Chapter 2 HTML Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

JavaScript By: A. Mousavi & P. Broomhead SERG, School of Engineering Design, Brunel University, UK

Google Sites: Creating, editing, and sharing a site

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS COPYRIGHT 2013 TERRY ANN MORRIS, ED.D

Magento 1.4 Theming Cookbook

Shoppingcart page type overview

Introduction to Android Development

Configuring iplanet 6.0 Web Server For SSL and non-ssl Redirect

DocuSign for Microsoft Dynamics CRM

7 The Shopping Cart Module

Generate Android App

unisys ClearPath eportal Developer 6.1 Unisys Multi-Device App Developer s Guide March

ios How to Back Up from icloud

Visualizing a Neo4j Graph Database with KeyLines

Using PhoneGap Build. Chapter 4. In this chapter, we cover:

Getting started with Adobe Reader

PhoneGap Build Starter

ICE: HTML, CSS, and Validation

Magento Theme EM0006 for Computer store

HTML5 and CSS3 Part 1: Using HTML and CSS to Create a Website Layout

Developing Cross-platform Mobile and Web Apps

jquery Tutorial for Beginners: Nothing But the Goods

Step by step guides. Deploying your first web app to your FREE Azure Subscription with Visual Studio 2015

Version 1.0 OFFICIAL THEME USER GUIDE. reva. HTML5 - Responsive One Page Parallax Theme

ANDROID APP DEVELOPMENT: AN INTRODUCTION CSCI /19/14 HANNAH MILLER

Customize Mobile Apps with MicroStrategy SDK: Custom Security, Plugins, and Extensions

THE SAS OUTPUT DELIVERY SYSTEM: BOLDLY TAKE YOUR WEB PAGES WHERE THEY HAVE NEVER GONE BEFORE! CHEVELL PARKER, SAS INSTITUTE INC.

Mobile Development Frameworks Overview. Understand the pros and cons of using different mobile development frameworks for mobile projects.

More details >>> HERE <<<

Quick Guide: ixpand Transfer

1 of 8 9/14/2011 5:40 PM

Aspect WordPress Theme

Multi-Platform Mobile Application Development Analysis. Lisandro Delía Nicolás Galdámez Pablo Thomas Leonardo Corbalán Patricia Pesado

HTML Tables. IT 3203 Introduction to Web Development

Creating a Website with Google Sites

Using Microsoft Visual Studio API Reference

Transcription:

MOBILE DEVELOPMENT With jquery Mobile & PhoneGap by Pete Freitag / Foundeo Inc. petefreitag.com / foundeo.com

AGENDA Learn to build mobile web sites using jquerymobile and HTML5 Learn about PhoneGap for building native iphone/ios & Android Apps

JQUERYMOBILE A touch optimized HTML5 Framework for building mobile websites and apps.

ALPHA jquery Mobile is currently in Alpha 2, so keep in mind that not all features are implemented or stable at this time.

TOUCH OPTIMIZED? UI Controls need to be big enough to touch. Minimize the need for typing No mouseover, mousemove events, instead you have events like swipe, swipeleft, swiperight, orientationchange, tap, taphold, etc. Optomized Form Controls

MOBILE OS SUPPORT

BUT I DON T KNOW JQUERY You don t even need to know JavaScript to build a simple jquery Mobile Web Site or App. If you know jquery you will feel right at home, when it comes time to add dynamic interactions. But don t worry if you don t know any jquery!

WHAT S IN JQUERY MOBILE? Pages & Dialogs Toolbars (Header & Footer bars) Button s (Including a set of stock icons) Form Controls (Slider s, Toggles, enhanced radio, checkbox, etc) List View Control

LET S GET STARTED <!doctype html> <html> <head> <title>jquery Mobile Example</title> <link rel="stylesheet" href="jquery.mobile-1.0a2/jquery.mobile-1.0a2.css" /> <script src="jquery-1.4.4.min.js"></script> <script src="jquery.mobile-1.0a2/jquery.mobile-1.0a2.js"></script> </head> <body> </body> </html> 1) HTML5 Doctype 2) jquery Mobile CSS 2) jquery Core JS 3) jquery Mobile JS

DATA-ROLE S jquery Mobile uses an HTML attribute called: data-role to associate an element with a widget. For example: data-role= page data-role= header data-role= footer data-role= navbar data-role= button data-role= listview data-role= controlgroup data-role= fieldcontain

DATA-WHAT? HTML5 added a feature called custom data attributes. Any tag attribute that begins with data- may be used as a custom data storage associated with the element. So instead of doing <div id= cat#cat.id# ></div> you can do <div data-id= #cat.id# >...</div> and it will still pass as valid HTML5. More here: http://ejohn.org/blog/html-5-data-attributes/

PAGES A HTML Document can consist of multiple pages. Pages are linked together via a link to #pageelementid

EXAMPLE PAGES <div data-role="page" id="home"> <div data-role="header"> <h1>home</h1> <a href="#settings" data-role="button"> Settings </a> </div> </div> <div data-role="page" id="settings" data-theme="b"> <div data-role="header"> <h1>settings</h1> </div> <div data-role="content"> Lorum Ipsum... </div> </div>

THEME S jquery Mobile comes with several color schemes which can be controlled using the data-theme attribute. You can specify a data-theme on a page, buttons, toolbar s, etc. Try specifying data-theme=a,b,c,d,e

BUTTONS You can create a button by adding data-role= button to a button tag, an a tag, or input type=submit button reset image Add an icon to the button using data-icon= icon-name By default the icon goes on the left, you can put it on the right, top or bottom by specifying data-iconpos or to just use the icon use data-iconpos= notext

BUTTON ICONS Comes with several icons You can use your own custom icons easily.

LISTVIEW <ul data-role="listview" data-theme="c"> <li><a href="#about">about Us</a></li> <li><a href="#settings">settings</a></li> </ul> More Advanced List View options available, see docs.

WORKING WITH FORMS Form Element s should be wrapped in a div with a datarole= fieldcontain attribute. <form> <div data-role="fieldcontain"> <label for="slider">slider:</label> <input type="range" name="slider" id="slider" value="0" min="0" max="100" /> </div> </form>

ALPHA LIMITATIONS JavaScript API s seam to be in flux. It can be tricky to update content dynamically. Still waiting on some handy things like a date picker. Overall it s a very functional alpha, but there certainly are some bugs.

JQUERY MOBILE We ve just scratched the surface of what you can do with jquery Mobile. Checkout: http://jquerymobile.com/

PHONEGAP www.phonegap.com

WHAT IS PHONEGAP? A Set of templates for building native ios, Android, Blackberry, Symbian, and WebOS using HTML, CSS, and JavaScript.

PHONEGAP.JS phonegap.js contains a device neutral javascript API for accessing native device API s such as: Camera Accelerometer GPS Compass Address Book / Contacts Media (Audio / Video) Events And More see docs.phonegap.com for a full reference.

PHONEGAP PLUGINS There are several plugins for accessing functionality that may be platform specific. For Example: Keychain Access (for storing sensitive data on ios) PayPal API Plugin Native iphone Controls

CREATING AN IOS APP Download Xcode and the ios SDK from Apple Download PhoneGap Run the PhoneGapLibInstaller.pkg installer Launch Xcode, create a new project, and select the PhoneGap Template Click Build & Run to launch the ios Simulator.

CREATING AN IOS APP

CREATING AN IOS APP Edit index.html

CREATING AN IOS APP Place any css, js, or images your app will use in the www folder. Edit Resources/Default.png this is your startup image. Edit Resources/icon.png this is your app icon. Edit Resources/AppName-Info.plist settings such as Bundle Display Name.

IPHONE DEMO

CREATING AN ANDROID APP Download and install the Android SDK Tips: http://www.petefreitag.com/item/763.cfm Install Android Eclipse Plugin Create a New Android Project in Eclipse See: http://wiki.phonegap.com/w/page/30862722/phonegapandroid-eclipse-quickstart

ANDROID DEMO

DEMO MILEAGEPAD.COM ColdFusion Powered: MileagePad.com

QUESTIONS? Thank You! petefreitag.com / foundeo.com