Friday, August 12, 2011

[android-developers] Re: Save data in file or db

Iam going to use SharedPreferences, thanks for the help.


On 12 Aug, 20:04, Kamil <kmichal...@gmail.com> wrote:
> You should definitely use SharedPreferences. It's easy to save/read
> data from prefs. Moreover, everything you save into SharedPreferences
> will be stored in XML file placed in application directory, so you can
> easy check saved value.
>
> On 12 Sie, 12:17, Kristoffer <kris.isak.v...@gmail.com> wrote:
>
>
>
> > Thanks for the answer.
>
> > I need to save the value from sessions to sessions to i need to save
> > it.
> > so you think that i should go with SharedPreferences instead?
>
> > On 12 Aug, 11:26, Appaholics <raghavs...@appaholics.in> wrote:
>
> > > If you need it only once per run and can afford to throw it away and start
> > > again from next time then simply increment a variable. Otherwise for
> > > something like this SharedPreferences would do as well.
>
> > > Thanks
>
> > > On Fri, Aug 12, 2011 at 2:53 PM, Kristoffer <kris.isak.v...@gmail.com>wrote:
>
> > > > Hello.
>
> > > > This is my first app made in eclipse (have worked with app inventor)
>
> > > > This is a simple app where i have two buttons and a textview.
>
> > > > one button will increase 1 to the number that shows in the textview
> > > > and the other button will decrease with 1.
>
> > > > So the question is whats the best way to handle the number that shows
> > > > in the textView field?
>
> > > > Is it over kill to use sqlite for this?
> > > > should i save it in i file?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > > > Groups "Android Developers" group.
> > > > To post to this group, send email to android-developers@googlegroups.com
> > > > To unsubscribe from this group, send email to
> > > > android-developers+unsubscribe@googlegroups.com
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/android-developers?hl=en
>
> > > --
> > > --------------------
> > > Raghav Sood
> > > CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
> > > required to have complete control)http://www.raghavsood.com/https://market.android.com/developer?pub=Ap...

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment