Browse Source

Alpha Version 3.500

master
Raz492 3 years ago
parent
commit
2d4508ec1a

+ 12
- 1
app/src/main/java/de/edotzlaff/schockwelle/EarthquakeMapsActivity.java View File

@@ -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,

Loading…
Cancel
Save