We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public class SettingsFragment extends PreferenceFragment implements OnPreferenceClickListener { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromResource(R.xml.preferences); Preference prefAbout = (Preference) findPreference(PREFERENCE_ABOUT_KEY);
findPreference(PREFERENCE_ABOUT_KEY) return null only in api 10 in api 16+ working good
prefAbout.setOnPreferenceClickListener(new OnPreferenceClickListener() { @Override public boolean onPreferenceClick(Preference preference) { AboutDialogFragment af = new AboutDialogFragment(); af.show(getFragmentManager(), TAG_DIALOG_ABOUT); return true; } }); ....... } ....... }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
findPreference(PREFERENCE_ABOUT_KEY) return null only in api 10
in api 16+ working good
The text was updated successfully, but these errors were encountered: