Search code examples
androidcheckboxpreference

How do I write a combined CheckboxPreference / PreferenceScreen?


I would like to have a checkbox preference that takes the user to a new (sub)preference screen if the user presses on the actual text (and not on the checkbox to the right).

Just as the control under Settings -> Wireless -> Mobile Network Settings -> Access Point Names.


Solution

  • Two possibilities:

    1) You can get android source code and see how they do it.

    2) Check options in this question. I was trying to move to an specific DialogPreference. I your particular case I think it's better to create and show a new Dialog.