I am also looking for the usage of setCamera to set the camera opened by the Camera app, and get the warming message: W/CameraService( 966): Tried to connect to locked camera
Above the warming line in CameraService.cpp are the comments: // I hate this hack, but things get really ugly when the media recorder // service is handing back the camera to the app. The ICameraClient // destructor will be called during the same IPC, making it look like // the remote client is trying to disconnect. This hack temporarily // sets the mClientPid to an invalid pid to prevent the hardware from // being torn down. anybody knows the exact usage of setCamera? On 5月3日, 上午11時30分, "bra...@gmail.com" <peacoc...@gmail.com> wrote: > Ok posted this several days ago but it appears to have been deleted. > > I am looking for clarification on the setCamera function. One would > have assumed you could open a camera device and set it as the input > device of the MediaRecorder. However this causes a crash because no > matter what I do it tries to open a locked device. I have tried > removing the line setsource and this causes all sorts of other issues, > not the least of which being that no other set functions will work > without that line. > > Would appreciate a description of exactly WHAT the setCamera function > is for. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---