Recently, I renew and compile an old codes (B4a v7.3) to Library by later version (B4a v9.8).
When I use this newer library in my new project, the call back function did not response!!!
Instead, it showed message "sending message to waiting queue of uninitialized activity (submitjob)" in log window.
When I use the original library in the same project, the call back function responses as before.
I finally find the "
culprit" is
okHttpUtils2 with version 2.91 inspired by:
https://www.b4x.com/android/forum/t...e-of-uninitialized-activity-submitjob.103435/
The old custom library with okHttpUtils2 version 2.7 inside work fine as usual.
My worked-around in library project is:
- Uncheck OkHttpUtils2 in Libraries Manager;
- Download Erel's OkHttpUtils2 v2.7 Source Code from: [B4X] OkHttpUtils2 / iHttpUtils2 / HttpUtils2 source code;
- Project -> Add Existing Modules. Select 2 files, HttpJob.bas and HttpUtils2Service.bas and copy to your project;
- Rename HttpUtils2Service to different name such as svcHttpUtils2 and change all words of "HttpUtils2Service" in HttpJob.bas to "svcHttpUtils2";
- Project -> Compile To Library and the JobDone would be responsed again!
Hope it is helpful.