How To Eliminate Preferences Values Database?

by Massimo Barbera » Fri, 19 Dec 2008 03:03:38 GMT


Sponsored Links
 Dear all,

I have a PreferenceActivity whose structure is described in a
preferences.xml file:
we know this leads to construct a GUI interface trough which you can
change the value of our preferences

For testing purposes I have changed the value of one preference
(android:key="my_value") from a class external to my
PreferenceActivity, trough editor.putBoolean("my_value", value);

now each time the PreferenceActivity is started, I have an exception.

How can I reset "my_value" ?

Thanks in advance!

--~--~---------~--~----~------------~-------~--~----~



How To Eliminate Preferences Values Database?

by Mark Murphy » Fri, 19 Dec 2008 03:37:38 GMT


 


Manually, you can reset it by deleting the preferences data in your 
emulator -- it's an XML file found in:

/data/data/your.package.name.here/shared_preferences

You can use adb shell, DDMS's File Explorer, or the like to get rid of 
the file.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 

Android Training on the Ranch! -- Mar 16-20, 2009
 http://www.bignerdranch.com/schedule.shtml 

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How To Eliminate Preferences Values Database?

by Xavier Mathews » Fri, 19 Dec 2008 04:06:12 GMT


 Yea Delete your prefrence data... be sure that the xml can not convert
to rss! Then delete the older file from the explorer.






-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Client Based Tech Support Specialist
Hazel Crest Illinois
xavieruni...@gmail.comxavierunited@hotmail.comtruestar...@yahoo.com
"Fear of a name, only increases fear of the thing itself."

--~--~---------~--~----~------------~-------~--~----~



How To Eliminate Preferences Values Database?

by Michael » Fri, 19 Dec 2008 05:13:08 GMT


 


You realize that RSS is just an XML file with a particular schema, yes?
--~--~---------~--~----~------------~-------~--~----~



How To Eliminate Preferences Values Database?

by Massimo Barbera » Fri, 19 Dec 2008 18:03:24 GMT


 Guys, I have used the DDMS's File Explorer to get rid of preferences
XML and it works fine.


Thanks!
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Sending calendar events via MMS

Sonyericsson and Nokia and in fact other phones allow you to send
calendar events and contacts to another mobile MMS. I can't find a way
to do this with Android.

Regards,

Amir

--~--~---------~--~----~------------~-------~--~----~

2. AudioRecord cannot capture audio on beagle board?

Hi,

  I just build the new omapdroid release.
 # repo init -u git://labs.embinux.org/repo/android/platform/beaglemanifest.git/

  The alsa_arecord, alsa_aplay and AudioTrack  is okay.

 But, when I use "Sound Recorder" application of Android
 to capture audio,  the recorded file size always equals zero.
 And I got the following log messages.

D/AudioHardwareALSA(  758): Set CAPTURE PCM format to S16_LE (Signed
16 bit Little Endian)
E/AudioHardwareALSA(  758): Unable to set channel count to 1: Invalid
argument (for CAPTURE)
W/AudioFlinger(  758): AudioRecordThread: buffer overflow
W/AudioRecord(  758): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  758): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000
W/AudioRecord(  758): obtainBuffer timed out (is the CPU pegged?)
user=00000000, server=00000000

 How to capture audio on beagle board using  AudioRecord ?
 Thanks advance.

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Access to opencore audio decoders from application layer.

4. Why does DDMS sometimes only show one line of logs?

5. Question to write a LiveFolders for ContentProvider with a permission

6. Is there a Real-time protocol to get screenshot of android based device ??

7. CameraService error ...