chapter  7
30 Pages

Storing Data

Using Storage API Almost all mobile applications require information to be stored so that it can be accessed and reused in the future. PhoneGap provides the JavaScript library to implement storage capability in mobile devices. More precisely, the Storage API implements a simple database that can be used in mobile applications for maintaining information. We can use Structured Query Language (SQL) statements to add, edit, delete, and update information in the implemented database. The popular Storage API methods that are used in mobile applications for storing data are provided below.