Code example for DialogFragment

Methods: setRetainInstance

public class SetTrackersDialog extends DialogFragment {
	private OnTrackersUpdatedListener onTrackersUpdatedListener = null;
	private String currentTrackers = null;
	public SetTrackersDialog() { 
	 * Sets the callback for when the user is done updating the trackers list. 
	 * @param onTrackersUpdatedListener The event listener to this dialog 
	 * @return This dialog, for method chaining 
	public SetTrackersDialog setOnTrackersUpdated(OnTrackersUpdatedListener onTrackersUpdatedListener) {
		this.onTrackersUpdatedListener = onTrackersUpdatedListener;
		return this;
Contextual code suggestions in your IDE  Get Codota for Java