http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html

이곳을 보고 그대로 코딩해서 실행하더니.. 오류가 자꾸 걸리네요..

물론 AndroidManifest.xml 파엘에 <uses-permission android:name="android.permission.CAMERA" /> 을 

추가했습니다.. 

무엇이 잘못된건가요?? 당춰 알수가 없네요..

아직 안드로이드를 시작한지 별로 안되는 학생이라..ㅜㅜ 고수님들의 도움이 필요해요. 꼭 알려주세요..

Logcat E는 아래와 같습니다.

05-08 05:23:28.559: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test2' (No such file or directory)
05-08 05:23:28.559: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test2' (No such file or directory)
05-08 05:23:28.559: ERROR/vold(27): Error opening switch name path '/sys/class/switch/test' (No such file or directory)
05-08 05:23:28.559: ERROR/vold(27): Error bootstrapping switch '/sys/class/switch/test' (No such file or directory)
05-08 05:23:42.000: ERROR/BatteryService(53): usbOnlinePath not found
05-08 05:23:42.000: ERROR/BatteryService(53): batteryVoltagePath not found
05-08 05:23:42.000: ERROR/BatteryService(53): batteryTemperaturePath not found
05-08 05:23:42.020: ERROR/SurfaceFlinger(53): Couldn't open /sys/power/wait_for_fb_sleep or /sys/power/wait_for_fb_wake
05-08 05:23:48.039: ERROR/EventHub(53): could not get driver version for /dev/input/mouse0, Not a typewriter
05-08 05:23:48.039: ERROR/EventHub(53): could not get driver version for /dev/input/mice, Not a typewriter
05-08 05:23:48.209: ERROR/System(53): Failure starting core service
05-08 05:23:48.209: ERROR/System(53): java.lang.SecurityException
05-08 05:23:48.209: ERROR/System(53):     at android.os.BinderProxy.transact(Native Method)
05-08 05:23:48.209: ERROR/System(53):     at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
05-08 05:23:48.209: ERROR/System(53):     at android.os.ServiceManager.addService(ServiceManager.java:72)
05-08 05:23:48.209: ERROR/System(53):     at com.android.server.ServerThread.run(SystemServer.java:176)
05-08 05:23:48.219: ERROR/AndroidRuntime(53): Crash logging skipped, no checkin service
05-08 05:24:01.820: ERROR/ActivityThread(103): Failed to find provider info for android.server.checkin
05-08 05:24:05.687: ERROR/MediaPlayerService(31): Couldn't open fd for content://settings/system/notification_sound
05-08 05:24:05.727: ERROR/MediaPlayer(53): Unable to to create media player
05-08 05:24:07.887: ERROR/ActivityThread(103): Failed to find provider info for android.server.checkin
05-08 05:24:08.177: ERROR/ActivityThread(103): Failed to find provider info for android.server.checkin
05-08 05:24:16.877: ERROR/AndroidRuntime(134): ERROR: thread attach failed
05-08 05:24:23.907: ERROR/AndroidRuntime(179): ERROR: thread attach failed
05-08 05:24:25.667: ERROR/CameraService(31): Permission Denial: can't use the camera pid=201, uid=10026
05-08 05:24:25.707: ERROR/AndroidRuntime(201): Uncaught handler: thread main exiting due to uncaught exception
05-08 05:24:25.827: ERROR/AndroidRuntime(201): java.lang.RuntimeException: Fail to connect to camera service
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.hardware.Camera.native_setup(Native Method)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.hardware.Camera.<init>(Camera.java:110)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.hardware.Camera.open(Camera.java:90)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at org.example.camerasample.Preview.surfaceCreated(CameraSample.java:42)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.SurfaceView.updateWindow(SurfaceView.java:454)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.SurfaceView.dispatchDraw(SurfaceView.java:287)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.View.draw(View.java:6538)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.View.draw(View.java:6538)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1830)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.ViewRoot.draw(ViewRoot.java:1349)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.os.Handler.dispatchMessage(Handler.java:99)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.os.Looper.loop(Looper.java:123)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at android.app.ActivityThread.main(ActivityThread.java:4363)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at java.lang.reflect.Method.invokeNative(Native Method)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at java.lang.reflect.Method.invoke(Method.java:521)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
05-08 05:24:25.827: ERROR/AndroidRuntime(201):     at dalvik.system.NativeStart.main(Native Method)
05-08 05:24:25.937: ERROR/dalvikvm(201): Unable to open stack trace file '/data/anr/traces.txt': Permission denied