Browse Source

Kopie Master Version 1.1 UDP Socket merged with sensor

copie
Miguel Siebenhaar 1 year ago
parent
commit
35708220f8

+ 0
- 1
app/src/main/java/com/example/ueberwachungssystem/Detection/DetectorService.java View File

audioRecorder = new AudioRecorder(this); audioRecorder = new AudioRecorder(this);





isServiceRunning = true; isServiceRunning = true;


wifiCommunication = new WifiCommunication (1234); wifiCommunication = new WifiCommunication (1234);

+ 4
- 4
app/src/main/java/com/example/ueberwachungssystem/MainActivity.java View File

button1.setOnClickListener(new View.OnClickListener() { button1.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
communication.sendTrue("Testmessage");
communication.sendTrue(" Testmessage ");
} }
}); });
} }
switch (item.getItemId()) { switch (item.getItemId()) {
case R.id.Rechteverwaltung: case R.id.Rechteverwaltung:
popUpClass = new PopUpClass(MainActivity.this); popUpClass = new PopUpClass(MainActivity.this);
//popUpClass.showPopupWindow(tvMessages);
popUpClass.showPopupWindow(textview1);
popUpClass.RechtePrüfen(); popUpClass.RechtePrüfen();
return true; return true;
case R.id.Sensoren: case R.id.Sensoren:
popUpClass = new PopUpClass(MainActivity.this); popUpClass = new PopUpClass(MainActivity.this);
//popUpClass.showPopupWindow(tvMessages);
popUpClass.showPopupWindow(textview1);
popUpClass.Sensoren(); popUpClass.Sensoren();
return true; return true;
case R.id.Impressum: case R.id.Impressum:
popUpClass = new PopUpClass(MainActivity.this); popUpClass = new PopUpClass(MainActivity.this);
//popUpClass.showPopupWindow(tvMessages);
popUpClass.showPopupWindow(textview1);
popUpClass.Impressum(); popUpClass.Impressum();
return true; return true;
default: default:

Loading…
Cancel
Save