I have a simple piece of code here, but for some reason this data is not stored. I'm sure this is some stupid, but I do not know this. Any help would be greatly appreciated. , Nor saving "data" to "picture". Any idea? I'm trying to take a picture with the front facing camera, will I need something special for what I'm not doing ? I also have these permissions You should make the following lines in AndroidManifest.xml : To access the font camera that appears in Android 2.3 (API version 9) only. In the earlier version you should use vendor-specific techniques. Take a look at Galaxy S: I hope this will help you. If not, try playing with the Private Byte [] Photo; Public Zero Lenography () (camera camera = camera.open (); camera parameter parameter = camera.getParameters (); parameters.set ("camera-id", 2); camera.setParameters (parameter); Parameters.set ( "GPS-timestamp", "1233744883"); camera.setParameters (parameter); log.i ("method", "in picture ()"); Camera.takePicture (empty, rawcolbback, empty); camera.release ( );} Picturecackbackback rawColoback = new paintingback () {public zeros (byte [] data, camera camera on picturecut) {// Todo Image RAW data with something Do I log in to call back when I run the code ("rawkelack", "rawkelback in"); photo = data;}};
& lt; use-permission Android: name = "android.permission .CAMERA "/> & lt; use-facility Android: name =" android.hardware.camera "/>
the last parameter in Camera.takePicture () matches For JPEG callback, you should add the
parameters.setPictureFormat (PixelFormat.JPEG); The first line from the camera. Call the capacitors () or use
camera.takePicture (null, rawCallback, null).
Camera. Parameter criteria = MCAMERA.jet parameter (); Parameters.set ("camera-id", 2); Parameters.setPreviewSize (640, 480); // or (800,480) The front camera preview size in front of this Samsung Galaxy SMCA Metersetet parameter (parameter) is supported;
setPreviewSize parameter above.
Comments
Post a Comment