eclipse找不到userpreferences xml

时间:2014-06-26 18:49:22

标签: android preferences android-resources

我正在编写Android应用程序,需要实现设置Activity

我按照其他帖子的建议导入了android.R,摆脱了我的第一个错误。但现在我似乎无法使用此代码解析用户偏好:

addPreferencesFromResource(R.xml.userpreferences);

Eclipse可以看到R.xml,但是没有任何东西超过这个,我想我可能会在清单中遗漏一些会使xml / userpreferences.xml可见的东西。

1 个答案:

答案 0 :(得分:0)

而不是使用android.R我需要导入myappplication.R