Top Banner
HTML5 & PhoneGap @clonncd Caesar Chi
43

html5 & phonegap

Apr 15, 2017

Download

Technology

Caesar Chi
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: html5 & phonegap

HTML5 & PhoneGap@clonncd

Caesar Chi

Page 2: html5 & phonegap

Why is

Page 3: html5 & phonegap

Long time ago,

Desktop is only we have

Page 4: html5 & phonegap

But now ...

Page 5: html5 & phonegap
Page 6: html5 & phonegap

Most interface are NOT complex

Page 7: html5 & phonegap
Page 8: html5 & phonegap

Code once, Runs Anywhere

Page 9: html5 & phonegap
Page 10: html5 & phonegap

Lets Try

Page 11: html5 & phonegap

<meta name="viewport" content="width=1024" />

Page 12: html5 & phonegap

<meta name="viewport" content="width=1024" />

Bad Smell

Page 13: html5 & phonegap

<meta name="viewport" content="width=device-width”>

Page 14: html5 & phonegap

Use %

Page 15: html5 & phonegap
Page 16: html5 & phonegap

Float

Page 17: html5 & phonegap

display

Page 18: html5 & phonegap

http://jsbin.com/muhayenudo/2/editMedia Percent

Page 19: html5 & phonegap

http://jsbin.com/muguniwaqu/1/edit

Basic media Query

Page 20: html5 & phonegap

Displayhttp://jsbin.com/muhayenudo/3/edit

Page 21: html5 & phonegap

http://mediaqueri.es/

Reference

Page 22: html5 & phonegap

Shut Up Do Code

Page 23: html5 & phonegap

Phonegap install

Page 24: html5 & phonegap

http://phonegap.com/

Page 25: html5 & phonegap

Support

• Amazon Fire OS

• Android

• BlackBerry 10

• Firefox OS

• iOS

• Ubuntu

• Windows Phone 8

• Windows

資料資源http://docs.phonegap.com/en/edge/

guide_support_index.md.html#Platform%20Support

Page 26: html5 & phonegap

npm install -g phonegap

Page 27: html5 & phonegap

npm install -g cordova npm install -g phonegap

Installation

Page 28: html5 & phonegap
Page 29: html5 & phonegap

phonegap new [$NAME]phonegap platform add iOSphonegap platform add androidphonegap platform add browserphonegap run browser

command

http://docs.phonegap.com/en/3.0.0/guide_cli_index.md.html

Page 30: html5 & phonegap

Build a phonegap app

Page 31: html5 & phonegap

https://build.phonegap.com/apps

compressed project to zip and uploaddeploy to github repo

Page 32: html5 & phonegap

Problem & Solution

Page 33: html5 & phonegap

iOS

npm install -g ios-deploynpm install -g ios-sim

Page 34: html5 & phonegap

Browser

http://emulate.phonegap.com/

Page 35: html5 & phonegap

android

Set ENV $ANDROID_HOME

Page 36: html5 & phonegap

Support

• Amazon Fire OS

• Android

• BlackBerry 10

• Firefox OS

• iOS

• Ubuntu

• Windows Phone 8

• Windows

Page 37: html5 & phonegap

Please install Android target "android-19"

Problem

Page 38: html5 & phonegap

Please install Android target "android-19"

Solution

Page 39: html5 & phonegap

Suggestion

Page 40: html5 & phonegap

Suggestion

http://www.genymotion.com/

Page 41: html5 & phonegap

More

Page 42: html5 & phonegap

https://facebook.github.io/react-native/

Page 43: html5 & phonegap

http://ionicframework.com/