-public class HttpAuthenticationDialog extends AppCompatDialogFragment{
- // `httpAuthenticationListener` is used in `onAttach()` and `onCreateDialog()`
- private HttpAuthenticationListener httpAuthenticationListener;
-
- // The public interface is used to send information back to the parent activity.
- public interface HttpAuthenticationListener {
- void onHttpAuthenticationCancel();
-
- void onHttpAuthenticationProceed(AppCompatDialogFragment dialogFragment);
- }
-
- public void onAttach(Context context) {
- super.onAttach(context);
-
- // Get a handle for `httpAuthenticationListener` from `context`.
- httpAuthenticationListener = (HttpAuthenticationListener) context;
- }
+public class HttpAuthenticationDialog extends DialogFragment{
+ // Define the class variables.
+ private EditText usernameEditText;
+ private EditText passwordEditText;