I write a take picture program for test. The program exports as a
application package and installs in real device. I start the activity
with the command "adb shell am start -ncom.demo.android.cameracool/
com.demo.android.cameracool.CameraCool". The name of my program is
CameraCool.

When the activity start, input command "adb logcat *:E" in console to
monitor it. I get some error:

E/ServiceManager( 1138): add_service('SensorCalibrationManager',0x4b)
uid=1000 -
 ALREADY REGISTERED
E/ISystemManager( 1226): GET_UNIT_ID
E/CalLibrary( 1226): Sensors Started
E/CameraHardware( 1149): ioctl with CAMERA_EXIT failed
E/CameraHardware( 1149): set_total_zoom: vb6801_set_sensor_zoom_mode
fai
led!
E/CameraCool( 1970): open camera
E/CameraHardware( 1149): initRaw: clearing old mJpegHeap.
E/CameraHardware( 1149): pmem pool /dev/pmem_adsp ioctl(PMEM_GET_SIZE)
i
s 4718592
E/CameraHardware( 1149): TAKE PICTURE LOCK ACQUIRED
E/CameraCool( 1970): -take picture
E/CameraHardware( 1149): pmemheap: id = 27 base = 2bddc000
E/CameraHardware( 1149): pmem pool /dev/pmem_adsp ioctl(PMEM_GET_SIZE)
i
s 118784
E/CameraHardware( 1149): pmemheap: id = 29 base = 2bdfc000
E/CameraHardware( 1149): pmem pool /dev/pmem_adsp ioctl(PMEM_GET_SIZE)
i
s 118784
E/CameraHardware( 1149): pmemheap: id = 31 base = 2be1c000
E/CameraHardware( 1149): pmem pool /dev/pmem_adsp ioctl(PMEM_GET_SIZE)
i
s 118784
E/CameraHardware( 1149): pmemheap: id = 33 base = 2be3c000
E/CameraHardware( 1149): pmem pool /dev/pmem_adsp ioctl(PMEM_GET_SIZE)
i
s 118784
E/CameraHardware( 1149): hal_mmap #0 start = 2bddc000 end = 2bdf81ff
E/CameraHardware( 1149): hal_mmap #1 start = 2bdfc000 end = 2be181ff
E/CameraHardware( 1149): hal_mmap #2 start = 2be1c000 end = 2be381ff
E/CameraHardware( 1149): hal_mmap #3 start = 2be3c000 end = 2be581ff
E/CameraCool( 1970): in shutter callback
E/CameraHardware( 1149): native_get_picture: MSM_CAM_IOCTL_GET_PICTURE
f
ailed... ioctl return value is -1
E/CameraHardware( 1149): main:3071 getPicture failed!
E/CameraHardware( 1149): JPEG callback was cancelled--not encoding
image
.
E/CameraHardware( 1149):  LOCK ACQUIRED in receive jpegpicture
E/CameraHardware( 1149):  SIGNALLED QCS_IDLE in receivejpegpicture
E/CameraHardware( 1149):  SIGNALLED QCS_IDLE in receiverawpicture
E/CameraHardware( 1149): receiveRawPicture: X

This is snippet of my code:

mCamera = Camera.open();
mCamera.takePicture(shutterCallback, rawCallback, jpegCallback);

How to solve it? If someone knows the answer, please give me a hint.
Thanks a lot.
Adrian

-- 
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

Reply via email to