I think it was part of some old code. I removed it. Same issue. Here’s the logcat.
On Android 4.3, the screen shows the camera view , but not the top-bar
On Android 6, same screen as Android 4.3. And sometimes (when I clean->run the app, it is a blank-screen)
Notice this error, which seems to be related to the FrameLayout :
ViewRootImpl #2 Surface is not valid.
Full Adb logcat :
Android 4.3 10-16 18:42:50.610 22703-22727/com.xxx V/Corona: Loading via reflection: plugin.qrscanner.LuaLoader 10-16 18:42:50.615 22703-22727/com.xxx V/Vibrator: Called vibrate(long[], int) API - PUID: 10164, PackageName: com.xxx 10-16 18:42:50.615 22703-22727/com.xxx V/Vibrator: vibrate - PUID: 10164, PackageName: com.xxx, pattern, repeat: -1 10-16 18:42:50.615 22703-22727/com.xxx I/Corona: [Lua::RuntimeDispatchEvent()] WARNING: This function is deprecated. Use Lua::DispatchRuntimeEvent() instead. 10-16 18:42:55.625 22703-22727/com.xxx I/Corona: showing qr 10-16 18:42:55.635 22703-22727/com.xxx I/Corona: Done showing QR 10-16 18:42:55.925 22703-22703/com.xxx D/SensorManager: unregisterListener :: 10-16 18:42:56.230 22703-22703/com.xxx E/ViewSystem: ViewRootImpl #2 Surface is not valid. 10-16 18:42:56.240 22703-22703/com.xxx W/dalvikvm: VFY: unable to resolve static field 13459 (qrscanner) in Lplugin/qrscanner/R$menu; 10-16 18:42:56.240 22703-22703/com.xxx D/dalvikvm: VFY: replacing opcode 0x60 at 0x0004 10-16 18:42:56.240 22703-22703/com.xxx W/dalvikvm: VFY: unable to resolve static field 13458 (action\_flash) in Lplugin/qrscanner/R$id; 10-16 18:42:56.240 22703-22703/com.xxx D/dalvikvm: VFY: replacing opcode 0x60 at 0x0017 10-16 18:42:56.240 22703-22703/com.xxx W/dalvikvm: VFY: unable to resolve static field 13458 (action\_flash) in Lplugin/qrscanner/R$id; 10-16 18:42:56.240 22703-22703/com.xxx D/dalvikvm: VFY: replacing opcode 0x60 at 0x0000 10-16 18:42:56.245 22703-22703/com.xxx I/dalvikvm: DexOpt: unable to optimize static field ref 0x3491 at 0x3a in Lplugin/qrscanner/CameraActivity;.onOptionsItemSelected 10-16 18:42:56.245 22703-22703/com.xxx I/dalvikvm: DexOpt: unable to optimize static field ref 0x3490 at 0x4a in Lplugin/qrscanner/CameraActivity;.onOptionsItemSelected 10-16 18:42:56.245 22703-22703/com.xxx D/dalvikvm: Trying to load lib /data/app-lib/com.xxx-2/libiconv.so 0x4281be30 10-16 18:42:56.255 22703-22703/com.xxx D/dalvikvm: Added shared lib /data/app-lib/com.xxx-2/libiconv.so 0x4281be30 10-16 18:42:56.255 22703-22703/com.xxx D/dalvikvm: No JNI\_OnLoad found in /data/app-lib/com.xxx-2/libiconv.so 0x4281be30, skipping init 10-16 18:42:56.415 22703-22703/com.xxx D/dalvikvm: Trying to load lib /data/app-lib/com.xxx-2/libzbarjni.so 0x4281be30 10-16 18:42:56.420 22703-22703/com.xxx D/dalvikvm: Added shared lib /data/app-lib/com.xxx-2/libzbarjni.so 0x4281be30 10-16 18:42:57.135 22703-22703/com.xxx I/Choreographer: Skipped 53 frames! The application may be doing too much work on its main thread. 10-16 18:42:57.770 22703-22703/com.xxx D/dalvikvm: GC\_FOR\_ALLOC freed 3638K, 33% free 10070K/14860K, paused 13ms, total 13ms 10-16 18:42:58.200 22703-22703/com.xxx I/Choreographer: Skipped 62 frames! The application may be doing too much work on its main thread. 10-16 18:42:58.420 22703-22703/com.xxx E/ViewRootImpl: sendUserActionEvent() mView == null 10-16 18:42:58.420 22703-22703/com.xxx E/ViewRootImpl: sendUserActionEvent() mView == null Android 6.0.1 10-16 18:46:44.509 10194-10261/com.xxx V/Corona: Loading via reflection: plugin.qrscanner.LuaLoader 10-16 18:46:44.509 10194-10261/com.xxx V/Vibrator: Called vibrate(long[], int) API! 10-16 18:46:44.509 10194-10261/com.xxx V/Vibrator: vibrate(long[], int, AudioAttributes) API - PUID: 10356, PackageName: com.xxx, repeat: -1, AudioAttr: null 10-16 18:46:44.509 10194-10261/com.xxx V/Vibrator: Called vibrate(int, String, long[], int, AudioAttributes) API - PUID: 10356, PackageName: com.xxx, pattern 10-16 18:46:44.509 10194-10261/com.xxx V/Vibrator: vibrate - PUID: 10356, PackageName: com.xxx, pattern, repeat: -1, AudioAttr: null, mag: -1 10-16 18:46:44.509 10194-10261/com.xxx I/Corona: [Lua::RuntimeDispatchEvent()] WARNING: This function is deprecated. Use Lua::DispatchRuntimeEvent() instead. 10-16 18:46:49.509 10194-10261/com.xxx I/Corona: showing qr 10-16 18:46:49.519 10194-10261/com.xxx I/Corona: Done showing QR 10-16 18:49:36.529 10194-10194/com.xxx D/SensorManager: unregisterListener ::
.