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;
	 * Sets the current trackers text/list that will be available to the user to edit