Skip to main content


Showing posts from December, 2011

Creating SQL lite database using PhoneGap

1. Create a new android mobile application using Jquery mobile and PhoneGap.  The openDatabase() method used for creating database in mobile.                 Syntax:         var dbShell = window. openDatabase ( name , version , display_name , size );  Description :                 This method will create a new SQL Lite database and return a new database object. You can  use this database for performing sql operation.                         Parameters 1.        Name – The name of the database 2.        Version – The version of the database 3.        Display name – The display name of the database 4.        Size – The size of the database in bytes. 2. Replace the index.html with following code. <! DOCTYPE HTML> < html >   < head >     < meta name = "viewport" content = "width=320; user-scalable=no" />     < meta http-equiv = "Content-type" content = "text/html; charset=utf-8"