Right on Mark, One of the reasons I found out was a lingering process that was locked it. I killed that process and the camera service responds fine now.
The second time it did this I found out that after the camera goes into preview, an image is snapped (this is the app I am testing that takes pictures automatically every few seconds) but right after the first picture is snapped on this phone the Camera service dies. This is still puzzling cause like I said earlier this app works fine on an identical phone. I will check to see if I am setting the resolution of the preview or the picture to be something outside what this camera can handle? Also I saw messages that the Rolloff feature is not supported, no idea what that is. When I set the autofocus in the manifest the phone (again running 2.2) said that this feature is not available, which makes no sense since 2.2 does support autofocus. On Nov 15, 5:53 pm, Mark Murphy <[email protected]> wrote: > It seems like the CameraService thinks that the camera is in use. Only > one application can use the camera at a time. And if an application > leaks the camera (by not closing it), it might be tied up until the > process gets terminated or you reboot the phone. > > > > > > > > > > On Tue, Nov 15, 2011 at 5:17 PM, kypriakos <[email protected]> wrote: > > > Hi all, > > > I have been running an activity that access the phone's camera (on > > Froyo), puts it > > in preview mode and then snaps and stores a picture. This has been > > working fine > > on one phone but on a second phone with the same OS and specs I get > > the following: > > > I/#LGIME ( 1481): #### onStartInput: restarting=false, fieldId=-1 > > I/System.out( 6895): surface created - calling picture ... > > E/CameraService( 1291): CameraService::connect X (pid 6895, new client > > 0x1bfc8) rejected. (old pid 5261, old client 0x22798) > > E/CameraService( 1291): forcefully terminating old client.. ref count > > > Has anyone seen this before? What would cause the camera service to > > reject connections to > > it since the Manifest for the app is the same as on the other phone > > and it does allow Camera > > access. Any ideas would be appreciated. > > > Thanks > > > -- > > 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 > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

