Android v1.5 w/ browser data storage
- by Sirber
I'm trying to build an offline web application which can sync online if the network is available. I tryed jQuery jStore but the test page stop at "testing..." whitout result, then I tryed Google Gears which is supposed to be working on the phone but it gears is not found.
 if (window.google && google.gears)
 {
  google.gears.factory.getPermission();
  // Database
  var db = google.gears.factory.create('beta.database');
  db.open('cominar-compteurs');
  db.execute('create table if not exists Lectures' +
           ' (ID_COMPTEUR int, DATE_HEURE timestamp, kWh float, Wmax float, VAmax float, Wcum float, VAcum float);');
 }
else
{
alert('Google Gears non trouvé.');      
}
the code does work on Google Chrome v5.