ie8 fix
madison

Google Gears now inside Android's "Chrome Lite"

By | September 24, 2008, 6:50pm PDT

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:

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Ed Burnette is a software industry veteran with more than 25 years of experience as a programmer, author, and speaker. He has written numerous technical articles and books, most recently "Hello, Android: Introducing Google's Mobile Development Platform" from the Pragmatic Programmers.

Disclosure

Ed Burnette

Ed Burnette is a Manager of Mobile Development at SAS. However the postings on this site are his own and do not represent the positions, strategies, or opinions of his employer.

Biography

Ed Burnette

Ed Burnette has been hooked on computers ever since he laid eyes on a TRS-80 in the local Radio Shack. Since graduating from NC State University he has programmed everything from serial device drivers and debuggers to web servers. After a delightful break working on commercial video games, Ed reluctantly returned to business software. He currently develops enterprise software for Android phones and tablets.

In his copious spare time, Ed writes and speaks about all kinds of technology and software. His most recent books include the Eclipse IDE Pocket Guide from O'Reilly and Hello, Android: Introducing Google's Mobile Development Platform from the Pragmatic Programmers.

The discussion hasn’t started yet. Why don’t you begin it?

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix
Click Here
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix