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

@@ -49,7 +49,6 @@ public class DetectorService extends LifecycleService {
audioRecorder = new AudioRecorder(this);



isServiceRunning = true;

wifiCommunication = new WifiCommunication (1234);

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

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

Loading…
Cancel
Save