I have a CameraPreviewActivity which is much similar to what I got here http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html
I declared a Handler to capture an image after 5 seconds, in order for Activity Screen to load fully / stablize.
Handler aHandler = new Handler();
aHandler.postDelayed(new Runnable() {
public void run() {
mPreview.mCamera.takePicture(null, null, myPictureCallback_jpeg);
// finish();
}
}, 5000);
How do I end this Activity once myPictureCallback_jpeg has been called?
Use, Your activity context and try to finish,
or