Pre-AlphaV5

This commit is contained in:
Raz492 2021-06-25 18:43:13 +02:00
parent 00dbbc810d
commit e9c0ddb711
2 changed files with 15 additions and 2 deletions

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 ^^^^ ###################################################################################
//##########################################################################################################################################################################

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);