Re: [android-developers] help needed with project: preview image on a opengl texture

2009-12-10 Thread 李務誠
You need to call setPreviewDisplay in surfaceChanged. And the app shouldn't call setPreviewSize with arbitrary numbers because not every device support 240x160. Use getPreviewSize in 1.6 or use getSupportedPreviewSizes in 2.0. On Fri, Dec 11, 2009 at 3:47 AM, tdom...@googlemail.com < tdom...@goog

Re: [android-developers] help needed with project: preview image on a opengl texture

2009-12-10 Thread Stephen @ gmail.com
Could you please answer the following? What's your platform? (Eclair/Droid/Donuts/Magic ... etc) Also, what revision of the software (e.g. ESD20)? Thanks! On Thu, Dec 10, 2009 at 11:47 AM, tdom...@googlemail.com < tdom...@googlemail.com> wrote: > hi, > I'm trying to get the preview images of th

[android-developers] help needed with project: preview image on a opengl texture

2009-12-10 Thread tdom...@googlemail.com
hi, I'm trying to get the preview images of the android Camera onto a opengl texture. I have been successful so far, it works most of the times. Though sometimes I will just get a black screen when starting/ resuming the application. I have been debugging for days, not finding any clue. When debugg