public void startCapture() throws NoCurrentCaptureException { startGps(); showNotificationTray(); if (currentCapture != null) { currentCapture.startTime = SystemClock.elapsedRealtime(); capturing = true; } else { throw new NoCurrentCaptureException(); } }