android


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.

Related Links

Keeping unwanted file or functions in Android consume memory
Have ListView selected checkbox delete from database
ORMLite display accents accents and other unicode symbols
android:background is not working with WebView?
Adding points to MatOfPoint2f
Android app is native or JavaVM code?
Android Escaping special characters while parsing JSON
Android - Modifying layout values in XML
bindService with aidl return false
android device is not worked
Where in the android code is the phone's name/model number stored, and how is it stored there?
alert dialog not working
How to call ListView adapter from another activity for refresh - notifyDataSetChanged()
connecting android to microsoft reporting service
Not displaying ads by ad banner from admob in android
How to reference an Android theme in preferences?

Categories

HOME
phpmyadmin
youtube-data-api-v3
apache-spark-mllib
entity-framework-core
interpolation
android-json
mvc5
banner
jtextpane
computer-science
fabric.io
categorical-data
octave
commonjs
gson
datastage
filechannel
comsol
glyphicons
google-content-api
kendo-mobile
mat
send
aws-codecommit
python-import
sql-delete
latitude-longitude
dm-script
diacritics
smoothstate.js
uiimage
procfile
opennms
hammer.js
payload
reshape
baidu
django-1.10
choice
redistributable
ziparchive
macaulay2
swizzling
boost-serialization
findfirst
vhosts
boomerang
dynatree
qt5.2
r-package
fuelcms
canalyzer
rpart
baasbox
skspritenode
keyup
osc
document-repository
infosphere-spl
nodelist
viewer
addressing-mode
psr-4
cancellation
xml-dsig
wxformbuilder
dct
jammer
cocoalibspotify-2.0
traceability
thttpd
josql
azman
predicatebuilder
apache-commons-dbutils
pinch
facebook-iframe
binomial-heap
skype4java
alsb
software-lifecycle
localizable.strings
technical-debt
netbeans6.1

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App