I've started getting the same issue. Trying to grab a single frame and
am getting:
04-19 01:00:03.059: ERROR/QualcommCameraHardware(621):
native_get_picture: MSM_CAM_IOCTL_GET_PICTURE fd 14 error Connection
timed out
04-19 01:00:03.059: ERROR/QualcommCameraHardware(621): getPicture
failed!
My manifest file contains the right permission
<manifest ..
...
</application>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
</manifest>
Runs fine in the emulator but fails on two seperate G1s.
On Mar 2, 8:42 am, Matias Alberto de la Vega
<[email protected]> wrote:
> Renjith as I told you in another thread, you should check the
> permissions in the manifest file. If it's not a permissions issue then
> we should check other options. The following is my response to your
> other email in case you've missed it:
> Renjith, did you add permission to use the camera in your
> AndroidManifest.xml file? If you are planing to store the pictures
> in
> the SD card you may also add permission to write in external storage
> or your application may fail in execution. Add the following lines
> to
> your manifest:
>
> <uses-permission android:name="android.permission.CAMERA" />
> <uses-permission
> android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
>
> On 28 feb, 16:54, Renjith <[email protected]> wrote:
>
> > Hi,
>
> > I was trying to write a snapshot application on android and I got
> > stuck at this error
>
> > 02-28 19:11:10.851: ERROR/QualcommCameraHardware(51):
> > native_get_picture: MSM_CAM_IOCTL_GET_PICTURE fd 12 error Connection
> > timed out
> > 02-28 19:11:10.851: ERROR/QualcommCameraHardware(51): getPicture
> > failed!
> > 02-28 19:11:10.851: DEBUG/QualcommCameraHardware(51): snapshot_thread
> > X
> > 02-28 19:11:10.921: DEBUG/QualcommCameraHardware(51): snapshot_thread
> > E
> > 02-28 19:11:11.921: DEBUG/CameraService(51): takePicture (pid 1304)
> > 02-28 19:11:14.651: DEBUG/dalvikvm(362): GC freed 200 objects / 7384
> > bytes in 196ms
> > 02-28 19:11:15.921: ERROR/QualcommCameraHardware(51):
> > native_get_picture: MSM_CAM_IOCTL_GET_PICTURE fd 12 error Connection
> > timed out
> > 02-28 19:11:15.921: ERROR/QualcommCameraHardware(51): getPicture
> > failed!
> > 02-28 19:11:15.921: DEBUG/QualcommCameraHardware(51): snapshot_thread
> > X
> > 02-28 19:11:15.991: DEBUG/QualcommCameraHardware(51): snapshot_thread
> > E
> > 02-28 19:11:16.991: DEBUG/CameraService(51): takePicture (pid 1304)
> > 02-28 19:11:19.891: DEBUG/dalvikvm(128): GC freed 6099 objects /
> > 326768 bytes in 407ms
>
> > I put the camera object to take picture in a loop and none of the
> > time, the take picture work.
>
> > Anyone have any idea on how to solve this ? Please help.
>
> > Thank you,
> > Renjith
--
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