0

I am trying to add a Preference activity in my andorid App, but my eclipse is not recognizing the res/xml folder and addPreferenceFromResources() method is showing as deprecated. So Please help how I can proceed further further. BTW I am reading the Hello Android by Ed Burnette. This thing is mention in Chapter 3 page 54. Please help me guys.

Regards Simran Preet Singh

2 Answers2

1

Clean and build the project. Replace PreferenceActivity by using PreferenceFragment.

cycDroid
  • 915
  • 10
  • 16
0

Check if you are importing the following in your header statements:

import android.R;

If you are , delete it and see if you can pick up xml/prefs.

GraSim
  • 3,830
  • 1
  • 29
  • 35