|
|
|
|
|
|
|
|
@Override
|
|
|
@Override
|
|
|
public void onClick(View v) {
|
|
|
public void onClick(View v) {
|
|
|
getDataBaseValuesNoListener();
|
|
|
getDataBaseValuesNoListener();
|
|
|
btnEarthquake.setEnabled(true);
|
|
|
|
|
|
btnSensor.setEnabled(true);
|
|
|
|
|
|
btnMuster.setEnabled(true);
|
|
|
btnMuster.setEnabled(true);
|
|
|
btnLeer.setEnabled(true);
|
|
|
btnLeer.setEnabled(true);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
public void deviceInitDataBase()
|
|
|
public void deviceInitDataBase()
|
|
|
{
|
|
|
{
|
|
|
mDatenbank = FirebaseDatabase.getInstance().getReference();
|
|
|
mDatenbank = FirebaseDatabase.getInstance().getReference();
|
|
|
Devices d1 = new Devices("10.00.00.000", false, Calendar.getInstance().getTimeInMillis(), 52.51624237821577, 13.37683380067744, 1000, LocalDateTime.now().toString(), ""); //Berlin 52.51624237821577, 13.37683380067744
|
|
|
|
|
|
|
|
|
Devices d1 = new Devices("10.00.00.000", false, Calendar.getInstance().getTimeInMillis(), 49.58967957913626, 11.011387124069765, 1000, LocalDateTime.now().toString(), ""); //Erlangen 49.58967957913626, 11.011387124069765
|
|
|
Devices d2 = new Devices("20.00.00.000", false, Calendar.getInstance().getTimeInMillis(), 48.7560280895443, 11.425157702952347, 200, LocalDateTime.now().toString(),""); //Ingolstadt 48.7560280895443, 11.425157702952347
|
|
|
Devices d2 = new Devices("20.00.00.000", false, Calendar.getInstance().getTimeInMillis(), 48.7560280895443, 11.425157702952347, 200, LocalDateTime.now().toString(),""); //Ingolstadt 48.7560280895443, 11.425157702952347
|
|
|
Devices d3 = new Devices("30.00.00.000", false, Calendar.getInstance().getTimeInMillis(), 48.16958655466396, 11.617418429524394, 30, LocalDateTime.now().toString(),""); //München 48.16958655466396, 11.617418429524394
|
|
|
Devices d3 = new Devices("30.00.00.000", false, Calendar.getInstance().getTimeInMillis(), 48.16958655466396, 11.617418429524394, 30, LocalDateTime.now().toString(),""); //München 48.16958655466396, 11.617418429524394
|
|
|
Devices d4 = new Devices("40.00.00.000", false, Calendar.getInstance().getTimeInMillis(), 45.55620112204013, 12.342516140205387, 4, LocalDateTime.now().toString(),""); //Venedig 45.55620112204013, 12.342516140205387
|
|
|
Devices d4 = new Devices("40.00.00.000", false, Calendar.getInstance().getTimeInMillis(), 45.55620112204013, 12.342516140205387, 4, LocalDateTime.now().toString(),""); //Venedig 45.55620112204013, 12.342516140205387
|