diff --git a/android/app/src/main/java/com/example/hsh0908y/auto_wifi/FailActivity.java b/android/app/src/main/java/com/example/hsh0908y/auto_wifi/FailActivity.java
index 0fb68f2..acaa550 100644
--- a/android/app/src/main/java/com/example/hsh0908y/auto_wifi/FailActivity.java
+++ b/android/app/src/main/java/com/example/hsh0908y/auto_wifi/FailActivity.java
@@ -93,6 +93,16 @@ public void onClick(View view) {
wifiConnectReceiver = WifiScanConnect.connectAndRegisterReceiver(FailActivity.this, wifiManager, new IntentFilter(), new SsidPw(currentId, currentPw), timer);
}
});
+
+ Button retakeButton = (Button) findViewById(R.id.retakeButton);
+ retakeButton.setOnClickListener(new Button.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ Intent intent = new Intent(FailActivity.this, CameraActivity.class);
+ intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
+ startActivity(intent);
+ }
+ });
}
diff --git a/android/app/src/main/res/layout/activity_fail.xml b/android/app/src/main/res/layout/activity_fail.xml
index 1866314..0698c98 100644
--- a/android/app/src/main/res/layout/activity_fail.xml
+++ b/android/app/src/main/res/layout/activity_fail.xml
@@ -187,15 +187,31 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
+
+
+ app:layout_constraintStart_toEndOf="@id/retakeButton" />