jahswant Well-Known Member Licensed User Longtime User Jan 13, 2022 #1 I followed this tutorial (https://www.b4x.com/android/forum/threads/server-jokhttputils2-server-version.124350/) to use jOkHttpUtils2 with no success. The OkHttpUtils2 - server mode! is never logged. 1 - Created build config SERVER which is now default ! 2- Added jBuilderUtils. Library: https://www.b4x.com/android/forum/attachments/jbuilderutils-zip.41578/ (Checked the library and even did AdditionalJar : jBuilderUtils.jar) Please can someone post a working example ? Seems like I'm doing something wrong.
I followed this tutorial (https://www.b4x.com/android/forum/threads/server-jokhttputils2-server-version.124350/) to use jOkHttpUtils2 with no success. The OkHttpUtils2 - server mode! is never logged. 1 - Created build config SERVER which is now default ! 2- Added jBuilderUtils. Library: https://www.b4x.com/android/forum/attachments/jbuilderutils-zip.41578/ (Checked the library and even did AdditionalJar : jBuilderUtils.jar) Please can someone post a working example ? Seems like I'm doing something wrong.
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2022 #2 1. Nope. The configuration name is never important. Upvote 0
jahswant Well-Known Member Licensed User Longtime User Jan 13, 2022 #3 2. Please what do you mean by Add a reference to jBuilderUtils ? Because even after Build config correction still no log of server mode ! I'm surely doing something wrong. Upvote 0
2. Please what do you mean by Add a reference to jBuilderUtils ? Because even after Build config correction still no log of server mode ! I'm surely doing something wrong.
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2022 #4 Try the attached project. The message will show when you make the first request. Attachments 11.zip 6.1 KB · Views: 301 Upvote 0
jahswant Well-Known Member Licensed User Longtime User Jan 13, 2022 #5 Erel said: Try the attached project. The message will show when you make the first request. Click to expand... I see. But if the first request is from a handler the message is never logged why ? Upvote 0
Erel said: Try the attached project. The message will show when you make the first request. Click to expand... I see. But if the first request is from a handler the message is never logged why ?
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2022 #6 Upload a project that demonstrates it. Upvote 0
jahswant Well-Known Member Licensed User Longtime User Jan 13, 2022 #7 Erel said: Upload a project that demonstrates it. Click to expand... I just removed the code from Main Mode to the GuessMyNumber Class. Server Mode is not logged <> Not activated ! Attachments 11.zip 3 KB · Views: 243 Upvote 0
Erel said: Upload a project that demonstrates it. Click to expand... I just removed the code from Main Mode to the GuessMyNumber Class. Server Mode is not logged <> Not activated !
Erel B4X founder Staff member Licensed User Longtime User Jan 13, 2022 #8 Open the browser and navigate to the relevant page. Otherwise the code will not run, no request will be sent, and the log will not appear. http://127.0.0.1:51042/guessmynumber/guess Upvote 0
Open the browser and navigate to the relevant page. Otherwise the code will not run, no request will be sent, and the log will not appear. http://127.0.0.1:51042/guessmynumber/guess