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...
link: -pleroma-social-networks.124214/...
B4A Code Snippet Workaround the NetworkOnMainThread exception - Erel    
Apr 10, 2025   
(24 reactions)Android 4+ doesn't allow applications to make network calls on the main thread. There is a good reason for this restriction as such calls cause the UI to freeze and after 5 second Android will show the "Application not responding" dialog.
Proper libraries take care of handling network calls with background threads. If you encounter a library that doesn't do it then you have two...: NetworkOnMainThreadException, strict mode...
B4A Tutorial [B4X] Network + AsyncStreams + B4XSerializator - Erel    
Jun 30, 2020   
(27 reactions)   
tags: transfer, B4XSerializator, Erel, NetworkBetter implementation, based on B4XPages: https://www.b4x.com/android/forum/threads/b4x-b4xpages-network-asyncstreams-b4xserializator.119011/#content
New video tutorial:
256762156
https://www.b4x.com/basic4android/images/SS-2016-10-19_15.32.02.jpg
https://www.b4x.com/basic4android/images/SS...
This is a simple and important example. It demonstrates several good practices related to network communication.
1. The network related code is in the Starter service. The network state is also stored in...
B4A Code Snippet WifiNetworkSpecifier + NetworkRequest - connect app to specific wifi network - Erel    
Oct 5, 2025   
(18 reactions)Requires Android 10+ (api level 29+).
Allows your app to connect to a specific network, provided... will use this network.
The user will need to approve the connection on the first time.
Manifest editor...
link: The behavior you are seeing is related to the underlying API behavior....
link: Maybe this issue only happens with the network's API?
And this will not affect the callback...
link: I guess that it doesn't consider your network to meet the requirements for some reason. It now...
B4A Tutorial [B4X] [B4XPages] Network + AsyncStreams + B4XSerializator - Erel    
Jun 30, 2020   
(29 reactions)https://www.b4x.com/basic4android/images/java_USPawWZPiX.png
95652
https://www.b4x.com/basic4android/images/B4i_nUuTQqGuEH.png
Cross platform version, based on B4XPages, of the network example: https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/#content
It is so much simpler to use B4XPages that it feels like cheating :)
All of the code is shared. The layouts were copy-pasted....
B4J Tutorial AsyncStreamsObject - Send and receive objects over the network - Erel    
Aug 10, 2016   
(8 reactions)   
tags: NetworkFor new projects it is recommended to use B4XSerializator instead of this solution.
http://www.b4x.com/basic4android/images/SS-2013-11-14_13.26.52.png
AsyncStreamsObject allows you to send and receive objects instead of bytes.
You can read more about it here: http://www.b4x.com/android/forum/threads/asyncstreamsobject-send-and-receive-objects-instead-of-bytes.30543/
This example connects to t...
B4i Code Snippet Connect to wifi network programmatically - NEHotspotConfigurationManager - Erel    
Jan 4, 2026   
(4 reactions)Allows connecting to a wifi network programmatically. Note that the user will need to approve the connection if it is new.
Note that error handling of this API is broken and there is no... a new one.
Step 2: Add to main module:
#Entitlement: <key>com.apple.developer.networking...
'Maybe there is a connection now. Make a network call to test it.
End If
End Sub
#if OBJC
#import <NetworkExtension/NetworkExtension.h>
- (void)connectToWifi: (NSString*)ssid...
B4A Question CLEARTEXT communication to 192.168.0.101 not permitted by network security policy - beelze69    
Jun 28, 2020.net.UnknownServiceException: CLEARTEXT communication to 192.168.0.101 not permitted by network....101 not permitted by network security policy
ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.0.101 not permitted by network security policy, Response:
ERROR... by network security policy
I have done the folllowing:
1) Opened 17178 port on my PC firewall (both INBOUND...
B4A Code Snippet [B4X] Find all reachable ips in the local network - Erel    
Mar 12, 2025   
(20 reactions)Slightly based on: https://stackoverflow.com/questions/16035636/how-to-get-all-ip-address-of-systems-connected-to-same-wi-fi-network-in-android/21091575#21091575
Compatible with B4A and....permission.INTERNET)
Depends on (j)Network library.
Code:
Private Sub ScanNetwork
Dim server... Then
Log("Not connected to network.")
Return
End If
Dim... maybe 3 seconds to scan the network here (and it doesn't block the main thread)....
B4A Question Mqtt chat network error - postasat    
Mar 21, 2018 as client in a mqtt chat with autodiscovery.
Both are connected in the same wifi network but the wifi network have no internet connection.
If the phone have wifi on and mobile data on, when I start... with the tablet in a wifi network without internet connection ? How ?
Thank you....
link:
how the string should be changed?
posting in an 8 years old thread is a mistake ;-)...
link: I understand that the ".main$NetworkCallback" string in the event.InitializeNewInstance...
Page: 1  
2  
3  
4  
5  
6  
7