On Nov 3, 8:58 am, Girish <[email protected]> wrote: > In my application i want to pass the camera data to native layer. what > is the best possible approach for doing the same. > > I know it can be done 2 ways. > > 1.start the camera in application and pass the preview data to native > layer. But i feel this may consume lot of resources.
This is the only 'supported' way. Apparently there is a bug with the camera callback that creates a new massive object for every frame. Since java is shite and garbage collected this slows this way down even before you copy all the data through JNI. > 2.Start the camera directly in native layer and use it. So JNI will > come less into picture. and not much resource loading also.But dont > want to take any risk by using the lower layer code which may change > in future. Yeah this would be ideal, but not supported yet, if ever. -- 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

