2012-12-17 13:22:43 -0600 | answered a question | Samples not working on Samsung Galaxy SL So, here is what I did, not a real solution, but it may point someone where the real problem is. As I commented, it seems obvious that you can't draw on the same surface used for the camera preview... I modified SampleViewBase.java in the Tutorial 0 this way to have it working: } public void setPreview() throws IOException { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) mCamera.setPreviewTexture( new SurfaceTexture(10) ); else mCamera.setPreviewDisplay(mHolder); } public void surfaceCreated(SurfaceHolder holder) { Log.i(TAG, "surfaceCreated"); mHolder = holder; (new Thread(this)).start(); } public void run() { [...] while (mThreadRun) { [...] } |
2012-12-12 03:33:55 -0600 | commented answer | Samples not working on Samsung Galaxy SL I managed somehow to solve this. The main problem was I can't draw on the same surface the camera is using for preview. I just disabled the lock on the holder, thus disabling what OpenCV may be drawing, but I can live with this, as the data is far more important than the preview. I suppose there is a better way to solve this, as this is not necessary in my other test device, and HTC One S. I'll add the code I modified in the SampleViewBase.java in the Tutorial 0 sample. |
2012-12-12 03:15:30 -0600 | received badge | ● Editor (source) |
2012-12-10 11:21:14 -0600 | asked a question | Samples not working on Samsung Galaxy SL It's seems to be something related with the camera interface, both native and not native camera access samples don't work. And that means that app shows up, but only a black screen in showed. Native camera throws some errors like this: A simple example like this (http://marakana.com/forums/android/examples/39.html) works, but I don't see what is the problem. Maybe the surface created? Here is the software versions I'm working with:
|