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;
Stop searching for code, let great code find you!  Add Codota to your java IDE