I am building a Android HTML5 App using phonegap – Is it possible to store a variable on the phone itself, which will remain regardless of whether the app is open or closed?
Thanks
Paul
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
localStorage is tailor made for what you are looking to do:
http://docs.phonegap.com/en/1.3.0/phonegap_storage_storage.md.html#localStorage