How to save the value of your variable?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

How to save the value of your variable?

Postby sojo » Thu May 28, 2009 6:24 am

Hi,
I wanted to ask if you want to save the value of your variable after closing my application. when you operate my application again the value stay the same before closing. how do it?
please help...
thanks
sojo
Developer
Developer
 
Posts: 35
Joined: Sat Apr 25, 2009 2:06 am

Top

Postby mangaluve » Thu May 28, 2009 8:48 am

mangaluve
Experienced Developer
Experienced Developer
 
Posts: 82
Joined: Mon Mar 23, 2009 8:59 pm

Postby sojo » Thu May 28, 2009 1:18 pm

mangaluve
thanks... but what is the statements exactly can i used from these code??
sojo
Developer
Developer
 
Posts: 35
Joined: Sat Apr 25, 2009 2:06 am

Postby keylimepai » Thu May 28, 2009 1:31 pm

sojo wrote:mangaluve
thanks... but what is the statements exactly can i used from these code??


Well, if you just want to save a name/value pair, it seems as though the best approach would be preferences.
If you have more data, it would depend. Some simple (or not simple, for that matter) data could be saved as a file, or, if the data can be normalized, a database would be better.

So, really, you either have to read each of the sections and decide for yourself, or you need to provide more information about your applications.

Of course, if you can't decide on which type of persistent storage your application should use, perhaps you haven't designed it well enough to implement it yet?
keylimepai
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed May 27, 2009 7:14 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests