Are you talking about the method Camera.PreviewCallback.onPreviewFrame (byte[] arg0, anrdoid.hardware.Camera arg1) ?
Is it allocating a new byte[] for every call? I would think it would keep its same byte[] and reuse it for each call. Posting more code may help. Thanks On May 25, 9:30 pm, Karan Parikh <[email protected]> wrote: > Hey All, > I am developing a camera application , where the frame rate is > important. However, camera uses a preview callback function which > allocates a byte[] array of 230400 bytes, which makes it necessary for > the garbage collection to step in. Can someone suggest me a way to > avoid garbage collection stepping in ? > Thanks in advance. > Regards, > Karan. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

