Browse Source

Pre-AlphaV5

EpiTest
Raz492 2 years ago
parent
commit
e9c0ddb711

+ 13
- 0
app/src/main/java/de/edotzlaff/detection/EarthquakeLocation.java View File

@@ -73,6 +73,19 @@ public class EarthquakeLocation extends FragmentActivity implements OnMapReadyCa
});
}

public void privideDBforDeviceMaping(DataSnapshot data, int i)
{
String localedatetime;
String breitengrad;
String laengengrad;
String timestamp;
localedatetime = data.child("IDG" + i).child("b_localdatetime").getValue().toString();
breitengrad = data.child("IDG" + i).child("d_breitengrad").getValue().toString();
laengengrad = data.child("IDG" + i).child("e_laengengrad").getValue().toString();
timestamp = data.child("IDG" + i).child("h_timestamp").getValue().toString();
}


//################################################################## ^^^^ DB Code ^^^^ ###################################################################################
//##########################################################################################################################################################################


+ 2
- 2
app/src/main/java/de/edotzlaff/detection/MainActivity.java View File

@@ -157,9 +157,9 @@ public class MainActivity extends AppCompatActivity {

private void earthquakeDetected()
{
Toast.makeText(getApplicationContext(), "!Earthquake detected!", Toast.LENGTH_SHORT).show();
Toast.makeText(getApplicationContext(), "Earthquake detected", Toast.LENGTH_SHORT).show();
Log.d(TAG,"!Earthquake detected!");
//Hier wird bei Vibration in Db geschrieben
//Hier wird bei Vibration in DB geschrieben
getDataBaseValuesNoListenerForVibration();
Button buttonReadyToDetect = (Button) findViewById(R.id.buttonReadyToDetect);
buttonReadyToDetect.setEnabled(true);

Loading…
Cancel
Save