21
Web Apps Development Best Practices Mohamad Iqbal Nokia Developer Certified Trainer http://about.me/ciebal http://nice.or.id/ciebal

Web Apps Development Best Pactices | Hackonten

Embed Size (px)

DESCRIPTION

Slide for Hackonten (www.hackonten.com)

Citation preview

Page 1: Web Apps Development Best Pactices | Hackonten

Web Apps Development Best Practices

Mohamad IqbalNokia Developer Certified Trainer

http://about.me/ciebalhttp://nice.or.id/ciebal

Page 2: Web Apps Development Best Pactices | Hackonten

Architecture

WWW

Nokia Browser for Series 40 Proxy

Server

Nokia Browser for Series 40 Client

(Phone)HTML, CSS, Javascript, Images, XML, JSON, etc

Optimised content (HTML, CSS, compressed images)

Page 3: Web Apps Development Best Pactices | Hackonten

Platform Services

• Messaging• Location• Telephone

Page 4: Web Apps Development Best Pactices | Hackonten

Developer Kit

• Nokia Web Tools 1.0• Nokia Web Tools 1.5• Nokia Web Tools 2.0 (beta)

Page 5: Web Apps Development Best Pactices | Hackonten

Comparison Nokia Web Tools

Feature Version 1.0 Version 1.5 Version 2.0

Symbian Applications Supported

Efficient proxy based web apps Supported Supported Supported

MWL support Supported Supported Supported

Modern UI with floating icons Supported Supported

Geolocation API support Supported Supported

Web app image caching Supported Supported

SMS URI support Supported Supported

Full Touch Simulator Supported

Page 6: Web Apps Development Best Pactices | Hackonten

Web Technologies

• HTML 4.0• CSS 2.1• Javascript 1.8• DOM Level 1 and 2

Page 7: Web Apps Development Best Pactices | Hackonten

Series 40 Web App UX Guidelines

Page 8: Web Apps Development Best Pactices | Hackonten

Screen Orientation

240x320 pixels

320x240 pixels

Page 9: Web Apps Development Best Pactices | Hackonten

Screen OrientationFull Touch

240x400 pixels

Page 10: Web Apps Development Best Pactices | Hackonten

Navigation Controls

The app logo should always be in the top bar

Paging controls should be displayed directly below the app header.

The icon in the top right of the header can be contextual.

Page 11: Web Apps Development Best Pactices | Hackonten

Scrolling

Page 12: Web Apps Development Best Pactices | Hackonten

Focus on discrete tasks

Start the task Choose a category Choose a sub-category

Browse the results

Page 13: Web Apps Development Best Pactices | Hackonten

Align elements

Page 14: Web Apps Development Best Pactices | Hackonten

Use a common set of icons

Page 15: Web Apps Development Best Pactices | Hackonten

Accommodating Screen Orientation

if (screen.width > 240) { document.write('<link rel="stylesheet" href="../../basicLandscape.css" type="text/css" />'); } else { document.write('<link rel="stylesheet" href="../../basicPortrait.css" type="text/css"/>'); }

Page 16: Web Apps Development Best Pactices | Hackonten

SMS URI Scheme

<a href="sms:+62812345678">One number, no body text</a>

<a href="sms:+62812345678?body=hello%20world">One number with body text</a>

Page 17: Web Apps Development Best Pactices | Hackonten

SMS URI Scheme

Page 18: Web Apps Development Best Pactices | Hackonten

Telp URI Scheme

<a href="tel:+62812345678">Call Me</a>

Page 19: Web Apps Development Best Pactices | Hackonten

Image Caching

• All static images used in a web app are included in its .wgt file

• There are no unused images in a web app’s .wgt file

• All images in a .wgt file are scaled to the size used by the web app

Page 20: Web Apps Development Best Pactices | Hackonten

Remote Device Access

Page 21: Web Apps Development Best Pactices | Hackonten

Thank You!