Back to project page WhereIParked.
The source code is released under:
GNU General Public License
If you think the Android project WhereIParked listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cachirulop.whereiparked.common; /*from www. j a v a 2 s . c o m*/ import android.app.Dialog; import android.app.DialogFragment; import android.os.Bundle; /** * Define a DialogFragment that displays the error dialog * * @author dmagro */ public class ErrorDialogFragment extends DialogFragment { /** Global field to contain the error dialog */ private Dialog mDialog; /** * Default constructor. Sets the dialog field to null */ public ErrorDialogFragment () { super (); mDialog = null; } /** * Set the dialog to display * * @param dialog */ public void setDialog (Dialog dialog) { mDialog = dialog; } /** * Return a Dialog to the DialogFragment. */ @Override public Dialog onCreateDialog (Bundle savedInstanceState) { return mDialog; } }