Error code:
12-12 14:28:34.692:e/androidruntime (1524): Java.lang.RuntimeException:startPreview failed 12-12 Androidruntime (1524): At Android.hardware.Camera.startPreview (Native method) 12-12 14:28:34.692:e/androidruntime ( 1524): at com.nmbb.example.sampleexecutejs.CameraDemoActivity.surfaceCreated (camerademoactivity.java:85) 12-12 14:28:34.692:e/androidruntime (1524): at Android.view.SurfaceView.updateWindow (surfaceview.java:569) 12-12 14:28:34.692:e/androidruntime (1524): at android.view.surfaceview.access$000 (surfaceview.java:86) 12-12 14:28:34.692:e/androidruntime (1524): at Android.view.surfaceview$3.onpredraw (surfaceview.java:174) 12-12 14:28:34.692:e/androidruntime (1524): at Android.view.ViewTreeObserver.dispatchOnPreDraw (Viewtreeobserver.java : 680) 12-12 14:28:34.692:e/androidruntime (1524): at Android.view.ViewRootImpl.performTraversals (Viewrootimpl.java : 1896) 12-12 14:28:34.692:e/androidruntime (1524): at Android.view.ViewRootImpl.doTraveRsal (viewrootimpl.java:999) 12-12 14:28:34.692:e/androidruntime (1524): at android.view.viewrootimpl$ Traversalrunnable.run (viewrootimpl.java:4470) 12-12 14:28:34.692:e/androidruntime (1524): at Android.view.choreographer$callbackrecord.run (choreographer.java:749) 12-12 14:28:34.692:e/androidruntime (1524): At Android.view.Choreographer.doCallbacks (choreographer.java:562) 12-12 14:28:34.692:e/androidruntime (1524): at Android.view.Choreographer.doFrame (choreographer.java:532) 12-12 14:28:34.692:e/androidruntime (1524): at Android.view.choreographer$framedisplayeventreceiver.run (choreographer.java:735) 12-12 14:28:34.692:e/ Androidruntime (1524): at Android.os.Handler.handleCallback (handler.java:725) 12-12 14:28:34.692:e/androidruntime ( 1524): at Android.os.Handler.dispatchMessage (handler.java:92) 12-12 14:28:34.692:e/androidruntime (1524): at Andro Id.os.Looper.loop (looper.java:137) 12-12 14:28:34.692:e/androidruntime (1524): at Android.app.ActivityThreAd.main (activitythread.java:5068) 12-12 14:28:34.692:e/androidruntime (1524): at Java.lang.reflect.Method.invokeNative (Native method) 12-12 14:28:34.692:e/androidruntime (1524): at Java.lang.reflect.Method.invoke (method.java:511) 12-12 14:28:34.692:e/androidruntime (1524): at Com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:793) 12-12 14:28:34.692:e/ Androidruntime (1524): at Com.android.internal.os.ZygoteInit.main (zygoteinit.java:560) 12-12 14:28:34.692:e/ Androidruntime (1524): At Dalvik.system.NativeStart.main (Native method)
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/extra/
Error Reason:
As long as you set the Android:process attribute on the activity, you can't preview the!!! Appearing in The Phantom FlyMe OS 3, FlyMe OS 1 and FlyMe OS 2 are not problematic.
Workaround:
There's no good way to android:process.
Author: cnblogs Peasant Uncle