23
Enabling the Mobile Web with JavaME Nandini Ramani Co-Chair W3C SVG WG Senior Staff Engineer Sun Microsystems, Inc. Akhil Arora Senior Staff Engineer Sun Microsystems, Inc.

Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Enabling the Mobile Web with JavaME

Nandini RamaniCo-Chair W3C SVG WG Senior Staff EngineerSun Microsystems, Inc.

Akhil AroraSenior Staff EngineerSun Microsystems, Inc.

Page 2: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 2

Agenda

• Web 2.0• Web Services• Rich UI• Demos• Questions

Page 3: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 3

Age of Participation

Google Maps

Flickr AlbumsSalesforce

Community&

Interaction

Page 4: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 4

Mobile Drives the Next Wave

Content Management

Entertainment

Gaming

Communications

Information

Sharing

Page 5: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 5

Your Personal Dashboard

Page 6: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 6

Web Services

Page 7: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 7

What are Web Services?

• www for machines> designed for machine-to-machine interactions over a network> Heterogeneity is a given> networking, not presentation

• two styles> REST

> Yahoo, Google, Amazon, Microsoft Live, Most Web 2.0> SOAP

> eBay, B2B applications

Page 8: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 8

Why Mobile Web Services?

• Compelling Web Services drive ARPU via data• Java tools exist to make it easy for developers to build web

applications and mashups in Java• Mobile AJAX in browser has limitations

> substantial JavaScript download> application source code (JavaScript) visible> network availability/latency makes user experience spotty> cannot use camera, 3D, bluetooth, local calendar & addrbook, etc

Page 9: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 9

Java - Powerful Enabling Technology • Java Platform

>Ubiquity: Java is on 1.2 Billion Phones>Superior code development tool chain>Broadest access to phone features>Robust, secure, high performance environment>Portability

• Based on Open standards>JCP and W3C>Leverages popular Web model (XML, DOM)>Rich user experience with SVG/CDF

• Leverage multiple developer communities: graphic artists and Java developers

* SVG = Scalable Vector Graphics, a W3C specification* CDF = Compound Document Format, a W3C specification

Page 10: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 10

Some Use Cases for Mobile Web Services

• Mobile Feeds> catching up with blogs offline> liveblogging, lifeblogging> syndication of calendar, traffic, jobs, weather...

• Mobile Web 2.0> maps, traffic, directions, location...> shopping, pricing, reviews, yellowpages...> audio, video, photos, tagging, social networking...> travel, finance...> verticals> mashups

Page 11: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 11

Demos (1/2)

• Feed Reader• Local Search using Yahoo!'s Local and Map Web Services

Page 12: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 12

Presentation

Page 13: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 13

Opening the Phone to the DeveloperNew Java Standards defining next-gen wireless platform

Mobile Services Architecture (MSA) Enables the development of services based on previously closed device capabilities

SMS / MMS

Location

PIM

3D Graphics

Bluetooth 2D Graphics

Media

SIP

Page 14: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 14

JSR-226 Overview

• Java API to draw, manipulate and animate SVG Tiny 1.1 content

• Part of Mobile Service Architecture (JSR-248), both the core subset and the full version

• Rich UI through SVG• Complex behavior through Java• DOM API connects SVG and Java• Enables significantly richer UI than LCDUI alone

Page 15: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 15

JSR 226 Application Model

svg

imageg text

rect circ

Document Object Model

Java Application

<svg width="2cm" height="3cm" viewBox="0 0 200 300"> <g> <rect x="10" y="10" width="180" height="280" fill="none" stroke="black"/> <circle cx="100" cy="150" r="100" fill="rgb(255,209,31)"/> </g> <image xlink:href="duke.svg" x="40" y="40" width="120" height="220" /> <text x="100" y="280" font-size="30" text-anchor="middle"> Hello SVG! </text> </svg>

SVG Document Rendering& interactivity

load rendermanipulate

UI events

Page 16: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 16

JSR 290 and CDF

• Java Language and XML UI Markup Integration>Leverage W3C CDF (WICD MP)> Integration with Web technologies

– XHTML Basic 1.1– ECMAScript CP– CSS 2.1 Mobile– SVG Tiny 1.2

>Binding between markup and Java code>Connection between ECMAScript and Java

* ESMP = ECMA Script Compact Profile, a subsetted version of ECMA Script used in Mobile phone* CSS Basic = Cascading Style Sheets, a popular styling language helping separate the content of XHTML pages from their appearance

Page 17: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 17

Unleash Your Creativity

Create Integrate Deploy

XMLapplication

DEVELOPMENT & AUTHORING TARGET DEVICE

Integ

ratio

n Too

l

MIDlet

XML UI API

Java VM XML Engine

Markup

Java Code

Page 18: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 18

Demos (2/2)

• Contact List demo• Location based service• Tools

Page 19: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 19

We've Done it Before...

...And We're Doing it Again

Page 20: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 20

What's Next: Open Sourcing Java

Java ME & Java SE

Page 21: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 21

References

• JCP: http://jcp.org/en/home/index• SVG: http://www.w3.org/Graphics/SVG/• CDF: http://www.w3.org/2004/CDF/• NetBeans: http://www.netbeans.org/• Wireless Toolkit:

http://java.sun.com/products/sjwtoolkit/• Community: http://www.java.net

Page 22: Enabling the Mobile Web with JavaME · 2006. 12. 12. · Sun Microsystems 2006 16 JSR 290 and CDF •Java Language and XML UI Markup Integration >Leverage W3C CDF (WICD MP) >Integration

Sun Microsystems 2006 22

Discussion Topics

• Reduce Fragmentation> Conformance test suites

• Collaboration between standards bodies> W3C, JCP