01 Mobile Web Introduction

37
Mobile Web Is Here Tuesday, September 18, 12

description

An introductory keynote to mobile web development history and challanges

Transcript of 01 Mobile Web Introduction

Page 1: 01 Mobile Web Introduction

Mobile Web Is Here

Tuesday, September 18, 12

Page 2: 01 Mobile Web Introduction

Agenda

The Mobile Eco System

Challenges for Mobile Developers

Mobile Web To The Rescue

Online Resources

Tuesday, September 18, 12

Page 3: 01 Mobile Web Introduction

The Mobile Eco System

Tuesday, September 18, 12

Page 4: 01 Mobile Web Introduction

The Mobile Eco SystemAlmost Dead

Dead DeadAlmost Dead

Tuesday, September 18, 12

Page 5: 01 Mobile Web Introduction

How We Got Here1990, started using 2G systems

1992, First SMS

1998, First ringtone sale

1999, First mobile internet in Japan

Tuesday, September 18, 12

Page 6: 01 Mobile Web Introduction

How We Got Here2G was good for talk, not good enough for data

2001, First 3G network in Japan

2007, 295 Mil subscribers on 3G networks worldwide

Tuesday, September 18, 12

Page 7: 01 Mobile Web Introduction

Modern Mobile Device3G or 3.5G capable

Internet Connectivity

Voice and Video calls

No longer used “just for talking”

Supports Apps

Tuesday, September 18, 12

Page 8: 01 Mobile Web Introduction

Major Players

Apple

Google

Nokia

Microsoft

Tuesday, September 18, 12

Page 9: 01 Mobile Web Introduction

Apple2007, first iPhone device

iPhone Power

Focus on Design

Use Capacitive Touchscreen

AppStore Built In

Tuesday, September 18, 12

Page 10: 01 Mobile Web Introduction

Tuesday, September 18, 12

Page 11: 01 Mobile Web Introduction

Google

2005 Google Buys Android Inc

2007 Announcing Android Platform

2008 HTC Dream (first Android Device)

Tuesday, September 18, 12

Page 12: 01 Mobile Web Introduction

Nokia

The Oldest player in the game.

World’s largest phone manufacturer.

Owner of the Symbian OS.

Tuesday, September 18, 12

Page 13: 01 Mobile Web Introduction

MicrosoftKnown best for its desktop applications.

Its mobile version Windows Mobile was never a success.

Its newest product WinPhone7 looks promising.

Tuesday, September 18, 12

Page 14: 01 Mobile Web Introduction

Which One Should You Choose ?iPhone apps are written in Objective C.

Android apps are written in Java.

Symbian apps are written in C++.

Blackberry apps are written in Java (but not the same Java as Android).

WinPhone apps are written in .NET

Tuesday, September 18, 12

Page 15: 01 Mobile Web Introduction

ALL OF THEM

Tuesday, September 18, 12

Page 16: 01 Mobile Web Introduction

Mobile HTML/CSS/JS

Web technology is the one thing all devices have in common

Tuesday, September 18, 12

Page 17: 01 Mobile Web Introduction

Mobile HTML/CSS/JS

Using HTML, CSS and JavaScript, we can write applications that will run on any device.

Tuesday, September 18, 12

Page 18: 01 Mobile Web Introduction

Mobile HTML/CSS/JS

These apps can run online or offline using HTML5 offline capabilities

Tuesday, September 18, 12

Page 19: 01 Mobile Web Introduction

Mobile HTML/CSS/JS

Web apps can integrate special device capabilities to create Hybrid Applications

Music Waste Festival App

Tuesday, September 18, 12

Page 20: 01 Mobile Web Introduction

Web Vs. Native

Coding Write once, test everywhere

Write everywhere, Test everywhere

Caps Use limited device capabilities

Use full device capabilities

Look & Feel Build your own UI components

Use device UI components

Tuesday, September 18, 12

Page 21: 01 Mobile Web Introduction

Mobile HTML/CSS/JS

The App is a single html file, with many stylesheets and script files.

Modular and OO JavaScript is used, to keep “state”

Tuesday, September 18, 12

Page 22: 01 Mobile Web Introduction

Mobile Web Challenges

Develop & Test on many platforms

Adjust UI to various screen sizes

Handle mobile UX

Tuesday, September 18, 12

Page 23: 01 Mobile Web Introduction

MOBILE APP USER EXPERIENCE

Tuesday, September 18, 12

Page 24: 01 Mobile Web Introduction

Mobile UX

App is used in short bursts - waiting for the bus or subway

App is used while watching TV

App is interrupted by incoming call or SMS

Tuesday, September 18, 12

Page 25: 01 Mobile Web Introduction

The ToolsCode Less, Do More

Tuesday, September 18, 12

Page 26: 01 Mobile Web Introduction

Writing AppsSame source editor as the web

Can use:

Komodo Edit

Dashcode

MacVim/gvim/vim

Aptana Studio

Tuesday, September 18, 12

Page 27: 01 Mobile Web Introduction

Writing Apps

But you should really just use Webstorm

Tuesday, September 18, 12

Page 28: 01 Mobile Web Introduction

Debugging Apps - Desktop

Use Safari/Chrome inspector tools to debug

Use Ripple to test your hybrid app from chrome

Use iPhone/Android Emulator

Use BrowserStack

Tuesday, September 18, 12

Page 29: 01 Mobile Web Introduction

Debugging Apps - Device

Use weinre For on device inspection

Tuesday, September 18, 12

Page 30: 01 Mobile Web Introduction

Deploying Apps

For online apps, every web server will do.

For offline apps, consider PhoneGap

Before deployment, use a build script to minimize js/css files

Tuesday, September 18, 12

Page 31: 01 Mobile Web Introduction

Tips: Performance

jQuery is not your friend (consider jqmobi)

Test on a real device throughout development

Think about network traffic

Tuesday, September 18, 12

Page 32: 01 Mobile Web Introduction

HTML5 Boilerplate

A ready made starter for html5 mobile apps

Cross-platform compatible (Android, iOS, Blackberry, Symbian)

Supports all devices and overcomes many glitches

http://html5boilerplate.com/mobile/

Tuesday, September 18, 12

Page 33: 01 Mobile Web Introduction

Mobile Frameworks

JQuery Mobile

Sencha Touch

jqMobi

Tuesday, September 18, 12

Page 34: 01 Mobile Web Introduction

jQuery Mobile

Most hyped mobile framework today, and the one we’ll use in the course.

Built on top of jQuery

Themed UI Widgets

Tuesday, September 18, 12

Page 35: 01 Mobile Web Introduction

Sencha Touch

Stable and mature mobile framework

Works best on iPhone & Android

Commercial framework (currently free)

Tuesday, September 18, 12

Page 36: 01 Mobile Web Introduction

Q & A

Tuesday, September 18, 12

Page 37: 01 Mobile Web Introduction

Thanks For Listening

Ynon Perek

[email protected]

ynonperek.com

Tuesday, September 18, 12