Sunday 13 April 2014

Integration of Database in Android using Phonegap.

Hello Friends,


Today we are going to see How we can manage the database in Android using Phonegap.

For more videos please follow this channels
Please get the latest details about programming
visit our website
http://webconnect.0fees.net/

1) Create the New Phonegap Project. See Here

2) Add this code to your index.html page under Project=>asset=>www=>index.html


3) Now you will get the following UI.


4) When ever you want to use the storage API then you must check this that cordova loaded successfully loaded in DOM or not.
document.addEventListener("deviceready","onDeviceReady",false);
function onDeviceReady() {
      alert("Cordova is loaded successfully.")

}



5) Write this Code for Creating the Database "Student"




6) Write this code for Inserting record to the Database.


7) at last you will get this output.



For more videos please follow this channels
Please get the latest details about programming
visit our website
http://webconnect.0fees.net/


Thank You
Abhishek Bendre

No comments:

Post a Comment