我需要处理这些巨大的图像处理算法(需要完成许多循环),然后才能在相机预览中显示它。
相机预览可以显示“已处理”预览,但应用程序已死亡。我做了一个lockcanvas,但它没有解决问题。
为什么在显示相机预览之前应用程序已经死亡?有没有办法增加等待时间?
下面是我的logcat:
08-16 04:33:15.350: INFO/ActivityManager(1162): Displayed com.example.test/.Test: +2s114ms
08-16 04:33:16.170: WARN/IInputConnectionWrapper(19282): showStatusIcon on inactive InputConnection
08-16 04:33:16.300: INFO/CustomizationProvider(22101): No configuration file: /system/etc/customization/settings/com/sonyericsson/textinput/uxp/custom_settings.xml
08-16 04:33:16.450: INFO/ActivityManager(1162): Process com.sonyericsson.credentialmanagerservice (pid 19508) has died.
08-16 04:33:17.080: INFO/ActivityManager(1162): Process com.sonyericsson.capabilities (pid 19562) has died.
08-16 04:33:17.830: INFO/ActivityManager(1162): Process com.example.test (pid 19702) has died.
08-16 04:33:17.860: WARN/CameraService(1074): Client::disconnect(): Camera force closed
08-16 04:33:17.860: DEBUG/Zygote(1071): Process 19702 terminated by signal (11)
08-16 04:33:17.860: ERROR/InputDispatcher(1162): channel '408aaf80 com.example.test/com.example.test.Test(server)' ~ Consumer closed input channel or an error occurred. events=0x8
08-16 04:33:17.860: ERROR/InputDispatcher(1162): channel '408aaf80 com.example.test/com.example.test.Test(server)' ~ Channel is unrecoverably broken and will be disposed!
08-16 04:33:17.960: DEBUG/dalvikvm(1162): GC_EXPLICIT freed 307K, 43% free 6963K/12167K, external 3288K/4106K, paused 123ms
08-16 04:33:17.980: INFO/WindowManager(1162): Setting rotation to 0, animFlags=1
08-16 04:33:17.990: INFO/WindowManager(1162): WIN DEATH: Window{408aaf80 com.example.test/com.example.test.Test paused=false}
08-16 04:33:18.000: INFO/WindowManager(1162): WIN DEATH: Window{408c01f8 SurfaceView paused=false}
08-16 04:33:18.000: INFO/WindowManager(1162): WIN DEATH: Window{40990048 SurfaceView paused=false}
08-16 04:33:18.000: INFO/ActivityManager(1162): Config changed: { scale=1.0 imsi=525/3 loc=en_SG touch=3 keys=1/1/2 nav=1/1 orien=1 layout=34 uiMode=17 seq=851}