B4A Code Snippet Workaround the NetworkOnMainThread exception - Erel    Apr 10, 2025   (24 reactions) : NetworkOnMainThreadException, strict mode...Android 4+ doesn't allow applications to make network calls on the main thread. There is a good... network calls with background threads. If you encounter a library that doesn't do it then you have two options:
1. Use the Threading library to start a background thread and make the calls from... B4A Question SMB File Transfer to Server: NetworkOnMainThreadException - Erel (first post)    Jul 27, 2025   (1 reaction) The NetworkOnMainThreadException is solved with the DisableStrictMode code. Nothing has changed in... is not one of them.
Some examples:
Sockets: https://www.b4x.com/android/forum/threads/b4x-b4xpages-network-asyncstreams-b4xserializator.119011/#content
MQTT: https://www.b4x.com/android/forum/threads... you want to implement a server: https://www.b4x.com/android/forum/threads/b4x-ftp-server-implemented... B4A Question jkSSH2: android.os.NetworkOnMainThreadException - devcitizen    Jul 9, 2020 version 1.10. The same NetworkOnMainThreadException (newer Android sdk levels will not permit networking in the main ui thread) is already fixed for the HttpUtils2 library. Is there any way for me to use... B4A Question android > 4.0 NetworkOnMainThreadException error help - Spinter    Jul 9, 2020 I'm using HttpRequest to communicate with my mysql but with a device SDK 2.2 everything works perfectly! device with a 4.0 sdk I go to NetworkOnMainThreadException.
How do I get out?
22280... B4A Question How to solve "android.os.NetworkOnMainThreadException" error - DanteS (first post)    Apr 26, 2024   (1 reaction) Thanks to all that sugested, insisted and demmanded the use of the okHtmlUtils. Specially JohnC, who... B4A Question NetworkOnMainThreadException Error Message in Android Device - junaidahmed    Oct 19, 2016 I have developed Android application to get data access from Sql server using Http Client.Its workin... B4A Question NetworkOnMainThreadException problem. How I can continue? - Erel (first post)    Dec 1, 2020 No. Read the tutorial linked above.... B4A Question NetworkOnMainThreadException on higher SDK's - bluedude    Jan 24, 2012 documentation: NetworkOnMainThreadException | Android Developers
Higher SDK's shouldn't do networking anymore on the main thread. How can we solve this issue?... B4A Question websocket android.os.NetworkOnMainThreadException - Erel (first post)    Feb 18, 2018 Looks like a bug in the underlying library. I will send you a PM with an updated library. Please try it.... B4A Question NetworkOnMainThreadException - Cadenzo (first post)    Jul 26, 2017 OK, I think, I got it!
I have my own solution for data-management, so I could not use the astream.I... Page: 1   2   3   4   5   6   7   |