|
|
|
|
|
|
|
|
nativeGPS = false;
|
|
|
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++)
|
|
|
for(int i=1; i<=db.getAmountOfIDGs(); i++)
|
|
|
{
|
|
|
{
|
|
|
if(!db.getStatusIFAndroidIDexistsInDB(db.getMyAndroidID()))
|
|
|
if(!db.getStatusIFAndroidIDexistsInDB(db.getMyAndroidID()))
|
|
|
|
|
|
|
|
|
//Wenn eigenen androidID nicht in DB existiert
|
|
|
//Wenn eigenen androidID nicht in DB existiert
|
|
|
Devices d1 = new Devices();
|
|
|
Devices d1 = new Devices();
|
|
|
d1 = new Devices(db.getMyAndroidID(),
|
|
|
d1 = new Devices(db.getMyAndroidID(),
|
|
|
LocalDateTime.now(ZoneOffset.UTC).toString(),
|
|
|
|
|
|
|
|
|
localDateTimeMod,
|
|
|
db.getMyIPadress(),
|
|
|
db.getMyIPadress(),
|
|
|
breitengrad,
|
|
|
breitengrad,
|
|
|
laengengrad,
|
|
|
laengengrad,
|