|
|
|
|
|
|
|
|
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: |