[EVO 4G Android Development] Skywing269:
well then consider me confused as well, I cant get the camera to start at all for me, here is the logcat stream thats displayed when starting the camera for me

W/HTCCamera( 820): onStart() - start
W/HTCCamera( 820): onStart() - end
W/HTCCamera( 820): onResume() - start
W/HTCCamera( 820): !!!! @@@@ broadcastStopVoiceRecording() - start
W/HTCCamera( 820): !!!! @@@@ broadcastStopVoiceRecording() - end
D/AK8973 ( 70): Compass Start
D/Sensors ( 104): open_akm, fd=103
W/HTCCamera( 820): Initial Display Orientation is portrait
W/HTCCamera( 820): mIsInitOrientation = true, mIsWaitOrientation = false
W/HTCCamera( 820): OnResume - reset UI, immediately set mMainLayout invisible
W/########## HtcSettingsReceiver ##########( 820): 2010-08-03 04:46:51 010(ms)
onReceive-start
W/HTCCamera( 820): Block Capture UI - onResume(), and unblock after start previ
ew
W/HTCCamera( 820): onResume() - mFocusingState = NO_FOCUSING
W/HTCCamera( 820): keyguard is not shown !!!!!
W/HTCCamera( 820): onResume() - end
D/PowerManagerService( 104): New lightsensor value:90, lcdValue:126
W/HTCCamera( 820): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$
$$$$$$$$$$$$android.view.SurfaceView$3@46a81a20
W/HTCCamera( 820): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$
$$$$$$$$$$$$ start preview
W/CameraThread( 820): CameraHandler Message - START_PREVIEW start mode0
W/HTCCamera( 820): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceChanged $$$$$$$$$$$$$$$
$$$$$$$$$$$$ w=480 h=800
E/CameraThread( 820): open the Camera in start_camera_preview
W/CameraSwitch( 820): open main camera
I/ActivityManager( 104): Displayed activity com.android.camera/.CameraEntry: 22
9 ms (total 229 ms)
D/CameraService( 65): CameraService::connect E (pid 820, client 0x22be0)
D/CameraService( 65): CameraService::connect X (pid 820, new client 0x22be0) r
ejected. (old pid 656, old client 0x22630)
E/CameraThread( 820): open camera failed
E/CameraThread( 820): java.lang.RuntimeException: Fail to connect to camera ser
vice
E/CameraThread( 820): at android.hardware.Camera.native_setup(Native Method)
E/CameraThread( 820): at android.hardware.Camera.<init>(Camera.java:118)
E/CameraThread( 820): at android.hardware.Camera.open(Camera.java:91)
E/CameraThread( 820): at com.android.camera.CameraThread.start_preview(CameraT
hread.java:1274)
E/CameraThread( 820): at com.android.camera.CameraThread$MainHandler.handleMes
sage(CameraThread.java:292)
E/CameraThread( 820): at android.os.Handler.dispatchMessage(Handler.java:99)
E/CameraThread( 820): at android.os.Looper.loop(Looper.java:144)
E/CameraThread( 820): at com.android.camera.CameraThread.run(CameraThread.java
:1853)
W/HTCCamera( 820): onPause() - start
W/HTCCamera( 820): onPause() - mIsUIReady = false
W/########## HtcSettingsReceiver ##########( 820): 2010-08-03 04:46:51 202(ms)
onReceive-start
W/HTCCamera( 820): AudioManager.STREAM_SYSTEM_ENFORCED, to fix volume ,mOrigina
lVolume = -1
W/HTCCamera( 820): onPause() - mFocusingState = NO_FOCUSING
W/HTCCamera( 820): OnPause - set mWaitResetSettings to false
W/HTCCamera( 820): releaseFaceDetection()
W/HTCCamera( 820): onPause mIdle is false
W/CameraThread( 820): CameraHandler Message - START_PREVIEW end
W/CameraThread( 820): CameraHandler Message - CLOSE_CAMERA start mMode=0
E/CameraThread( 820): mCameraDevice == null in close_camera
W/CameraThread( 820): CameraHandler Message - CLOSE_CAMERA end
D/Sensors ( 104): close_akm, fd=103
W/HTCCamera( 820): onPause() - end
D/PowerManagerService( 104): New lightsensor value:90, lcdValue:126
W/HTCCamera( 820): doOnPause() - start
W/HTCCamera( 820): OnPause - hide UI, set mMainLayout invisible
W/HTCCamera( 820): doOnPause() - end
W/HTCCamera( 820): initScreenMode() - initiate screen mode from capture mode
W/HTCCamera( 820): initScreenMode() - request landscape mode
W/HTCCamera( 820): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceDestroyed $$$$$$$$$$$$$
$$$$$$$$$$$$$$
D/AK8973 ( 70): Compass CLOSE
W/HTCCamera( 820): onStop() - start
W/HTCCamera( 820): onStop() - end
W/HTCCamera( 820): onDestroy() - start
W/CameraThread( 820): CameraHandler Message - QUIT_CAMERA_THREAD start
E/CameraThread( 820): mCameraDevice == null in close_camera
W/CameraThread( 820): CameraHandler Message - QUIT_CAMERA_THREAD end
W/HTCCamera( 820): onDestroy() - end
W/HTCCamera( 820): doOnDestroy() - start
W/HTCCamera( 820): doOnDestroy() - end
W/dalvikvm( 820): disableGcForExternalAlloc: false
D/dalvikvm( 675): GC_EXPLICIT freed 2958 objects / 169712 bytes in 72ms
V/AlarmManager( 104): Alarm triggering: Alarm{46e838d8 type 2 android}
V/AlarmManager( 104): Adding Alarm{46dfdb68 type 2 android} Dec 31 07:04:00 pm