Network Example

Bachrock

Member
Licensed User
Longtime User
Hi,

Brand new to this site and product. Looks great so far. I copied the Network application, compiled and attempted to run it. When running it I get the following error.

I am getting an error “An error has occurred in sub: main_socket1_connected (java line 300) android.os.NetworkOnMainThreadException” Continue?

Any thoughts?
 

NJDude

Expert
Licensed User
Longtime User
You can modify this line in your manifest to look like this:
B4X:
AddManifestText(<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4"/> 

...

You can find an explanation to that error searching the forums or HERE
 
Last edited:
Upvote 0
Top