Arutha
Arutha

Reputation: 26478

Android preferences exception

When I execute the following code:

Preferences.userRoot().nodeExists(strNodeName);

I get an exception :

java.util.prefs.BackingStoreException: Cannot get children names for User Preference Node: /!

Any idea ?

Upvotes: 0

Views: 264

Answers (1)

Roman Nurik
Roman Nurik

Reputation: 29745

For storing user preferences, you'll want to use android.content.SharedPreferences. A good article describing how to use it can be found here and the ApiDemos sample app has a demo as well.

Upvotes: 1

Related Questions