Hi,

Thanks Sudha. I've tried to find where that file was stored... U told about
that..

Really I thank you lot. But I tried to open the file... but I can't .. Is it
possible to view the data in the Shared file.

Thanks for everything...

Regards,
Yasmin

On Tue, Nov 11, 2008 at 5:42 PM, Sudha <[EMAIL PROTECTED]> wrote:

>
> hi
> u can delete the values by using the clear() function
> it wont delete the file..yaarr
> its getting saved in data/data/ur apkpath/shared_prefs/urpref name.xml
>
>
>
> On Nov 11, 4:52 pm, "yasmin afrose" <[EMAIL PROTECTED]> wrote:
> > Thanks..I got the output...
> >
> > But still I didn't try the delete action.
> >
> > Thanks,
> > Yasmin
> >
> >
> >
> >
> >
> > On Tue, Nov 11, 2008 at 4:56 PM, Sudha <[EMAIL PROTECTED]> wrote:
> >
> > > Hi
> > > shared preferences are very simple.
> > > 1.create it
> > > prefereceObj = context.getSharedPreferences(preferenceName,
> > > modeOfAccess)
> > > 2.to write the data
> > > 1.obtain the editor
> > > Editor edr= prefereceObj.edit();
> > > 2.use edr.putString(key, value)..putBoolean etc etc
> > > 3.edr.commit()
> >
> > > 3.to read it
> > > prefereceObj.getFloat(key, defaultvalue if the pref/key is not there);
> >
> > > 4.that it...
> >
> > > but I am not getting my answer...
> > > mine is like a game application.if u ones delete the game.. the data
> > > will be there and
> > > if you reinstall it teh game is using the old data..
> > > thats bad...
> > > how to do it...
> > > its behaving like ur desktop application..if u delete the front end
> > > the back end will be there..
> > > hmmm
> >
> > --
> > Everything is Possible For U only- Hide quoted text -
> >
> > - Show quoted text -
>  >
>


-- 
Everything is Possible For U only

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to