Date post: | 15-Nov-2014 |
Category: |
Technology |
Upload: | scottw |
View: | 3,919 times |
Download: | 0 times |
Here is a mad idea
lets make mobileapps using JUST html
and javascript
i wonder whatGoogle and Apple
think?
“no software developer kit isrequired for the iPhone.”
Steve Jobs, 2007
“App stores are not thefuture”, says Google (FT 2009)
Java!
Objective-C!
WTF?
Widgets
HTML
JavaScript
CSS
config.xml
mywidget.wgtIcon.png
W3C Widgets: for Web,Mobile, or Desktop?
Apple DashboardWindows SidebarGoogle DesktopKonfabulatorOpera Widgets
OpenSocialGoogle GadgetsGoogle Wave
GadgetsWidgetBoxSpringWidgets
Nokia WidgetsiPhone AppsAndroid AppsWidsets
How about, “yes”?
Device APIs: AddingHandset Capabilities to
JavaScript
• BONDI
• W3 DAP
• W3 Geo
• Address Book• Calendar• Files• Media capture
(camera)• Messaging• System• Policy• Media Gallery• Tasks• Comms Log
JavaScript
<html><head>
<script>function takePicture(){var camera = bondi.camera.getCameras()[0];camera.takePicture(function(pic){document.getElementById("picture").src=pic;},function(){alert("nope");});}
</script></head><body>
<button onclick="takePicture()">TakePicture</button>
<img id="picture" src="" width="64" height="64"/></body>
</html>
Feature mapping<feature name=“http://bondi.omtp.org/api/camera.capture”
required=“true”/>
JavaScript
Feature mixing!<feature name=“http://opensocial.org/osapi.person”
required=“true”/>
<feature name=“http://wave.google.com”required=“true”/>
You can connect all kinds of functionality to widgets byinjecting a JS API for it at runtime - and not just deviceAPIs either
JavaScript
Did you know that Opera Unite services were W3C Widgets?
“W3C Widgets are better than websitesbecause they download only the data;and not the core files.”
“Widgets are better than app systemsbecause you don't have to write 4, 5, or10 of them. Just the one is enough.”
“And hundreds of thousands of webdevelopers already know how to createwidgets.It's just HTML/CSS/JavaScript,after all.”
- Peter Paul Koch
So is this W3Cthing going to
take off?
“A fundamental part of WAC is to ensure that developers have thesimplest method by which they can create applications for the long tail.A key part of this is to endorse and encourage the use of technologieswhich are based around open standards. WAC plans to initially use boththe JIL and OMTP BONDI requirements, evolving these into a commonspecification within the next 12 months. The long term goal will be tocollectively work with the W3C for a common standard based on ourconverged solution.”
OK, so how Couldyou get thisinto Android?
“I came here to ask if it's possible GoogleAndroid will support W3C Widgets notinstead of but in addition to its own appsystem.”
“We need:- a browser (Android WebKit will do perfectly
fine, thanks)- a way of associating .wgt files with this
browser OR an installation mechanism- JavaScript device APIs”
– PPK
* “Wookie” is not a clever acronym. so if you spell it WOOKIE you’re shouting!
A Java server application inthe Apache Incubator.Includes a W3C Widgetparser library.
Other possibilities…• Feature extensions beyond BONDI/DAP
..?• Widget and feature extensions for “other”
platforms. E.g. Android on TVs, kiosks,uncategorizable gizmos etc
• Android+W3C Widget powered Chumby-like-things?