Broadcast a file on wifi local network with Mobile
I need to broadcast a file on a wifi local network with phone Android. The scenario like this: my mobile send a file to the modem, so the modem can broadcast this file to the another mobiles in the same network. I must explain like this because someone may think about P2P (what I don't want here). I know that the developer of Android usually work on the layer application. So, I wonder if it exist API or the library or they way to do the execution on the deeper layer (layer TCP and layer IP). Thank you so much!
I am making a couple of assumptions, 1. That by broadcast a file, you mean transfer a file. 2. By connecting to a modem you meant connecting to a WiFi network. The tutorial given here on Network Service Discovery will help you with advertising a service and connecting to one (even retrieving the info of the host of the service). In the 'onServiceFound' listener, hold on to the host's details till you listen to an 'onServiceLost' from that host. Using the host's details you can identify and also open a socket connection, over which you can transfer the file.
how to check my host server is availability
Can I populate a expandable listview with json data using volley?
arm64-v8a type OS Architecture device for Android device not working
Android font-size brakes UI
QML. Can't close menu by press outside on android
How to play a pager adpter arrylist video url on videview
Android annotation to call a specific function
Navigation Drawer header image not clickable
How can i get accurate lat long of current GPS location?
I want to select multiple contacts with check boxes. But when I check or uncheck check boxes it always returns false
how to get the Supported Preview Sizes in android Marshmallow
How to avoid duplicated actions in ListiView with checkboxes Android?
Image resolutions for iOS and Android apps
Add a border to the bottom of radio button text
Android facebook hash key invalid and does not match
Android Custom Dialog not showing after onRequestedPermissionResult