[android-developers] Re: help needed with project: preview image on a opengl texture
I'm using Android 1.6. where do I get the revision from? On 10 Dez., 22:00, "Stephen @ gmail.com" wrote: > 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 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 debugging I noticed that both the camera callback and the > > onDrawFrame are called in such situations. the bytearray of the camera > > does contain data. though nothing is shown. > > I would really appreciate if someone could help me with this, cause > > problem has been driving me crazy for days. > > > the source can be browsed/checked out here: > >http://code.google.com/p/andar/source/checkout > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: help needed with project: preview image on a opengl texture
The build number is: DRC83 I'm using an T-mobile G1. >Also, I'm wondering, is it sufficient to exit the application to restore the >device's normal behavior? Exiting the application works fine. If I restart the application sometimes it will work sometimes not... On 10 Dez., 22:54, "Stephen @ gmail.com" wrote: > On the physical device, in settings->about phone-> build_number., > there's a long description there that more precisely identifies the revision > of software being used. In the first software revision for Droid, for > example, it will say ESD20 in the midst of that long string. > > Also, I'm wondering, is it sufficient to exit the application to restore the > device's normal behavior? > > I appreciate the information if you're willing to reply. Thanks! > > Stephen. > > On Thu, Dec 10, 2009 at 1:37 PM, tdom...@googlemail.com < > > tdom...@googlemail.com> wrote: > > I'm using Android 1.6. > > > where do I get the revision from? > > > On 10 Dez., 22:00, "Stephen @ gmail.com" > > wrote: > > > 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 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 debugging I noticed that both the camera callback and the > > > > onDrawFrame are called in such situations. the bytearray of the camera > > > > does contain data. though nothing is shown. > > > > I would really appreciate if someone could help me with this, cause > > > > problem has been driving me crazy for days. > > > > > the source can be browsed/checked out here: > > > >http://code.google.com/p/andar/source/checkout > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to > > android-developers@googlegroups.com > > > > To unsubscribe from this group, send email to > > > > android-developers+unsubscr...@googlegroups.com > > > > > > > For more options, visit this group at > > > >http://groups.google.com/group/android-developers?hl=en > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: help needed with project: preview image on a opengl texture
>You need to call setPreviewDisplay in surfaceChanged. ok thanks I will try that later. >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. yeah I was going to do so as soon as I fix this this ugly bug, get an RGB image etc . I wanted to get fast results. On 11 Dez., 02:59, Wu-cheng Li (李務誠) wrote: > 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...@googlemail.com> wrote: > > 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 debugging I noticed that both the camera callback and the > > onDrawFrame are called in such situations. the bytearray of the camera > > does contain data. though nothing is shown. > > I would really appreciate if someone could help me with this, cause > > problem has been driving me crazy for days. > > > the source can be browsed/checked out here: > >http://code.google.com/p/andar/source/checkout > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: help needed with project: preview image on a opengl texture
couldn't fully test if it works. but why do I have to call this method, what does it acutally do? I though it was needed if you want to directly let the camera draw on an surface, like here: http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html But I want to draw the camera preview on an opengl object, through textures, do I really need to do that? On 11 Dez., 23:10, "tdom...@googlemail.com" wrote: > >You need to call setPreviewDisplay in surfaceChanged. > > ok thanks I will try that later. > > >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. > > yeah I was going to do so as soon as I fix this this ugly bug, get an > RGB image etc . > > I wanted to get fast results. > > On 11 Dez., 02:59, Wu-cheng Li (李務誠) wrote: > > > 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...@googlemail.com> wrote: > > > 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 debugging I noticed that both the camera callback and the > > > onDrawFrame are called in such situations. the bytearray of the camera > > > does contain data. though nothing is shown. > > > I would really appreciate if someone could help me with this, cause > > > problem has been driving me crazy for days. > > > > the source can be browsed/checked out here: > > >http://code.google.com/p/andar/source/checkout > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: help needed with project: preview image on a opengl texture
On the physical device, in settings->about phone-> build_number., there's a long description there that more precisely identifies the revision of software being used. In the first software revision for Droid, for example, it will say ESD20 in the midst of that long string. Also, I'm wondering, is it sufficient to exit the application to restore the device's normal behavior? I appreciate the information if you're willing to reply. Thanks! Stephen. On Thu, Dec 10, 2009 at 1:37 PM, tdom...@googlemail.com < tdom...@googlemail.com> wrote: > I'm using Android 1.6. > > where do I get the revision from? > > On 10 Dez., 22:00, "Stephen @ gmail.com" > wrote: > > 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 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 debugging I noticed that both the camera callback and the > > > onDrawFrame are called in such situations. the bytearray of the camera > > > does contain data. though nothing is shown. > > > I would really appreciate if someone could help me with this, cause > > > problem has been driving me crazy for days. > > > > > the source can be browsed/checked out here: > > >http://code.google.com/p/andar/source/checkout > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to > android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: help needed with project: preview image on a opengl texture
sorry for the distraction. I'm definitely not familiar with this issue. On Thu, Dec 10, 2009 at 2:10 PM, tdom...@googlemail.com < tdom...@googlemail.com> wrote: > The build number is: DRC83 > I'm using an T-mobile G1. > > >Also, I'm wondering, is it sufficient to exit the application to restore > the > >device's normal behavior? > Exiting the application works fine. If I restart the application > sometimes it will work sometimes not... > > On 10 Dez., 22:54, "Stephen @ gmail.com" > wrote: > > On the physical device, in settings->about phone-> build_number., > > there's a long description there that more precisely identifies the > revision > > of software being used. In the first software revision for Droid, for > > example, it will say ESD20 in the midst of that long string. > > > > Also, I'm wondering, is it sufficient to exit the application to restore > the > > device's normal behavior? > > > > I appreciate the information if you're willing to reply. Thanks! > > > > Stephen. > > > > On Thu, Dec 10, 2009 at 1:37 PM, tdom...@googlemail.com < > > > > tdom...@googlemail.com> wrote: > > > I'm using Android 1.6. > > > > > where do I get the revision from? > > > > > On 10 Dez., 22:00, "Stephen @ gmail.com" > > > wrote: > > > > 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 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 debugging I noticed that both the camera callback and the > > > > > onDrawFrame are called in such situations. the bytearray of the > camera > > > > > does contain data. though nothing is shown. > > > > > I would really appreciate if someone could help me with this, cause > > > > > problem has been driving me crazy for days. > > > > > > > the source can be browsed/checked out here: > > > > >http://code.google.com/p/andar/source/checkout > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > > > Groups "Android Developers" group. > > > > > To post to this group, send email to > > > android-developers@googlegroups.com > > > > > To unsubscribe from this group, send email to > > > > > android-developers+unsubscr...@googlegroups.com > > > > > > > > > > > > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/android-developers?hl=en > > > > > -- > > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > > To post to this group, send email to > android-developers@googlegroups.com > > > To unsubscribe from this group, send email to > > > android-developers+unsubscr...@googlegroups.com > > > > > > For more options, visit this group at > > >http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: help needed with project: preview image on a opengl texture
On Sat, Dec 12, 2009 at 6:28 AM, tdom...@googlemail.com < tdom...@googlemail.com> wrote: > couldn't fully test if it works. > but why do I have to call this method, what does it acutally do? > > I though it was needed if you want to directly let the camera draw on > an surface, like here: > > http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html > > But I want to draw the camera preview on an opengl object, through > textures, do I really need to do that? > Yes. You still need to do that. If applications do not call setPreviewDisplay, camera drivers may not start the preview even if startPreview is called. Ex: the current implementation on Droid. > > On 11 Dez., 23:10, "tdom...@googlemail.com" > wrote: > > >You need to call setPreviewDisplay in surfaceChanged. > > > > ok thanks I will try that later. > > > > >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. > > > > yeah I was going to do so as soon as I fix this this ugly bug, get an > > RGB image etc . > > > > I wanted to get fast results. > > > > On 11 Dez., 02:59, Wu-cheng Li (李務誠) wrote: > > > > > 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...@googlemail.com> wrote: > > > > 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 debugging I noticed that both the camera callback and the > > > > onDrawFrame are called in such situations. the bytearray of the > camera > > > > does contain data. though nothing is shown. > > > > I would really appreciate if someone could help me with this, cause > > > > problem has been driving me crazy for days. > > > > > > the source can be browsed/checked out here: > > > >http://code.google.com/p/andar/source/checkout > > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups "Android Developers" group. > > > > To post to this group, send email to > android-developers@googlegroups.com > > > > To unsubscribe from this group, send email to > > > > android-developers+unsubscr...@googlegroups.com > > > > > > > For more options, visit this group at > > > >http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en