Android v1.5 w/ browser data storage
Posted
by Sirber
on Stack Overflow
See other posts from Stack Overflow
or by Sirber
Published on 2010-04-09T13:51:12Z
Indexed on
2010/04/09
13:53 UTC
Read the original article
Hit count: 321
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.
© Stack Overflow or respective owner