Ask Your Question

franute's profile - activity

2020-11-09 08:19:56 -0600 received badge  Popular Question (source)
2012-11-28 04:05:49 -0600 answered a question getting video to play fullscreen android

I'm experiencing the same problem with the camera, though I managed to solve it partially[*] by setting my activity to work in fullscreen mode.

Just add this before the setContentView in the onCreate method of your activity:

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

[*] I said partially because still I can't select the resolution I want.

2012-11-27 05:23:31 -0600 commented answer Camera capture in background

Thank you for your answer venky. I think the feature you are referring to is also present on Galaxy Note 2, but I think it is more like a "multiple window" option. Anyway, right now I'm using a Galaxy S2 and a HTC One S.

I know that in Android the way to use background processing is through Services*, but I don't know if it is possible to create a Service with an associated VideoCapture that keeps working even though the phone is locked.

Thank you for your response, I'll keep trying things :P

2012-11-27 05:16:57 -0600 received badge  Editor (source)
2012-11-27 04:13:53 -0600 asked a question Camera capture in background

Hello everyone, I'm using openCV for face detection on Android in my application because Android's FaceDetection API [1] is not working on some devices.

For now, everything is working as expected (I have to tweak it a little to reduce false positives, but that's no problem), but I'd like to now if it could be possible to keep grabbing frames even when I lock the phone. I guess that with Android's camera capture it is not possible because, but what about openCV's VideoCapture?

Thank you all

[1] http://developer.android.com/reference/android/hardware/Camera.FaceDetectionListener.html