Code example for DialogFragment

Methods: setRetainInstance

public class SetLabelDialog extends DialogFragment {
	private OnLabelPickedListener onLabelPickedListener = null;
	private List<? extends SimpleListItem> currentLabels = null;
	public SetLabelDialog() { 
	 * Sets the callback for when the user is has picked a label for the target torrent. 
	 * @param onLabelPickedListener The event listener to this dialog 
	 * @return This dialog, for method chaining 
	public SetLabelDialog setOnLabelPickedListener(OnLabelPickedListener onLabelPickedListener) {
		this.onLabelPickedListener = onLabelPickedListener;
		return this;
Stop searching for code, let great code find you!  Add Codota to your java IDE