public class ErrorFragment
extends DialogFragment
Modifier and Type | Field and Description |
---|---|
(package private) Dialog |
alert
The instance of the Dialog being presented.
|
(package private) java.lang.String |
error
The error message to be displayed within the
alert Dialog. |
Constructor and Description |
---|
ErrorFragment(java.lang.String error)
Constructor used to display the error message to the user.
|
Modifier and Type | Method and Description |
---|---|
void |
onClick(View v)
Method called when the OK button is pressed.
|
Dialog |
onCreateDialog(Bundle savedInstanceState)
The Android life cycle called when the AlertDialog should be displayed to
the user.
|
Dialog alert
java.lang.String error
alert
Dialog.public ErrorFragment(java.lang.String error)
error
- the error message to be displayedpublic void onClick(View v)
public Dialog onCreateDialog(Bundle savedInstanceState)