Wednesday, December 17th, 2008
OilCan: Grease up your Android browser
Jeffrey Sharkey has created OilCan a thin wrapper on top of the WebKit shipping on Android that allows you to install userscripts that allow you to access to Android "Intents".
Intents are very nice abstractions that allow you to access large components and reuse them in different ways. Romain Guy has a nice post on them.
OilCan lets you customize any website by inserting JavaScript to change the website and help it reach into the Android world using intents.
OilCan inserts some powerful buttons into normal websites, and that power comes from Android intents. We didn't write a barcode scanner or the radar app into OilCan, but using intents we can launch those apps with parameters. We can request the Barcode Scanner app to scan something and return the code to us, or launch the Radar app with a specific lat/lon.
Userscripts can do other cool stuff, like hide the navigation columns in Wikipedia to make it easier to view on small screens. This is a proof-of-concept for now, and will probably turn into a binary plugin for the default Browser in the future.
A nice piece from an example shows the intent call out:
-
-
function generate(item) {
-
var helper = document.createElement('input');
-
helper.type = 'button';
-
helper.value = 'Scan barcode...';
-
helper.addEventListener('click', function(event) {
-
// use the intentHelper bridge to fire an intent to Barcode Scanner
-
// it's available in Market, or from http://code.google.com/p/zxing/
-
var result = window.intentHelper.startActivityForResult(JSON.stringify({
-
action:'com.google.zxing.client.android.SCAN',
-
category:['CATEGORY_DEFAULT']
-
}));
-
-
// parse the result we get back, and read the barcode from the extras
-
result = JSON.parse(result);
-
item.value = result['extras']['SCAN_RESULT'];
-
}, false);
-
return helper;
-
}
-
Very cool!












A very nice idea, something I think Google missed a trick on. I could see many uses for this, for example if your hungry – fire up your browser to the Domino’s pizza website, and using Gears + This, it works out your location and gives you a button to dial your local store.
I’ll be keeping an eye on this.
Oil can what?
a very nice odea
something that i will keep in mind and will wait latest news about
oldtimerock from lose 3 pounds in a week
Why should we set up a mushroom-like circular platform then? This is because the Lark long lived in the desert, grassland, the always in the desert, lost the ability to climb, so had to stand on the platform or a song or dance The height and diameter of the links of london platform, based on the bird’s age, body size to decide. 13 ~ 16 cm tall, table diameter of 4.5 ~ 6 cm. The table sweetie bracelet must not be too slippery to be tainted with grit or ground into a hemp striated. The bottom of Lark’s cage should be covered with sand. Because Larks have lived for a long bracelet charms period in the steppe and desert areas, they are used to sand bath. In addition, they can peck the sand as the needs of the stomach muscles.
The xbox live points is the second video game console produced by Microsoft, and the successor to the Xbox. The xbox 360 live points competes with Sony’s xbox 360 live 1600 points and Nintendo’s Wii as part of the seventh generation of video game consoles.xbox live points card xbox 360 live points card
Some major features of the Xbox 360 are its integrated xbox 360 live 2000 points that allows players to compete online, download arcade games, game demos, trailers, TV shows and movies and its Windows Media Center multimedia capabilities. The xbox live 2000 points also offers region specific access to third-party media streaming services such as Netfilx in the USA or Sky TV and xbox 360 live 4000 points in the UK.
The xbox live 1600 points was officially unveiled on MTV on May 12, 2005, with detailed launch and game information divulged later that month at the Electronic Entertainment Expo (E3). The xbox live 4000 points sold out completely upon release in all regions except in Japan and, as of October 2009, nearly 34 million units have been sold worldwide. The xbox 360 live 3000 points is currently available in two configuraions—the “Arcade” and the “Elite”—and each has its own selection of accessories.