Add singen button
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user