I need some clues how to approach my app. I have android device which provides HotSpot/AccessPoint for other devices. And this device which provides hotspot for others wants to get some data from internet and broadcast this data to devices which are connected to this hotspot. Ofcourse all smartphones must have installed same app.
Is there way to achieve that?
Thanks You!
Related
I created a WiFi-Hotspot with Android 10, and want to connect to it with the same phone. Is this possible with some "hacks"?
I know, it's a weird question and you may ask why I need this. The reason is that my provider granted me mobile data usage, that I only can use for sharing via hotspot. I don't know how they do it but it really only works for other devices connected to my hotspot - I myself can't use it. I also don't have a spare phone where i could put in my sim card and let it act as a router.
TL;DR: No, you cannot connect a device to its own hotspot, because devices only have one Wifi interface and those cannot send and receive transmissions at the same time.
You can find more about the topic on quora
https://www.quora.com/Does-my-own-hotspot-work-on-my-phone-or-just-other-peoples-phones.
I want to create an android application.
Is it possible to send a notification from my phone to other phone which has enabled its WiFi hotspot.
I mean, one phone has enabled its WiFi hotspot and I scanned available WiFi devices and I saw its WiFi hotspot ssid at my available wifi list and I want to send a notification or a message without connect its wifi hotspot point, or using bluetooth or using internet.
Is it possible?
There is also NFC - Near Field Communication. It has nothing to do with Wifi though.
So in theory, yes, I believe you can do what you asked. I think you can react to the presence of the other phones Wifi hotspot, but communicate on NFC instead.
As for sample code, I can't help you. I haven't written anything using NFC.
There is also sms or a phone call
I need to connect multiple phones to each other using wifi, without there being any internet though.
So i was thinking if this can be done by turning on the hotspot on one phone and allow the others to connect to it, can this be done ?
Or is there any other way to connect multiple phones via wifi ?
Any help is appreciated .. thnQ
To send and receive UDP messages you can using the following technique:
https://code.google.com/p/boxeeremote/wiki/AndroidUDP
The simplest way to explain this is that the UDP packages can be transmitted on a network with no particular destination set. Applications can pick this up and then decide if they want to handle the message or not.
To connect the devices you can use either a mifi dongle or put one of the phones into tethering mode:
https://support.google.com/nexus/answer/2812516?hl=en
Of course this is limited in range to the hosting mifi or phone.
I'm doing a research because I want to develop an app to which different devices connect.
The app can be an Android or iPhone smartphone. It will be for mountain equipment devices and sensors, so no wifi router is availabe. It needs long range, so Bluetooth is not an option.
I'm thinking on creating a hotspot in the smartphone and connect the devices to this hotspot. In this case, I'm thiking of this way of doing it:
Programatically create the hotspot in the smartphone. In Android, like this: http://www.whitebyte.info/android/android-wifi-hotspot-manager-class
Set up the name of the hotspot in the devices so they know where to connect. Pressing a button, they connect to the hotspot.
The android device broadcasts its IP, so devices know where to connect.
Devices connect and send the data.
I think this could be a real scenario, but I'm worried about:
Maybe there's a design flaw in my scenario that I'm not seing.
Batteries on the devices: how do batteries behave through "intensive" use of WIFI? (sending small amount of bytes of data every five minutes, e.g.).
The ability to replicate this scenario on an iPhone. Can it be done, or should the user manually create the hotspot to do this?
Any other feedback that I couldn't be thinking of.
Thanks.
Yes, on Android all of that can be done and should work fine.
Yes, you can programatically configure the hotspots info in the client.
Another way to make the connection (other then hotspot broadcasting its IP) is for the hotspot to reads it ARP cache, i.e. parse the cache to find the IP of all of the clients connected.
Battery could be a problem. That doesn't really sound like 'intensive' use of the wifi, but it will still consume a fair bit of battery (I find that even just having the hotspot enabled draws the battery).
I don't know the answer for iPhone.
If i turn my android device to a portable hotspot and connect some devices to it, Is it possible for me to Broadcast/Multicast data to devices connected from my Device (i.e. from Hotspot)? If Yes, How?
A snippet in Android would be great!
Thanks in Advance
Yes,you can multicast or broadcast udp packet in hotspot
see detail here:
Multicast Support on Android in Hotspot/Tethering mode