|
|
@@ -315,6 +315,17 @@ public class EarthquakeMapsActivity extends FragmentActivity implements OnMapRea |
|
|
|
nativeGPS = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///Evtl löschen und localDateTimeMod mit LocalDateTime.now(ZoneOffset.UTC).toString() ersetzen
|
|
|
|
String localDateTimeMod;
|
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
|
|
localDateTimeMod = LocalDateTime.now(ZoneOffset.UTC).toString();
|
|
|
|
} else
|
|
|
|
{
|
|
|
|
localDateTimeMod = LocalDateTime.now(ZoneOffset.UTC).toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
for(int i=1; i<=db.getAmountOfIDGs(); i++)
|
|
|
|
{
|
|
|
|
if(!db.getStatusIFAndroidIDexistsInDB(db.getMyAndroidID()))
|
|
|
@@ -322,7 +333,7 @@ public class EarthquakeMapsActivity extends FragmentActivity implements OnMapRea |
|
|
|
//Wenn eigenen androidID nicht in DB existiert
|
|
|
|
Devices d1 = new Devices();
|
|
|
|
d1 = new Devices(db.getMyAndroidID(),
|
|
|
|
LocalDateTime.now(ZoneOffset.UTC).toString(),
|
|
|
|
localDateTimeMod,
|
|
|
|
db.getMyIPadress(),
|
|
|
|
breitengrad,
|
|
|
|
laengengrad,
|