I wanted to store some settings like username and password for my application, such that at the start of the application I would be able to do user authentication.
Can anyone guide me how to achieve this using phoneGap.
PhoneGap is an Open Source framework that helps build hybrid applications which work on most mobile platforms such as Android, iOS, Blackberry, Windows Phone among others. Framework provides a container that bridges the native APIs to the web view.
PhoneGap is a software development framework by Adobe System, which is used to develop mobile applications. To develop apps using PhoneGap, the developer does not require to have knowledge of mobile programming language but only web-development languages like, HTML, CSS, and JScript.
Phone Gap is a framework for the mobile development. It is built on an open source called the Apache Cordova project. This permits the user to write an app with HTML, CSS, JavaScript and then it is deployed to a wide range of mobile phones without losing the native app features.
ADT (Android Development tools) is a plugin of eclipse which provide a complete IDE for developing Android application. ADT lets you create new Android projects, and it lets you create Android projects from existing source (this is the way we will open our PhoneGap app for android on eclipse).
localStorage.setItem("pref1", "val1");
var pref1 = localStorage.getItem("pref1");
Use phonegap local storage mechanism to achieve your tasks
http://docs.phonegap.com/en/1.1.0/phonegap_storage_storage.md.html#Storage
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With