Good afternoon, today I climbed to understand for the first time with PreferenceActivity . I created a class, made it an heir of preferential activation, redefined the onCreate method ... but I can’t switch on the markup inside this method. The addPreferencesFromResource(R.xml.settingsone) method addPreferencesFromResource(R.xml.settingsone) appears crossed out.
This means that this method is outdated and cannot be used? I'm just new to programming, and for the first time I’ve come across a strikethrough of methods. And if so, what method to use to connect the xml-file?
public class PreferenceApp extends PreferenceActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.settingsone); }// end method onCreate }// end class PreferenceApp