Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

can we set a varible even app close variable data must be there for next time  RSS feed

 
Ranch Hand
Posts: 1279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to set variable when i longing to app next time varible value have to be there.can we use Global class for this ?
i don't want to be use data base table ?
 
sam liya
Ranch Hand
Posts: 1279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to save user name ,password,address......
After user enters data via form i need to save them.
can i use preferences to do this ?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happened when you tried?
 
sam liya
Ranch Hand
Posts: 1279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created simple example.



how can i used this to save more than one value,as it saves key and values .E
Ex i need to ssave name,age,address..
i can save name in a one value pair .
 
Water! People swim in water! Even tiny ads swim in water:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!