S
S
Sasha Brahms2016-07-22 17:42:51
Android
Sasha Brahms, 2016-07-22 17:42:51

What to use instead of PreferenceActivity?

Hello.
Faced a problem:

public class PreferenceAct extends PreferenceActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addPreferencesFromResource(R.xml.pref);// устаревший метод
    }
}

What to use instead
addPreferencesFromResource(R.xml.pref);// устаревший метод

?
MB PreferenceFragment, but I can't figure out how to use it to show the settings activation...
Please tell me how to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2016-07-22
@Dlike

Docks to read does not happen? https://developer.android.com/reference/android/pr...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question