开发者

Android preferences exception

开发者 https://www.devze.com 2022-12-17 00:59 出处:网络
When I execute the following code: Preferences.userRoot().nodeExists(strNodeNam开发者_运维技巧e);

When I execute the following code:

Preferences.userRoot().nodeExists(strNodeNam开发者_运维技巧e);

I get an exception :

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

Any idea ?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号