|
|
|
|
|
|
|
|
detectorService.videoDetector.startDetection(); |
|
|
detectorService.videoDetector.startDetection(); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
detectorService.videoDetector.stopDetection(); |
|
|
|
|
|
|
|
|
if(detectorService != null) { |
|
|
|
|
|
detectorService.videoDetector.stopDetection(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void onClick(View v) { |
|
|
public void onClick(View v) { |
|
|
if (toggleAudio.isChecked()) { |
|
|
if (toggleAudio.isChecked()) { |
|
|
|
|
|
|
|
|
|
|
|
if(detectorService != null) { |
|
|
|
|
|
detectorService.audioDetector.startDetection(); |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
if(detectorService != null) { |
|
|
|
|
|
detectorService.audioDetector.stopDetection(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void onClick(View v) { |
|
|
public void onClick(View v) { |
|
|
if (toggleBewegung.isChecked()) { |
|
|
if (toggleBewegung.isChecked()) { |
|
|
|
|
|
|
|
|
|
|
|
if(detectorService != null) { |
|
|
|
|
|
detectorService.motionDetector.startDetection(); |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
if(detectorService != null) { |
|
|
|
|
|
detectorService.motionDetector.stopDetection(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |