Code example for DialogFragment

Methods: setRetainInstance

public class SetTransferRatesDialog extends DialogFragment {
	private OnRatesPickedListener onRatesPickedListener = null;
	private TextView maxSpeedDown, maxSpeedUp;
	public SetTransferRatesDialog() { 
	 * Sets the callback for results in this dialog (with newly selected values or a reset). 
	 * @param onRatesPickedListener The event listener to this dialog 
	 * @return This dialog, for method chaining 
	public SetTransferRatesDialog setOnRatesPickedListener(OnRatesPickedListener onRatesPickedListener) {
		this.onRatesPickedListener = onRatesPickedListener;
		return this;
	public Dialog onCreateDialog(Bundle savedInstanceState) {