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:


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

Mark Murphy (a Commons Guy) 

Android Training on the Ranch! -- Mar 16-20, 2009 


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
"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.


Other Threads

1. ADP 1 - Planning to buy ... but ... Voice Recognition , Does it work & How ?

I am new to android development. I am working on voice recognition
from past 1-2 months and I am trying to find a way to create a voice
recognition based application. I found that android SDK (on PC -
emulator) does not have support for voice recognition mainly for two
reason 1) No microphone support 2) Google Voice Recognition does not
come with SDK and/or on the emulator (I am using ubuntu for my dev).

I have read somewhere that I can use different system image (say my
ubuntu sys image) but did not find any suitable documentation/
walkthrough for the same. Has anyone found a solution for the same?

I have tried to work on the source but its taking too much development
time. Even if I am able to make microphone work I have to use a
different api for voice recognition (pocketSphinx, or other). I am not
sure whether this will work too since there is byte code
incompatiblity between Sphinx and Android ... all this is taking too
much of my development time.

So finally I have decided to buy ADP 1 so that I can concentrate on
application development rather than solving these issue, but does ADP
1 comes with voice recognition or there is no solution for this
problem? Also how will the system work i.e; do I need a service
provider ?????



2. Compile fails when using a method that is Since: API Level 3

I have an activity that needs to respond to DPAD key presses.  I
started by using the View.onKeyDown method to get the DPAD events, but
found that sometimes they go to one of the views in the view hierarchy
for the activity and so never get to the activity view.

Looking through the documentation I found a new method
View.onKeyPreIme method that says it will get the key press events
before the view hierarchy.  But the documentation also says this
method is "Since: API Level 3"

When I changed my code to use onKeyPreIme instead of onKeyDown, the
java compiler gives me the error that it does not override or
implement a super type method.

I checked my manifest file and it has:  <uses-sdk
android:minSdkVersion="3" />

Is there something else that needs to be changed in the manifest or in
the eclipse development environment so that the java compiler will see
the level 3 APIs and be able to compile the file?


3. Keystore tampered with or password incorrect

4. modifying 9 patch images

5. ImageAdapter Help


7. TabHost Issue