B4A Question Save error: (NetworkOnMainThreadException) android.os.NetworkOnMainThreadException - DonManfred (first post)    
Dec 2, 2025The question in #1 is answered. For any new question you should create a new thread....
link:
No. You are using a workaround.
The real solution is to switch to JdbcSQL and use its async methods...
link:
Problem solved.
No. You are using a workaround.
The real solution is to switch to JdbcSQL and use ...
link:
Hello, check this
Thread
https://www.b4x.com/android/forum/threads/workaround...
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...("android.os.Build.VERSION")
If jo.GetField("SDK_INT") > 9 Then
Dim policy As JavaObject
policy = policy.InitializeNewInstance("android.os.StrictMode.ThreadPolicy.Builder... network calls with background threads. If you encounter a library that doesn't do it then you have two...
B4A Question android.os.NetworkOnMainThreadException - Erel (first post)    
May 19, 2026.b4x.com/android/forum/threads/workaround-the-networkonmainthread-exception.44760/#content...The best solution is to switch to AsyncStreams and avoid making network communication on the main...
link: Sub
I got the exception "android.os.NetworkOnMainThreadException" on "out.WriteBytes...
link: ://www.b4x.com/android/forum/threads/workaround-the-networkonmainthread-exception.44760/#content...
link: then put it to the database.
but any error message "android.os.NetworkOnMainThreadException...
B4A Question SMB File Transfer to Server: NetworkOnMainThreadException - DirkH    
Jul 24, 2025: (NetworkOnMainThreadException) android.os.NetworkOnMainThreadException
I searched the forum and... found in: jcifs.context.BaseContext occured and again (NetworkOnMainThreadException) android.os.NetworkOnMainThreadException
What would be the best way to transfer data from the smartphone to a server... for my use case.
I tried JavaRunnable with inline Java, that gave the error: (NullPointerException...
link: The NetworkOnMainThreadException is solved with the DisableStrictMode code. Nothing has changed in...
Share My Creation [B4X] B4X Pleroma - open source client for Mastodon / Pleroma social networks - Erel    
Nov 4, 2020   
(16 reactions)What is Mastodon?
IPSbNdBmWKE
Pleroma is a lightweight implementation that extends Mastodon.
B4X Pleroma is a client for these social networks.
More information here: https://www.b4x.com/android/forum/threads/119426/#content
It is based on quite a few B4X components including: BCTextEngine, BitmapCreator, MiniHtmlParser, OkHttpUtils2, OAuth, KeyValueStore, XUI Views, B4XPages, B4XDrawer...?id=b4a.pleroma
iOS app store: https://apps.apple.com/app/b4x-pleroma/id1538396871
Code: https...
B4A Tutorial android.jar / targetSdkVersion / minSdkVersion - Erel    
Oct 18, 2023   
(93 reactions)   
tags: runtime permission, sdk version, Targetsdk, SDK, B4A. Alpha levels used as a mask.
- 23 - runtime permissions (https://www.b4x.com/android/forum/threads... special handling - WRITE_SETTINGS permission (https://www.b4x.com/android/forum/threads/permission.../android/forum/threads/class-fileprovider-share-files.97865/)
- 24 - Default background color is white (https://www.b4x.com/android/forum/threads/version-safe-themes.87694/)
- 24 - Setting the volume... special access: https://www.b4x.com/android/forum/threads/set-volume-error.92938/#post-588012
- 26...
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...
link:
Check this post
Why are you posting to a 11 years old thread? It is a mistake to do this....
link: -exception.44760/
It will prevent the error and crash by allowing network on main....
link: http://www.b4x.com/android/forum/threads/workaround-the-networkonmainthread-exception.44760...
B4A Question Error with B4A Socket - DonManfred (first post)    
Apr 17, 2024   
(2 reactions)
How can i solve it
USE the forumsearch! ;-)
https://www.b4x.com/android/forum/pages/results/?query=%28NetworkOnMainThreadException%29+android.os.NetworkOnMainThreadException
and
https://www.b4x.com/android/forum/threads/workaround-the-networkonmainthread-exception.44760/#content...
link: =%28NetworkOnMainThreadException%29+android.os.NetworkOnMainThreadException
and
https://www.b4x.com/android/forum...
B4A Question NetworkOnMainThreadException problem. How I can continue? - Paolodc    
Dec 1, 2020. However, with debugging it manages to connect. The problem is as follows: (NetworkOnMainThreadException) android.os.NetworkOnMainThreadException.
What is the problem and how can I solve it?...
link: No. Read the tutorial linked above....
link: App permitts utents to connect to database. I think that to use async methods I must create a server...
link: Save yourself the time and start with the correct implementation. Use the async methods. They are ve...
B4A Question How to solve "android.os.NetworkOnMainThreadException" error - JohnC (first post)    
Apr 20, 2024.os.NetworkOnMainThreadException
This error occurs because your app is performing a network operation... the NetworkOnMainThreadException:
Private Sub btnLoadFromURL_Click
Dim Job1 As HttpJob
Job1.Initialize("Job1...
link: Thanks to all that sugested, insisted and demmanded the use of the okHtmlUtils. Specially JohnC, who...
link:
Thanks JohnC
It looks very well.
Is it necesary to add some library?
I think just the OKHttpUtils...
link: Thanks JohnC
It looks very well.
Is it necesary to add some library?...
Page: 1  
2  
3  
4  
5  
6  
7