Add singen button

This commit is contained in:
2020-04-18 19:42:09 +02:00
parent d5e9da9316
commit 0f2e78b005
2 changed files with 32 additions and 0 deletions

View File

@@ -53,5 +53,16 @@ public class MainActivity extends AppCompatActivity {
Toast.makeText(this, toast, Toast.LENGTH_SHORT).show();
}
public void btnSingen(View view) {
String toast = "Obacht! Etwas ist schief gelaufen.";
try {
REST.getString(URL + "/singen");
toast = "Singen aktiviert";
} catch (IOException e) {
e.printStackTrace();
}
Toast.makeText(this, toast, Toast.LENGTH_SHORT).show();
}
}