Pre-AlphaV5
This commit is contained in:
parent
00dbbc810d
commit
e9c0ddb711
@ -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 ^^^^ ###################################################################################
|
||||
//##########################################################################################################################################################################
|
||||
|
||||
|
@ -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…
x
Reference in New Issue
Block a user