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.
<!DOCTYPEHTML> <html> <head> <metaname="viewport"content="width=320; user-scalable=no"/> <metahttp-equiv="Content-type"content="text/html; charset=utf-8"> <title>PhoneGap Demo With JQuery Mobile</title> <linkrel="stylesheet"href=""type="text/css"charset="u…