This problem was encountered by one of my user in my production app.
The user's mobile is Xiaomi Redmi S2 with Android 8.1 (sdk 27)
I am using plug-in Version - 1.0.0
java.lang.RuntimeException:
at android.hardware.Camera.native_setParameters (Camera.java)
at android.hardware.Camera.setParameters (Camera.java:2097)
at me.dm7.barcodescanner.core.BarcodeScannerView.setFlash (BarcodeScannerView.java:61)
at com.apptreesoftware.barcodescan.BarcodeScannerActivity.onOptionsItemSelected (BarcodeScannerActivity.java:35)
at android.app.Activity.onMenuItemSelected (Activity.java:3504)
at com.android.internal.policy.PhoneWindow.onMenuItemSelected (PhoneWindow.java:1236)
at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected (MenuBuilder.java:761)
at com.android.internal.view.menu.MenuItemImpl.invoke (MenuItemImpl.java:167)
at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:908)
at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:898)
at android.widget.ActionMenuView.invokeItem (ActionMenuView.java:617)
at com.android.internal.view.menu.ActionMenuItemView.onClick (ActionMenuItemView.java:147)
at android.view.View.performClick (View.java:6304)
at android.view.View$PerformClick.run (View.java:24803)
at android.os.Handler.handleCallback (Handler.java:794)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:173)
at android.app.ActivityThread.main (ActivityThread.java:6634)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:822)
This problem was encountered by one of my user in my production app. The user's mobile is Xiaomi Redmi S2 with Android 8.1 (sdk 27) I am using plug-in Version - 1.0.0
My app link - https://play.google.com/store/apps/details?id=dipinarora9.IncomeTaxCalculator
Stack Trace report -
java.lang.RuntimeException: at android.hardware.Camera.native_setParameters (Camera.java) at android.hardware.Camera.setParameters (Camera.java:2097) at me.dm7.barcodescanner.core.BarcodeScannerView.setFlash (BarcodeScannerView.java:61) at com.apptreesoftware.barcodescan.BarcodeScannerActivity.onOptionsItemSelected (BarcodeScannerActivity.java:35) at android.app.Activity.onMenuItemSelected (Activity.java:3504) at com.android.internal.policy.PhoneWindow.onMenuItemSelected (PhoneWindow.java:1236) at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected (MenuBuilder.java:761) at com.android.internal.view.menu.MenuItemImpl.invoke (MenuItemImpl.java:167) at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:908) at com.android.internal.view.menu.MenuBuilder.performItemAction (MenuBuilder.java:898) at android.widget.ActionMenuView.invokeItem (ActionMenuView.java:617) at com.android.internal.view.menu.ActionMenuItemView.onClick (ActionMenuItemView.java:147) at android.view.View.performClick (View.java:6304) at android.view.View$PerformClick.run (View.java:24803) at android.os.Handler.handleCallback (Handler.java:794) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loop (Looper.java:173) at android.app.ActivityThread.main (ActivityThread.java:6634) at java.lang.reflect.Method.invoke (Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:822)
I suspect this issue is related to flash.