Download sample source and code of chat program with b4a, b4j
Today, in this post, for you, dear users of the website, we have prepared a sample source and code of the chat program with b4a, b4j and the magic file for download.
In this example we implement a chat room with one or more users. Any number of users can join. When you launch the Android app, you can choose whether it's a server app or not. Other clients will connect to the server. Users can join and leave the chat room. The list of users is automatically updated. In this sample application, we have used MQTT, which is simple and powerful. In most cases, MQTT is the best solution for low-level networks. Low-level networking means a networking solution traditionally based on ServerSocket + Socket + AsyncStreams.
- Can be set as user or server
- Connecting however many users to the server
- Updating the list of connected users
- Display the list of users
- High speed and performance at runtime
In this program, the user and server side are programmed with Basic for Android and the user side is also with b4j, which you can easily change and use.