I am developing an application in Android, if I prefer the user to the checkbox from the preferences screen, then show the alert dialog. So how can I do this ..?
override onSharedPreferenceChanged your
priority category: / P>
public class MyPreferences increases priority tools OnSharedPreferenceChangeListener {... shared sharing shared on public (shared shared references, string key) {if (key.equals ("MyCheckboxPreferenceKey") ) {// Show your AlertDialog here! }}
Comments
Post a Comment