|
|
@@ -44,7 +44,7 @@ public class Accelerometer extends Detector implements SensorEventListener { |
|
|
|
|
|
|
|
// In constructor pass Activity, Context and TextView from MainActivity in Accelerometer class |
|
|
|
public Accelerometer(Context context){ |
|
|
|
super(context); //von Detektor |
|
|
|
super(); //von Detektor |
|
|
|
this.context = context; |
|
|
|
} |
|
|
|
|
|
|
@@ -77,8 +77,7 @@ public class Accelerometer extends Detector implements SensorEventListener { |
|
|
|
if (!alarm) { |
|
|
|
if (betrag > threshold) { |
|
|
|
alarm = true; |
|
|
|
detectionReport = new DetectionReport("Accelerometer1", "Bewegung", betrag); |
|
|
|
reportViolation("Accelo1", "Bewegung", betrag); |
|
|
|
reportViolation("Bewegung", betrag); |
|
|
|
} |
|
|
|
} else { |
|
|
|
if (betrag < threshold) { |