[android-developers] Re: Shares Preferences are not getting deleted

2008-11-12 Thread Sudha

I dont know anything about the viewing that file.
I didnt try..will try soon and tell u

as far as no one tried to help me out
I thot of makinganother apk which will
uninstall ur apks..
that should search in every folder and find out is tehre any traces of
it left ..etc etc
but I dont think thats the right one

and for linkers qnI dont have the handset...

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-12 Thread Michael

If you're talking about the /data/ directory on the handset, that is
correct, you cannot look in that directory when connected via the adb
shell.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-11 Thread yasmin afrose
Hi Sudha,

Thanks for your reply. Just now I came to my place. Before that I was in
meeting.

Hey, I have done one application. It will play a song(Airtel) if the SMS
reached the mobile.

Demerit :

   The user is not able to hear their favourite song.

So I would like to allow the user to select a song from SD card then that
song will be played whenever the SMS reaches the mobile\emulator.

For this,
  I've modified my application. But activities happend in the
following way,
 1. SMS Reached Mobile.
 2. Display the list of Song from SD card.(Using ListView)
 3. Select the song  automatically it will play.

*FYI : I'll send the source code for above things.*

But the above thing is not good know. Since, the user would like to select a
song before SMS received not after they received SMS.

So I would like to change it as follows,
1. Display a list of Songs
2. Select any one of song (I need to store that song using Shared
Preferences)
3. Play the song whenever SMS reached the mobile(Here, I will get the name
of song from the Preferences)

For this, How I'll include shared preference U just send your
application code \ tell the steps

Thanks for your time!!! I'm waiting for your reply..So Please..
Thanks again!!!
Yasmin



On Tue, Nov 11, 2008 at 1:12 PM, Sudha [EMAIL PROTECTED] wrote:


 hi
 what I did is I created a sharedpreference to store my application
 data..
 when the application is deleting..its not removing the data stored.
 just like our desktop application..
 thats the problem faced by me.. so I want toknow is there nayway to do
 that..

 Plz mention ur problem so that I can help u


 



-- 
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
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-11 Thread Sudha

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

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-11 Thread Christine

On Nov 11, 7:36 am, Sudha [EMAIL PROTECTED] wrote:
 I am using sharepreferences in my application in the mode
 MODE_PRIVATE.
 its working fine.But when I am deleting my application from the
 emulator and installing it
 takes the values from the old sharedpreference.

Nice, huh? This means that you can upgrade the app without loosing the
prefs.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-11 Thread yasmin afrose
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

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-11 Thread Sudha

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 -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-11 Thread Sudha

Yes
it seems to be the same..
same case with your sqlite also..
since teh data is getting saved in data/data folder
and ur application in data/app folder
when u r deleting from ur emulator ( as far as I know)
we are deleting it from the data/app folder only
so the data wont getting deleted..

So I wanna know is there any specific apk or batch file in the device
which will delete all the application realted data once you remove the
apk...
?
experts plz help

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-11 Thread yasmin afrose
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
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-10 Thread yasmin afrose
Hi Sudha,

Could you please share your knowledge related to Shared Preferences...

Since I'm facing one problem. I hope it will recover if I know shared
preferences concept.

Thanks in Advance.

Thanks Again!!!
Yasmin

On Tue, Nov 11, 2008 at 12:06 PM, Sudha [EMAIL PROTECTED] wrote:


 Hi
 I am using sharepreferences in my application in the mode
 MODE_PRIVATE.
 its working fine.But when I am deleting my application from the
 emulator and installing it
 takes the values from the old sharedpreference..that means when I am
 deleting its not removing teh sharedpreference...
 any solution for that ?
 



-- 
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
-~--~~~~--~~--~--~---



[android-developers] Re: Shares Preferences are not getting deleted

2008-11-10 Thread Sudha

hi
what I did is I created a sharedpreference to store my application
data..
when the application is deleting..its not removing the data stored.
just like our desktop application..
thats the problem faced by me.. so I want toknow is there nayway to do
that..

Plz mention ur problem so that I can help u


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---