cvbi fixed
fixed modify rom
fixed setup activity
adding required bios and keyboard&mouse params
adding harddisk 'if type'
This commit is contained in:
Epic Studios 2024-03-28 22:53:44 +02:00
parent e93c1b361e
commit ffc104cac2
12 changed files with 191 additions and 38 deletions

View file

@ -179,14 +179,17 @@ public class SetupQemuActivity extends AppCompatActivity implements View.OnClick
if (exitValue != 0) {
// If exit value is not zero, display a toast message
String toastMessage = "Command failed with exit code: " + exitValue;
activity.runOnUiThread(() -> Toast.makeText(activity, toastMessage, Toast.LENGTH_LONG).show());
inBtn.setVisibility(View.VISIBLE);
activity.runOnUiThread(() -> {
appendTextAndScroll("Error: " + toastMessage + "\n");
Toast.makeText(activity, toastMessage, Toast.LENGTH_LONG).show();
inBtn.setVisibility(View.VISIBLE);
});
}
} catch (IOException | InterruptedException e) {
// Handle exceptions by printing the stack trace in the terminal output
final String errorMessage = e.getMessage();
activity.runOnUiThread(() -> {
appendTextAndScroll("Error: " + errorMessage + "n");
appendTextAndScroll("Error: " + errorMessage + "\n");
Toast.makeText(activity, "Error executing command: " + errorMessage, Toast.LENGTH_LONG).show();
inBtn.setVisibility(View.VISIBLE);
});