Android Question Orientation Change on my app causes it to crash

EduardoElias

Well-Known Member
Licensed User
Longtime User
My application works mainly on landscape mode (tablet). However when the user is in portrait i force the change to landscape.

The problem is when in portrait the application crashes, with "android.content.res.Resources$NotFoundException: Unable to find resource ID #0x2711"

It is happening in all android versions, I am using b4a 8.0

Following unfiltered log, the error in the final...

Please, help

B4X:
After accept
Sending signal. PID: 15487 SIG: 9
handleBindApplication:yashar.yDashen
DisplayManager()
Starting remote logger. Port: 8039
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startServiceFromReceiver
VFY: unable to resolve virtual method 477: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0097
Enabling debug mode 0
After accept
Could not find method android.app.Notification$Builder.<init>, referenced from method anywheresoftware.b4a.objects.NotificationWrapper.SetInfo2New
VFY: unable to resolve direct method 270: Landroid/app/Notification$Builder;.<init> (Landroid/content/Context;Ljava/lang/String;)V
VFY: replacing opcode 0x76 at 0x0093
DexOpt: unable to opt direct call 0x0149 at 0xb0 in Lanywheresoftware/b4a/objects/NotificationWrapper;.SetInfo2New
Could not find method anywheresoftware.b4a.keywords.Common.CallSub, referenced from method yashar.yUSBManager.usbpl2303service._timer1_tick
VFY: unable to resolve static method 13721: Lanywheresoftware/b4a/keywords/Common;.CallSub (Lanywheresoftware/b4a/BA;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
VFY: replacing opcode 0x71 at 0x00c8
Could not find method android.app.AlarmManager.setAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAt
VFY: unable to resolve virtual method 141: Landroid/app/AlarmManager;.setAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0025
Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 143: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0025
** Activity (main) Create, isFirst = true **
yAppManager.OnLoginFail Timer Started
yConfig.LoadConfig
yDataBase.yDataSet.FromJSon: Found Match Table config
yDataBase.yDataSet DataFieldList Size 114
yAppManager.Login
yAppManager.Login AutoIp Enabled
yappmanageract_checkscreenorientation (B4A line: 294)
AppManagerAct.CheckScreenOrientation
java.lang.RuntimeException: Object was not initialized.
    at anywheresoftware.b4a.debug.Debug.PushSubsStack(Debug.java:124)
    at yashar.yDashen.yappmanageract._checkscreenorientation(yappmanageract.java:746)
    at yashar.yDashen.main._activity_create(main.java:658)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at yashar.yDashen.main.afterFirstLayout(main.java:104)
    at yashar.yDashen.main.access$000(main.java:17)
    at yashar.yDashen.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5590)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
    at dalvik.system.NativeStart.main(Native Method)
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
** Activity (main) Resume **
yappmanageract_activityresume (B4A line: 986)
AppManagerAct.ActivityResume
java.lang.RuntimeException: Object was not initialized.
    at anywheresoftware.b4a.debug.Debug.PushSubsStack(Debug.java:124)
    at yashar.yDashen.yappmanageract._activityresume(yappmanageract.java:94)
    at yashar.yDashen.main._activity_resume(main.java:1358)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
    at yashar.yDashen.main.afterFirstLayout(main.java:110)
    at yashar.yDashen.main.access$000(main.java:17)
    at yashar.yDashen.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5590)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
    at dalvik.system.NativeStart.main(Native Method)
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
*** Service (ybroadcastclientservice) Create ***
yBroadcastClientService started
yBroadcastClientService Broadcast IP Found 192.168.0.255
** Service (ybroadcastclientservice) Start **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
** Service (httputils2service) Start **
Timeline: Activity_idle id: android.os.BinderProxy@41d80690 time:1345148876
VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)
VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)
Could not find method java.nio.file.Files.newOutputStream, referenced from method okio.Okio.sink
VFY: unable to resolve static method 24287: Ljava/nio/file/Files;.newOutputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
VFY: replacing opcode 0x71 at 0x0012
VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)
VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)
Could not find method java.nio.file.Files.newInputStream, referenced from method okio.Okio.source
VFY: unable to resolve static method 24286: Ljava/nio/file/Files;.newInputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
VFY: replacing opcode 0x71 at 0x0012
GC_CONCURRENT freed 2986K, 30% free 9946K/14096K, paused 4ms+9ms, total 60ms
Reported API17
yClientIssuer.StartServices yConfig Count 0
yClientIssuer.StartServices yConfig Count 1
yClientIssuer.StartServices yConfig Count 1
yDataBase.yDataSet.FromJSon: Found Match Table config
yDataBase.yDataSet DataFieldList Size 86
GC_CONCURRENT freed 1456K, 26% free 10517K/14096K, paused 3ms+6ms, total 44ms
yClientIssuer.StartServiceEnd
yClientIssuer.StartServices yConfig Count 0
yAppManager.Login
yAppManager.Login AutoIp Enabled
Sent UDP 192.168.0.255 id=yclient&cmd=1&serial=3100af6420c49300
Sent UDP 192.168.0.255 id=yclient&cmd=2&serial=3100af6420c49300
Sent UDP 192.168.0.255 id=yclient&cmd=1&serial=3100af6420c49300
-1 received
writer error
java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1992)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2026)
    at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:373)
    at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
    at java.lang.Thread.run(Thread.java:841)
Starting remote logger. Port: 8039
-1 received
After accept
** Activity (main) Pause, UserClosed = false **
yappmanageract_activitypause (B4A line: 993)
AppManagerAct.ActivityPause(UserClosed)
java.lang.RuntimeException: Object was not initialized.
    at anywheresoftware.b4a.debug.Debug.PushSubsStack(Debug.java:124)
    at yashar.yDashen.yappmanageract._activitypause(yappmanageract.java:78)
    at yashar.yDashen.main._activity_pause(main.java:1337)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at yashar.yDashen.main.onPause(main.java:271)
    at android.app.Activity.performPause(Activity.java:5551)
    at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1240)
    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3324)
    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3293)
    at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3271)
    at android.app.ActivityThread.access$1000(ActivityThread.java:166)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5590)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
    at dalvik.system.NativeStart.main(Native Method)
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
** Activity (main) Resume **
yappmanageract_activityresume (B4A line: 986)
AppManagerAct.ActivityResume
java.lang.RuntimeException: Object was not initialized.
    at anywheresoftware.b4a.debug.Debug.PushSubsStack(Debug.java:124)
    at yashar.yDashen.yappmanageract._activityresume(yappmanageract.java:94)
    at yashar.yDashen.main._activity_resume(main.java:1358)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
    at yashar.yDashen.main$ResumeMessage.run(main.java:307)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5590)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
    at dalvik.system.NativeStart.main(Native Method)
Timeline: Activity_idle id: android.os.BinderProxy@41d80690 time:1345257383
GC_CONCURRENT freed 2432K, 29% free 10132K/14096K, paused 2ms+3ms, total 34ms
WAIT_FOR_CONCURRENT_GC blocked 19ms
GC_CONCURRENT freed 1957K, 28% free 10222K/14096K, paused 2ms+3ms, total 31ms
WAIT_FOR_CONCURRENT_GC blocked 24ms
GC_CONCURRENT freed 2084K, 28% free 10172K/14096K, paused 2ms+2ms, total 34ms
WAIT_FOR_CONCURRENT_GC blocked 27ms
GC_CONCURRENT freed 5455K, 40% free 10070K/16700K, paused 3ms+1ms, total 34ms
WAIT_FOR_CONCURRENT_GC blocked 28ms
GC_CONCURRENT freed 2042K, 31% free 10076K/14560K, paused 4ms+2ms, total 28ms
WAIT_FOR_CONCURRENT_GC blocked 19ms
GC_FOR_ALLOC freed 1809K, 32% free 10013K/14560K, paused 20ms, total 20ms
Skipped 43 frames!  The application may be doing too much work on its main thread.
java.net.SocketTimeoutException
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:108)
    at java.net.ServerSocket.implAccept(ServerSocket.java:203)
    at java.net.ServerSocket.accept(ServerSocket.java:128)
    at anywheresoftware.b4a.debug.DebugConnector.mainLoop(DebugConnector.java:122)
    at anywheresoftware.b4a.debug.DebugConnector.run(DebugConnector.java:73)
    at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: accept failed: EAGAIN (Try again)
    at libcore.io.Posix.accept(Native Method)
    at libcore.io.BlockGuardOs.accept(BlockGuardOs.java:55)
    at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:98)
    ... 5 more
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
-1 received
writer error
java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1992)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2026)
    at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:373)
    at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
    at java.lang.Thread.run(Thread.java:841)
Starting remote logger. Port: 8039
sendUserActionEvent() mView == null
Sending signal. PID: 15716 SIG: 9
handleBindApplication:yashar.yDashen
DisplayManager()
Starting remote logger. Port: 8039
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startServiceFromReceiver
VFY: unable to resolve virtual method 477: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0097
Enabling debug mode 0
After accept
Could not find method android.app.Notification$Builder.<init>, referenced from method anywheresoftware.b4a.objects.NotificationWrapper.SetInfo2New
VFY: unable to resolve direct method 270: Landroid/app/Notification$Builder;.<init> (Landroid/content/Context;Ljava/lang/String;)V
VFY: replacing opcode 0x76 at 0x0093
DexOpt: unable to opt direct call 0x0149 at 0xb0 in Lanywheresoftware/b4a/objects/NotificationWrapper;.SetInfo2New
Could not find method anywheresoftware.b4a.keywords.Common.CallSub, referenced from method yashar.yUSBManager.usbpl2303service._timer1_tick
VFY: unable to resolve static method 13721: Lanywheresoftware/b4a/keywords/Common;.CallSub (Lanywheresoftware/b4a/BA;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
VFY: replacing opcode 0x71 at 0x00c8
Could not find method android.app.AlarmManager.setAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAt
VFY: unable to resolve virtual method 141: Landroid/app/AlarmManager;.setAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0025
Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 143: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0025
** Activity (main) Create, isFirst = true **
yAppManager.OnLoginFail Timer Started
yConfig.LoadConfig
yDataBase.yDataSet.FromJSon: Found Match Table config
yDataBase.yDataSet DataFieldList Size 114
yAppManager.Login
yAppManager.Login AutoIp Enabled
yappmanageract_checkscreenorientation (B4A line: 294)
AppManagerAct.CheckScreenOrientation
java.lang.RuntimeException: Object was not initialized.
    at anywheresoftware.b4a.debug.Debug.PushSubsStack(Debug.java:124)
    at yashar.yDashen.yappmanageract._checkscreenorientation(yappmanageract.java:746)
    at yashar.yDashen.main._activity_create(main.java:658)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:186)
    at yashar.yDashen.main.afterFirstLayout(main.java:104)
    at yashar.yDashen.main.access$000(main.java:17)
    at yashar.yDashen.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:733)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5590)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
    at dalvik.system.NativeStart.main(Native Method)
java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
** Activity (main) Resume **
*** Service (ybroadcastclientservice) Create ***
yBroadcastClientService started
yBroadcastClientService Broadcast IP Found 192.168.0.255
** Service (ybroadcastclientservice) Start **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
** Service (httputils2service) Start **
VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)
Timeline: Activity_idle id: android.os.BinderProxy@41d81650 time:1345310346
VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)
Could not find method java.nio.file.Files.newOutputStream, referenced from method okio.Okio.sink
VFY: unable to resolve static method 24287: Ljava/nio/file/Files;.newOutputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
VFY: replacing opcode 0x71 at 0x0012
VFY: unable to find class referenced in signature (Ljava/nio/file/Path;)
VFY: unable to find class referenced in signature ([Ljava/nio/file/OpenOption;)
Could not find method java.nio.file.Files.newInputStream, referenced from method okio.Okio.source
VFY: unable to resolve static method 24286: Ljava/nio/file/Files;.newInputStream (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
VFY: replacing opcode 0x71 at 0x0012
Reported API17
yClientIssuer.StartServices yConfig Count 0
GC_CONCURRENT freed 3001K, 30% free 9964K/14096K, paused 3ms+3ms, total 46ms
WAIT_FOR_CONCURRENT_GC blocked 28ms
yClientIssuer.StartServices yConfig Count 1
yClientIssuer.StartServices yConfig Count 1
yDataBase.yDataSet.FromJSon: Found Match Table config
yDataBase.yDataSet DataFieldList Size 86
GC_CONCURRENT freed 1428K, 26% free 10487K/14096K, paused 11ms+3ms, total 53ms
yClientIssuer.StartServiceEnd
yClientIssuer.StartServices yConfig Count 0
java.net.SocketException: recvfrom failed: ETIMEDOUT (Connection timed out)
    at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:545)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:509)
    at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
    at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
    at libcore.io.Streams.readSingleByte(Streams.java:41)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:236)
    at anywheresoftware.b4a.debug.DebugConnector.readData(DebugConnector.java:235)
    at anywheresoftware.b4a.debug.DebugConnector.mainLoop(DebugConnector.java:153)
    at anywheresoftware.b4a.debug.DebugConnector.run(DebugConnector.java:73)
    at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: recvfrom failed: ETIMEDOUT (Connection timed out)
    at libcore.io.Posix.recvfromBytes(Native Method)
    at libcore.io.Posix.recvfrom(Posix.java:141)
    at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:164)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:506)
    ... 9 more
java.net.SocketException: recvfrom failed: ETIMEDOUT (Connection timed out)
    at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:545)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:509)
    at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)
    at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)
    at libcore.io.Streams.readSingleByte(Streams.java:41)
    at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:236)
    at anywheresoftware.b4a.remotelogger.Connector.readData(Connector.java:123)
    at anywheresoftware.b4a.remotelogger.Connector.mainLoop(Connector.java:84)
    at anywheresoftware.b4a.remotelogger.Connector.run(Connector.java:53)
    at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: recvfrom failed: ETIMEDOUT (Connection timed out)
java.net.SocketException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
    at java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:368)
    at java.net.Socket.shutdownInput(Socket.java:610)
    at anywheresoftware.b4a.debug.DebugConnector.mainLoop(DebugConnector.java:173)
    at anywheresoftware.b4a.debug.DebugConnector.run(DebugConnector.java:73)
    at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
    at libcore.io.Posix.shutdown(Native Method)
    at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:128)
    at java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:366)
    ... 4 more
    at libcore.io.Posix.recvfromBytes(Native Method)
    at libcore.io.Posix.recvfrom(Posix.java:141)
    at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:164)
    at libcore.io.IoBridge.recvfrom(IoBridge.java:506)
    ... 9 more
java.net.SocketException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
    at java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:368)
    at java.net.Socket.shutdownInput(Socket.java:610)
    at anywheresoftware.b4a.remotelogger.Connector.mainLoop(Connector.java:105)
    at anywheresoftware.b4a.remotelogger.Connector.run(Connector.java:53)
    at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
    at libcore.io.Posix.shutdown(Native Method)
    at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:128)
    at java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:366)
    ... 4 more
writer error
java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1992)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2026)
    at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:373)
    at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
    at java.lang.Thread.run(Thread.java:841)
Starting remote logger. Port: 8039
yAppManager.Login
yAppManager.Login AutoIp Enabled
Sent UDP 192.168.0.255 id=yclient&cmd=1&serial=3100af6420c49300
After accept
Sent UDP 192.168.0.255 id=yclient&cmd=2&serial=3100af6420c49300
Sent UDP 192.168.0.255 id=yclient&cmd=1&serial=3100af6420c49300
-1 received
writer error
java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1992)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2026)
    at java.net.SocketException: shutdown failed: ENOTCONN (Transport endpoint is not connected)java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:373)
    at java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:368)
    at java.net.Socket.shutdownInput(Socket.java:610)
    at anywheresoftware.b4a.remotelogger.Connector.mainLoop(Connector.java:105)
    at anywheresoftware.b4a.remotelogger.Connector.run(Connector.java:53)
    at java.lang.Thread.run(Thread.java:841)
Caused by: libcore.io.ErrnoException: shutdown failed: ENOTCONN (Transport endpoint is not connected)
    at libcore.io.Posix.shutdown(Native Method)
    at libcore.io.ForwardingOs.shutdown(ForwardingOs.java:128)
    at java.net.PlainSocketImpl.shutdownInput(PlainSocketImpl.java:366)
    ... 4 more
    at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
    at java.lang.Thread.run(Thread.java:841)
Starting remote logger. Port: 8039
After accept
** Activity (main) Pause, UserClosed = false **
Sent UDP 192.168.0.255 id=yclient&cmd=2&serial=3100af6420c49300
Sent UDP 192.168.0.255 id=yclient&cmd=1&serial=3100af6420c49300
handleBindApplication:yashar.yDashen
DisplayManager()
Starting remote logger. Port: 8039
Could not find method android.content.Context.startForegroundService, referenced from method anywheresoftware.b4a.objects.ServiceHelper$StarterHelper.startServiceFromReceiver
VFY: unable to resolve virtual method 477: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
VFY: replacing opcode 0x6e at 0x0097
Enabling debug mode 0
After accept
Could not find method android.app.Notification$Builder.<init>, referenced from method anywheresoftware.b4a.objects.NotificationWrapper.SetInfo2New
VFY: unable to resolve direct method 270: Landroid/app/Notification$Builder;.<init> (Landroid/content/Context;Ljava/lang/String;)V
VFY: replacing opcode 0x76 at 0x0093
DexOpt: unable to opt direct call 0x0149 at 0xb0 in Lanywheresoftware/b4a/objects/NotificationWrapper;.SetInfo2New
Could not find method anywheresoftware.b4a.keywords.Common.CallSub, referenced from method yashar.yUSBManager.usbpl2303service._timer1_tick
VFY: unable to resolve static method 13721: Lanywheresoftware/b4a/keywords/Common;.CallSub (Lanywheresoftware/b4a/BA;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/String;
VFY: replacing opcode 0x71 at 0x00c8
Could not find method android.app.AlarmManager.setAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAt
VFY: unable to resolve virtual method 141: Landroid/app/AlarmManager;.setAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0025
Could not find method android.app.AlarmManager.setExactAndAllowWhileIdle, referenced from method anywheresoftware.b4a.keywords.Common.StartServiceAtExact
VFY: unable to resolve virtual method 143: Landroid/app/AlarmManager;.setExactAndAllowWhileIdle (IJLandroid/app/PendingIntent;)V
VFY: replacing opcode 0x6e at 0x0025
** Activity (main) Create, isFirst = true **
yAppManager.OnLoginFail Timer Started
yConfig.LoadConfig
yDataBase.yDataSet.FromJSon: Found Match Table config
yDataBase.yDataSet DataFieldList Size 114
yAppManager.Login
yAppManager.Login AutoIp Enabled
Could not find method anywheresoftware.b4a.keywords.Common.ToastMessageShow, referenced from method yashar.yUSBManager.yusbmanager._initialize
VFY: unable to resolve static method 13812: Lanywheresoftware/b4a/keywords/Common;.ToastMessageShow (Ljava/lang/String;Z)V
VFY: replacing opcode 0x71 at 0x0024
GC_CONCURRENT freed 5653K, 41% free 10045K/16828K, paused 1ms+3ms, total 37ms
WAIT_FOR_CONCURRENT_GC blocked 32ms
GC_CONCURRENT freed 2089K, 30% free 10004K/14276K, paused 1ms+1ms, total 25ms
WAIT_FOR_CONCURRENT_GC blocked 21ms
GC_CONCURRENT freed 2099K, 31% free 9953K/14276K, paused 1ms+2ms, total 25ms
WAIT_FOR_CONCURRENT_GC blocked 18ms
GC_CONCURRENT freed 5145K, 39% free 9944K/16260K, paused 3ms+1ms, total 28ms
WAIT_FOR_CONCURRENT_GC blocked 25ms
GC_CONCURRENT freed 2068K, 39% free 9923K/16260K, paused 3ms+2ms, total 24ms
WAIT_FOR_CONCURRENT_GC blocked 20ms
GC_CONCURRENT freed 2152K, 40% free 9819K/16260K, paused 3ms+2ms, total 21ms
WAIT_FOR_CONCURRENT_GC blocked 14ms
WAIT_FOR_CONCURRENT_GC blocked 10ms
yConst.CreateEvent:[ytablefactory=null, ypallete=null, yfinancial=null
, ydbconsts=null, yconsts=null, colorsex=null
, dateutils=null, fappmanager=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fapptitle=yPedido, fbroadcastclient=[fserverip=, ybroadcastconsts=null, ybroadcastclientservice=null
, onpedidoevent=[cconnectiontype=[ConnectWhenNeeded=1, IsInitialized=false, NoConnectionAllowed=2
, StayConnected=0], colorsex=null, dateutils=null
, fapkname=yPedido, fappt
Message longer than Log limit (4000). Message was truncated.
yConst.CreateEvent: OnPedidoItensBeforeDelete
yConst.CreateEvent: OnPedidoItensCalcFields
Skipped 43 frames!  The application may be doing too much work on its main thread.
Panel size is unknown. Layout may not be loaded correctly.
GC_FOR_ALLOC freed 2696K, 35% free 10593K/16260K, paused 26ms, total 26ms
Grow heap (frag case) to 17.192MB for 3928016-byte allocation
GC_CONCURRENT freed 110K, 29% free 14319K/20100K, paused 3ms+3ms, total 28ms
yConst.CreateEvent:class yashar.yDashen.main OnLeftBeforePanelChange
ignoring event: onleftbeforepanelchange
ignoring event: onleftbeforepanelchange
yConst.CreateEvent:class yashar.yDashen.main OnPedidoRowSelect
yConst.CreateEvent:class yashar.yDashen.main OnListaRowSelect
yConst.CreateEvent:class yashar.yDashen.main OnListaRowLongSelect
yConst.CreateEvent:class yashar.yDashen.main OnHistoricoComprasRowSelect
yConst.CreateEvent:class yashar.yDashen.main OnHistoricoPedidosRowSelect
yConst.CreateEvent:class yashar.yDashen.main OnDetalhe
GC_CONCURRENT freed 1854K, 23% free 15621K/20100K, paused 2ms+7ms, total 47ms
GC_FOR_ALLOC freed 1836K, 17% free 16694K/20100K, paused 37ms, total 37ms
Grow heap (frag case) to 22.919MB for 3686416-byte allocation
GC_FOR_ALLOC freed 115K, 15% free 20179K/23704K, paused 36ms, total 36ms
Grow heap (frag case) to 26.542MB for 3916816-byte allocation
** Activity (main) Resume **
*** Service (ybroadcastclientservice) Create ***
yBroadcastClientService started
yBroadcastClientService Broadcast IP Found 192.168.0.255
** Service (ybroadcastclientservice) Start **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
** Activity (main) Pause, UserClosed = false **
Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method com.google.android.gms.common.zzo.zzy
VFY: unable to resolve virtual method 575: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
VFY: replacing opcode 0x6e at 0x0015
Making Creator dynamically
Could not find method android.content.ContextWrapper.createCredentialProtectedStorageContext, referenced from method jcg.createCredentialProtectedStorageContext
VFY: unable to resolve virtual method 2532: Landroid/content/ContextWrapper;.createCredentialProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6f at 0x0002
Could not find method android.content.ContextWrapper.createDeviceProtectedStorageContext, referenced from method jcg.createDeviceProtectedStorageContext
VFY: unable to resolve virtual method 2533: Landroid/content/ContextWrapper;.createDeviceProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6f at 0x0002
Could not find method android.content.ContextWrapper.createCredentialProtectedStorageContext, referenced from method com.google.android.chimera.ModuleContext.createCredentialProtectedStorageContext
VFY: unable to resolve virtual method 2532: Landroid/content/ContextWrapper;.createCredentialProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6f at 0x0002
Could not find method android.content.ContextWrapper.createDeviceProtectedStorageContext, referenced from method com.google.android.chimera.ModuleContext.createDeviceProtectedStorageContext
VFY: unable to resolve virtual method 2533: Landroid/content/ContextWrapper;.createDeviceProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6f at 0x0002
Could not find method android.content.Context.isCredentialProtectedStorage, referenced from method cyg.a
VFY: unable to resolve virtual method 2512: Landroid/content/Context;.isCredentialProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0000
Could not find method android.os.UserManager.isUserUnlocked, referenced from method cyg.a
VFY: unable to resolve virtual method 3156: Landroid/os/UserManager;.isUserUnlocked ()Z
VFY: replacing opcode 0x6e at 0x001a
Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method cyg.b
VFY: unable to resolve virtual method 2513: Landroid/content/Context;.isDeviceProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0000
Could not find method android.content.Context.isDeviceProtectedStorage, referenced from method cyg.c
VFY: unable to resolve virtual method 2513: Landroid/content/Context;.isDeviceProtectedStorage ()Z
VFY: replacing opcode 0x6e at 0x0000
Could not find method android.system.Os.readlink, referenced from method cyw.a
VFY: unable to resolve static method 3176: Landroid/system/Os;.readlink (Ljava/lang/String;)Ljava/lang/String;
VFY: replacing opcode 0x71 at 0x0000
Could not find method android.system.Os.stat, referenced from method cyw.a
VFY: unable to resolve static method 3177: Landroid/system/Os;.stat (Ljava/lang/String;)Landroid/system/StructStat;
VFY: replacing opcode 0x71 at 0x0042
Could not find method android.system.Os.symlink, referenced from method cyw.a
VFY: unable to resolve static method 3178: Landroid/system/Os;.symlink (Ljava/lang/String;Ljava/lang/String;)V
VFY: replacing opcode 0x71 at 0x013b
DexOpt: unable to optimize instance field ref 0x061f at 0x46 in Lcyw;.a
DexOpt: unable to optimize static field ref 0x061a at 0x48 in Lcyw;.a
DexOpt: unable to optimize static field ref 0x0618 at 0x4a in Lcyw;.a
DexOpt: unable to optimize static field ref 0x0619 at 0x4d in Lcyw;.a
DexOpt: unable to optimize static field ref 0x061b at 0x57 in Lcyw;.a
DexOpt: unable to optimize static field ref 0x061e at 0x5f in Lcyw;.a
DexOpt: unable to optimize static field ref 0x061c at 0x61 in Lcyw;.a
DexOpt: unable to optimize static field ref 0x061d at 0x64 in Lcyw;.a
DexOpt: unable to optimize static field ref 0x061a at 0x7f in Lcyw;.a
DexOpt: unable to optimize static field ref 0x061e at 0x90 in Lcyw;.a
Could not find method android.content.Context.createDeviceProtectedStorageContext, referenced from method kbn.a
VFY: unable to resolve virtual method 2481: Landroid/content/Context;.createDeviceProtectedStorageContext ()Landroid/content/Context;
VFY: replacing opcode 0x6e at 0x0029
Could not find method android.content.Context.getSystemService, referenced from method kbn.b
VFY: unable to resolve virtual method 2508: Landroid/content/Context;.getSystemService (Ljava/lang/Class;)Ljava/lang/Object;
VFY: replacing opcode 0x6e at 0x000b
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
VFY: unable to resolve static field 1539 (SUPPORTED_64_BIT_ABIS) in Landroid/os/Build;
VFY: replacing opcode 0x62 at 0x0011
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
VFY: unable to resolve static field 1539 (SUPPORTED_64_BIT_ABIS) in Landroid/os/Build;
VFY: replacing opcode 0x62 at 0x0025
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_32_BIT_ABIS
VFY: unable to resolve static field 1538 (SUPPORTED_32_BIT_ABIS) in Landroid/os/Build;
VFY: replacing opcode 0x62 at 0x0039
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
VFY: unable to resolve static field 1540 (SUPPORTED_ABIS) in Landroid/os/Build;
VFY: replacing opcode 0x62 at 0x0032
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
DexOpt: unable to optimize static field ref 0x0603 at 0x16 in Ldak;.a
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_64_BIT_ABIS
DexOpt: unable to optimize static field ref 0x0603 at 0x2a in Ldak;.a
DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_32_BIT_ABIS
DexOpt: unable to optimize static field ref 0x0602 at 0x3e in Ldak;.a
Google Play services client version: 11020000
Google Play services package version: 12529001
Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method com.google.maps.api.android.lib6.drd.an.a
VFY: unable to resolve virtual method 716: Landroid/content/pm/PackageManager;.isInstantApp (Ljava/lang/String;)Z
VFY: replacing opcode 0x6e at 0x0056
Could not find method android.content.pm.PackageManager.getPackageInstaller, referenced from method hu.a
VFY: unable to resolve virtual method 709: Landroid/content/pm/PackageManager;.getPackageInstaller ()Landroid/content/pm/PackageInstaller;
VFY: replacing opcode 0x6e at 0x0017
Could not find method android.content.pm.PackageManager.isInstantApp, referenced from method pa.a
VFY: unable to resolve virtual method 715: Landroid/content/pm/PackageManager;.isInstantApp ()Z
VFY: replacing opcode 0x6e at 0x0028
GC_CONCURRENT freed 4593K, 25% free 20834K/27532K, paused 2ms+10ms, total 67ms
No package identifier when getting name for resource number 0x00002711
Shutting down VM
threadid=1: thread exiting with uncaught exception (group=0x417bcbc0)
android.content.res.Resources$NotFoundException: Unable to find resource ID #0x2711
    at android.content.res.Resources.getResourceName(Resources.java:3018)
    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:882)
    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
    at android.app.BackStackRecord.run(BackStackRecord.java:684)
    at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
    at android.app.FragmentManagerImpl.saveAllState(FragmentManager.java:1620)
    at android.app.Activity.onSaveInstanceState(Activity.java:1278)
    at android.app.Activity.performSaveInstanceState(Activity.java:1226)
    at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1230)
    at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3988)
    at android.app.ActivityThread.access$900(ActivityThread.java:166)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1289)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5590)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
    at dalvik.system.NativeStart.main(Native Method)
FATAL EXCEPTION: main
Process: yashar.yDashen, PID: 16136
android.content.res.Resources$NotFoundException: Unable to find resource ID #0x2711
    at android.content.res.Resources.getResourceName(Resources.java:3018)
    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:882)
    at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
    at android.app.BackStackRecord.run(BackStackRecord.java:684)
    at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
    at android.app.FragmentManagerImpl.saveAllState(FragmentManager.java:1620)
    at android.app.Activity.onSaveInstanceState(Activity.java:1278)
    at android.app.Activity.performSaveInstanceState(Activity.java:1226)
    at android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1230)
    at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3988)
    at android.app.ActivityThread.access$900(ActivityThread.java:166)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1289)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:136)
    at android.app.ActivityThread.main(ActivityThread.java:5590)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
    at dalvik.system.NativeStart.main(Native Method)
-1 received
writer error
java.lang.InterruptedException
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1992)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2026)
    at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:373)
    at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
    at java.lang.Thread.run(Thread.java:841)
Starting remote logger. Port: 8039
After accept
 

ronell

Well-Known Member
Licensed User
Longtime User
can you upload your project? or show us the code where you use the resources and the part where you force the screen to rotate
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
can you upload your project? or show us the code where you use the resources and the part where you force the screen to rotate

the code is huge, and I have NO IDEA where the problem is, I am trying to trace it but have no clue. Thank you!
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
and I have NO IDEA where the problem is
java.lang.RuntimeException: Object was not initialized.
at anywheresoftware.b4a.debug.Debug.PushSubsStack(Debug.java:
124)
at yashar.yDashen.yappmanageract._checkscreenorientation(yappmanageract.java:
746)

yappmanageract.java:746 <- LineNo
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
yappmanageract.java:746 <- LineNo
There is no such line on this modure on my code (if finishes at 714)

anyways I am not talking about this problem you are pointing to, if you read more CAREFULLY the post it is about the android.content.res.Resources$NotFoundException at end.
 
Upvote 0

ronell

Well-Known Member
Licensed User
Longtime User
the code is huge, and I have NO IDEA where the problem is, I am trying to trace it but have no clue. Thank you!
im guessing that at the start of the app you're checking if the screen is in portrait then force rotate to landscape

B4X:
Sub checkscreenorientation

'if portrait then rotate to landscape
End Sub
 
Upvote 0

ronell

Well-Known Member
Licensed User
Longtime User
There is no such line on this modure on my code (if finishes at 714)

anyways I am not talking about this problem you are pointing to, if you read more CAREFULLY the post it is about the android.content.res.Resources$NotFoundException at end.
yea we know., its simply tells that maybe you are missing the file in the assets
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
yes I am doing that, could it be the problem? should I use a subcalldelayed ?

B4X:
Public Sub CheckScreenOrientation
    Dim p As Phone
    If FAppManager.GetDevicePhysicalSize >= 5 Then
        Config.SetBoolean("modotablet", True)
        p.SetScreenOrientation(0)       
    Else
        Config.SetBoolean("modotablet", False)
        p.SetScreenOrientation(1)       
    End If
End Sub
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
yea we know., its simply tells that maybe you are missing the file in the assets
but it is strange that, since the code works fine if I start the tablet in the landscape position already. The problem is when the tablet is in portrait and I force it to landscape. My layout needs the landscape mandatory and the user is ok with that.
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
why not setting the Orientation in Manifest directly so the Activity will open in that Orientation directly.
the same app can have different behavior according it is configured. There is one situation, where it has to be landscape, in others it is fixed on portrait
 
Upvote 0

ronell

Well-Known Member
Licensed User
Longtime User
when the screen rotates the activity is recreated and thats where the problem occurs, check firsttime if you have that code in your activity_create
B4X:
Sub Activity_Create(FirstTime As Boolean)
    If FirstTime then
  
  
    End If

End Sub
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User

I have moved the code to the last thing on the Activity_Create and it worked.

I have no idea why thank you anyway for the help
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…