Android Question Send file via WiFi: what tutorial to use?

hedgefox

New Member
Licensed User
Hello, I'm new of B4A development, I've got programming experience of the .Net Platform, nothing about Java

I want to make an Android application that has 2 uses:

1) Server role: the server receives connections from client and can send to one or more connected clients an image file selected from a folder

2) Client role: the client can only connect to a server and receive the image. As soon as it's received, it will be displayed on screen.

What tutorial should I use to start and learn how to do it?

I tried to use this example (https://www.b4x.com/android/forum/t...nd-and-receive-files-with-asyncstreams.30493/) as a starting point and works almost fine (flawless from phone to my tablet, crashes when I select a file to send from my tablet to the phone)

Is there a better example?

Thank you!

Luca
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The very first line in this tutorial refers to a newer example.

Based on your description you want the clients to stay connected to the server, right? In that case WebSockets or MQTT are the best options.

Check this tutorial: [B4X] The Networker's Guide To The Galaxy
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…