Android Question General question about Callsub

D

Deleted member 103

Guest
If you start an activity-sub from the starter-service, it must always be checked whether the activity is paused?
e.g .:
Callsub (Main, "Show")
or
If Not (IsPaused (Main)) Then
CallSub (Main, "Show")
End If
 
D

Deleted member 103

Guest
No, if activity or service is paused and you call a sub using callsub then nothing will happens
I'm not that sure.
I often have such crash.
java.lang.RuntimeException:
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:223)
at anywheresoftware.b4a.objects.Timer$TickTack.run (Timer.java:105)
at android.os.Handler.handleCallback (Handler.java:742)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:5544)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:629)
Caused by: java.lang.RuntimeException:
at anywheresoftware.b4a.keywords.Common.CallSub4 (Common.java:1064)
at anywheresoftware.b4a.keywords.Common.CallSubNew2 (Common.java:993)
at fg.cronomillemiglia.starter._gpstimer_tick (starter.java:416)
at java.lang.reflect.Method.invoke (Native Method)
at anywheresoftware.b4a.BA.raiseEvent2 (BA.java:186)
 
Upvote 0
Top