Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phone gap implementation of 'application settings'

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.

like image 815
Rajesh Rs Avatar asked Oct 21 '11 05:10

Rajesh Rs


People also ask

What is PhoneGap used for?

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.

What is PhoneGap explain in brief?

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.

How does PhoneGap application interact with the native components?

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.

What are the tools required to develop the PhoneGap application for Android?

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).


2 Answers

localStorage.setItem("pref1", "val1");

var pref1 = localStorage.getItem("pref1");
like image 90
Gavriel Avatar answered Nov 07 '22 05:11

Gavriel


Use phonegap local storage mechanism to achieve your tasks

http://docs.phonegap.com/en/1.1.0/phonegap_storage_storage.md.html#Storage

like image 42
Vinayak Bevinakatti Avatar answered Nov 07 '22 05:11

Vinayak Bevinakatti