Android Question Barcode reader on portrait mode

Christian García S.

Active Member
Licensed User
Hello,

I copy the example from https://www.b4x.com/android/forum/threads/barcode-reader-based-on-google-play-services-vision.89705/ to my project (manifest editor, addional jars, etc.) but when I execute in my project all works but not detect codes.

I don't know if the issues is because my app is in portrait or other reason, or missing somehting, in camera example works fine in my phone.

Can you help me ???

Thanks

I check unfiltered logs and said this:

B4X:
NavItem selected: 8 Buscamático
** Activity (act_principal) Pause, UserClosed = false **
Pausada Principalfalse
ignoring event: navdrawer_drawerslide
handleWindowVisibility: no activity for token android.os.BinderProxy@5e53db
createDecorCaptionView >> DecorView@1752a24[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
Input channel constructed: fd=78
setView = DecorView@1752a24[act_per_bm_escanear] TM=true MM=false
MSG_WINDOW_FOCUS_CHANGED 0 1
prepareNavigationBarInfo() DecorView@5b85b22[act_principal]
getNavigationBarColor() -855310
ignoring event: navdrawer_drawerslide
dispatchAttachedToWindow
Relayout returned: old=[0,0][1080,2220] new=[0,0][1080,2220] result=0x7 surface={valid=true 488855236608} changed=true
EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
eglCreateWindowSurface = 0x71de787800, 0x71d20af010
** Activity (act_per_bm_escanear) Create, isFirst = true **
Class android.support.v4.view.PagerAdapter failed lock verification and will run slower.
Class com.google.android.gms.internal.vision.zzm failed lock verification and will run slower.
Class com.google.android.gms.dynamite.DynamiteModule failed lock verification and will run slower.
Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
Cannot load feature, fall back to load whole module.
Local module descriptor class for com.google.android.gms.vision.dynamite not found.
Unsupported class loader
Skipping duplicate class check due to unsupported classloader
Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:2700
Selected remote version of com.google.android.gms.vision.dynamite, version >= 2700
Dynamite loader version >= 2, using loadModule2NoCrashUtils
Singleton logger instance not set.
Unsupported class loader
Skipping duplicate class check due to unsupported classloader
Loading library libbarhopper.so
The ClassLoaderContext is a special shared library.
uid=10432(com.app.com) identical 1 line
The ClassLoaderContext is a special shared library.
Warning: "/data/data/com.google.android.gms/app_vision/barcode/libs/arm64-v8a/libbarhopper.so" unused DT entry: unknown processor-specific (type 0x7ffffffd arg 0x6dd) (ignoring)
libbarhopper.so library load status: true
Considering local module com.google.android.gms.flags:3 and remote module com.google.android.gms.flags:3
Selected local version of com.google.android.gms.flags
Class com.google.android.gms.flags.impl.zzj failed lock verification and will run slower.
Class com.google.android.gms.vision.Detector failed lock verification and will run slower.
Is detector operational: true
** Activity (act_per_bm_escanear) Resume **
ignoring event: navdrawer_drawerslide
Relayout returned: old=[0,0][1080,2220] new=[0,0][1080,2220] result=0x3 surface={valid=true 488855236608} changed=false
MSG_WINDOW_FOCUS_CHANGED 1 1
prepareNavigationBarInfo() DecorView@1752a24[act_per_bm_escanear]
getNavigationBarColor() -855310
prepareNavigationBarInfo() DecorView@1752a24[act_per_bm_escanear]
getNavigationBarColor() -855310
Starting input: tba=com.app.com ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
startInputInner - Id : 0
startInputInner - mService.startInputOrWindowGainedFocus
Input channel constructed: fd=93
Input channel destroyed: fd=75
Class anywheresoftware.b4a.objects.CameraW failed lock verification and will run slower.
findCamera
null
2
facing: 0, 0
onWindowVisibilityChanged(0) true android.view.SurfaceView{4ebce7e V.E...... ......I. 0,0-0,0} of ViewRootImpl@814e1af[act_per_bm_escanear]
setPackageUsesOwnResolution() (Java SurfaceView) for com.app.com: 1065x1082 (true)
Class anywheresoftware.b4a.objects.CameraW$2 failed lock verification and will run slower.
Class anywheresoftware.b4a.objects.CameraW$CloseCamera failed lock verification and will run slower.
[APM]APM's Thread is started
[APM] This app is forground app
Relayout returned: old=[0,0][1080,2220] new=[0,0][1080,2220] result=0x1 surface={valid=true 488855236608} changed=false
show() Surface(name=SurfaceView - com.app.com/com.app.com.act_per_bm_escanear@4ebce7e@0[24119])/@0xa87942c android.view.SurfaceView{4ebce7e V.E...... ......ID 0,0-1065,1082}
surfaceCreated 1 #8 android.view.SurfaceView{4ebce7e V.E...... ......ID 0,0-1065,1082}
surfaceChanged (1065,1082) 1 #8 android.view.SurfaceView{4ebce7e V.E...... ......ID 0,0-1065,1082}
MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 2220) ci=Rect(0, 0 - 0, 144) vi=Rect(0, 0 - 0, 144) or=1
Class anywheresoftware.b4a.objects.CameraW$2$1 failed lock verification and will run slower.
Ignoring event: navdrawer_drawerclosed
findCamera
0
2
facing: 0, 0
90
EGLNativeWindowType 0x71d58ce010 disconnect failed
eglDestroySurface = 0x71d5998900, 0x71d58ce000
Relayout returned: old=[0,0][1080,2220] new=[0,0][1080,2220] result=0x5 surface={valid=false 0} changed=true
setWindowStopped(true) old=false
Surface release. android.view.WindowManagerGlobal.setStoppedState:669 android.app.Activity.performStop:7650 android.app.ActivityThread.callActivityOnStop:4379 android.app.ActivityThread.performStopActivityInner:4357 android.app.ActivityThread.handleStopActivity:4432 android.app.servertransaction.StopActivityItem.execute:41 android.app.servertransaction.TransactionExecutor.executeLifecycleState:145 android.app.servertransaction.TransactionExecutor.execute:70
Relayout returned: old=[0,0][1080,2220] new=[0,0][1080,2220] result=0x1 surface={valid=false 0} changed=false
Log reader error: java.io.InterruptedIOException: read interrupted
-1 received
writer error
java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:2034)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2068)
    at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:387)
    at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
    at java.lang.Thread.run(Thread.java:764)
 
Top