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. Selling your apps section in Market help

http://market.android.com/support/bin/topic.py?topic=15867


Highlights;

- All fee information is shown in USD, GBP, EUR, AUD, and CAD so I think 
that tells us who is going to be able to sell apps in the coming months.
- Allowable price ranges are $0.99 to $200 (YES $200 - Sheesh) or 0.50 
GBP to 100 GBP.
- Chargebacks for less than $10 USD will be automatically charged back.
- A $3 USD fee may be added to chargebacks on top of the refund.
- The 24 hour refund period starts when the user has *downloaded* the 
app, not when they purchase it.

-- 
======
Funky Android Limited is registered in England & Wales with the 
company number  6741909. The registered head office is Kemp House, 
152-160 City Road, London,  EC1V 2NX, UK. 

The views expressed in this email are those of the author and not 
necessarily those of Funky Android Limited, it's associates, or it's 
subsidiaries.


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

2. cf.locale.getCountry() (language error)

Hi, hope you can help

I try to get the local language with : cf.locale.getCountry()
usualy it works. BUT
on G1 US-Version, when "spanish" is in prefs/local
i get "" as responds. Now I did ""=spanish
"us"=english etc.

But now I hear from some german G1 Users that it starts
on their G1 in Spanish?

Totaly confusing. In my Emulator i get a clear "de" when
German is selected. So what now, does German G1
Phones give even a "" back when its standart.

Is this a bug or what?

Thanks
Chris

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

3. Excluding test files from the compiled application

4. Apple, Google Consider App-Sharing Tools

5. Android netbook camera (webcam) selection?

6. 1.5 ant build problems

7. how to run C/C++ applications on Android