How to have custom dialog on preference activity?
<p>I have a preference page where there is a check box preference for enable login password. When the user check it, it should have a dialog pop out and inside there will be <strong>2 edit text</strong> fields for password.</p>

<p>I have done some readings and it seems like using a custom dialog will be the right choice. But the problem is that there is no onCreateDialog() method for the preference activity to override, how do I solve this problem?
Some example codes will be nice. Thanks!</p>
