I call Camera.takePicture(null,rawCallback,null); in onPictureTaken(data,camera) of rawCallback, data is null. I cann't get the raw data. but if I call Camera,takePicture(null,null,rawCallback), the data is not null, it contains picture pixels data.
do u know why? On 10月22日, 下午10时19分, Hong <lordh...@gmail.com> wrote: > you need to call the Camera.takePicture(shutter, raw, jpeg) > each arg implements the corresponding callback (shutter > callback,picturecallback,picturecallback). > > so if you need to get the rawdata, implement a class withpicturecallback, and > the onPictureTaken(byte[] raw...) > will be available for you. > > but sounds like you try to get the video frame? let me know if you succeed... > > thanks > > On Tue, Oct 21, 2008 at 5:57 PM, steve1 <steve.belc...@rcn.com> wrote: > > > I'm probably missing something obvious, so I apologize if > > this is a dumb question. > > > Once I've registered callbacks using Camera.takePicture(), > > what does my application need to do to have those callbacks > > called? > > > As near as I've been able to tell, the callback is executed > > during a camera preview, or by the user actually taking a > > picture using the native camera application. > > > But I don't want to start a preview or launch the native camera > > application. All I want is the raw imagedatafrom the camera > > hardware. > > > Is there a way to do this? > > > Thank you! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---