Android Question Error whe running in release mode only

rkmoray

Active Member
Licensed User
Longtime User
IN my app, when I run it on my emulator in debug, everything runs correctly.
When I change the app to "release, and run it, I get the following error.
<code>
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
http://mobile.evron.com/wsEvMobile/...applet&sPasswordReceived=apple&sCompany=apple
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
JobName = jobLogin, Success = true
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">true</string>
JobName = GetSR, Success = true
** Activity (main) Pause, UserClosed = false **
** Activity (getlist) Create, isFirst = true **
** Activity (getlist) Resume **
java.lang.Exception: Sub was not found.
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:192)
at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1144)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

</code>
 

fixit30

Active Member
Licensed User
Longtime User
Can you post your code for the GetList activity and your code that opens the GetList activity?
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
I think that the problem is here:
In Sub JobDone (Job As HttpJob) you call CallSubDelayed2(GetList, "","")!?
Without any subname !?
I replaced CallSubDelayed2(GetList, "","") by StartActivity(GetList) and it works in release mode.
 
Upvote 0
Top