On The Insider: Britney's Bikini-Clad Top 10
BNET Business Network:
BNET
TechRepublic
ZDNet

September 24th, 2008

Google Gears now inside Android's "Chrome Lite"

Posted by Ed Burnette @ 6:50 pm

Categories: AJAX, Android, General, Google, Web Browsers

Tags: Google Inc., Google Gears, Web Browser, Android 1.0, Web Browsers, Internet, Ed Burnette

Android 1.0 includes a hidden feature for Ajax web developers: the Google Gears plug-in. Version 0.4.13.1 can be found in the browser’s plug-ins directory if you know where to look:

Because it’s pre-installed, web pages displayed in Android’s WebKit-based “Chrome Lite” browser can take advantage of Gears features out of the box, including:

  • LocalServer - cache and serve web objects locally, even if your connection goes bad
  • Database - store data locally in a SQLite database
  • Geolocation - provide access to the user’s GPS location
  • Desktop - create shortcuts on the Android desktop (palmtop?)

The shortcut feature is pretty cool. To demonstrate it let’s point the Android browser at the Google Gears sample applications page and run the Shortcut demo. The first time you try this, Gears prompts you to make sure the site has permission:


Select Yes and the web page will create a shortcut on the Home screen like this:

Touching the monkey icon opens a browser on the page specified by the developer.

Another nice Gears demo can be found at indiankey.com. After filling in a local database you can select a viewer that lets you run SQL queries against the tables. Here’s how that looks in Android’s browser:

To try it out yourself before the real phones come out in October, grab a copy of the Android 1.0 SDK. The emulator runs on Windows, Linux, and Mac OSX.

Given that Android can support arbitrary browser plugins written using the NPAPI standard, it should be possible for other popular add-ons (*cough*Flash*cough*) to be ported to the gPhone. The only caveats are: they have to be written in native (C/C++) code, and there is no “official” way to install them on the device. Yet.

Related articles:

Ed BurnetteEd Burnette is a professional developer and author of several articles and books about computing including Hello, Android: Introducing Google's Mobile Development Platform, 2nd Edition. For disclosure of Ed's industry affiliations, click here or to view his full profile click here.

Email Ed Burnette

Subscribe to Dev Connection via Email alerts or RSS.

Talkback

Add your opinion

SponsoredWhite Papers, Webcasts, and Downloads

advertisement
Click Here

Recent Entries

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads

  • Smart Tech Expert advice on innovations in healthcare and the green technologies that make it happen. Find out more
  • Smart Business Discussion and advice on management issues that revolve around making your world smarter and more useful. More Smart Advice
  • Smart People The best and worst moves in the management and strategy trenches. Learn More