Alternative to WiFi Direct - android

I'm trying to develop an application that, when run on two or more devices, will be able to send data to each other at high speed. Bluetooth is not an option because of the distance. I wanted to use Direct WiFi, but it's available only on Android 4.0 and onwards. Even though I have devices with Android 4.0.3, it's still not functioning. The discovery function is not present in this version I think. I've tried looking for alternatives, such as WiFi Tethering but the device needs to be rooted in order for it to work. Moreover, there's no tutorial explaining how it works. Can anyone give me another alternative to WiFi Direct, which would enable me to create an AdHoc network on the fly?

Nowadays, you can use the new NFC communication, but, if your phone doesn´t have WiFi Direct... It is not going to have NFC communication. Anyway, i hope this may help you.

Related

fast direct communication between ios and android

at the moment I'm planning to build an cross-plattform app (iOS/android) that streams music from one device to others without internet. Now I'm considering which network technology is best for this use case. By the way I'm sorry I didn't say hello to you, it disappears all the time.
Existing wifi network:
I don't wanna use this because I want my app to work everywhere.
Wifi-Direct:
Not supported by iOS (tell me if I'm wrong).
Bluetooth:
Here I've found kind of conflicting information.
Bluetooth 2.1 is supported by both iOS and android but iOS has its own protocols and doesn't support the common ones.
Bluetooth Low Energy provides a data rate that is too slow for high quality music streaming (1Mbit) and is supported by iOS but on the android side version 4.3 is required which suspends about half of all users.
What I'm not sure about is the "normal" (not LE) usage of Bluetooth 4.0. Does anyone have experience/information about this?
Creating a wifi hotspot:
This was my first idea and probably it's the best. But there are several issue:
Some carriers do not allow hotspots
It's not possible to create a hotspot without cell reception on the iPhone and some (I don't know which exactly) android devices.
It's not possible to create a hotspot without cellular data activated on an iPhone; I don't know what about android devices (Nexus 4: no problem, SGS3 mini: cellular data can be switched off after creating the hotspot)
-> that's a problem for those who don't have an internet unlimited plan or for those who don't want to share their internet connection (as this dissipates the high speed volume) but see the next point for that.
In order that everyone can use his own cellular data connection the wifi settings can be manually edited on iOS (remove router, DNS and search domains entries). Is there a way to do so on android as well? Is there way to automize this process?
https://apple.stackexchange.com/questions/173894/can-i-connect-to-wifi-but-still-use-cellular
Is there any way to create a wifi network programmatically (not just enable the normal wifi hotspot)?
SDKs/Frameworks like Open Garden or Alljyon looked promising at the beginning but:
Firechat (which is made by the Open Garden team) promises that iOS and android devices can chat locally without existing network but actually it didn't work for me with an iPhone 6 and SGS3 mini. However they don't want to publish their SDK. The only information I got is that it works over wifi-direct and bluetooth. If anyone has an idea how this could work, please tell me.
Alljoyn does not provide direct communications between iOS and android without an existing network. (Tell me if I'm wrong)
API's:
iOS multipeer connectivity does not support android
I hope anyone can help me.
Regards Nils
If you are talking about a TVBOX device with Android, you will need the ethernet cable connected in order to create a hotspot.
Another option that I have done is:
Create a service that runs on iPhone with an interfaz, do whatever you want on that interfaz, then send what ever you need to a webservice, then in Android, just pull that info from another App as a service, or just store it in an internal sqlite.
Good luck

Is there a way to know the details of the Bluetooth Chip in a device?

I want to know if there is a way to get the details of the bluetooth chip use in a device (other than tearing it down)
Reason: I have a third party lib that does not seem to work with certain phones. The lib once started, blocks any wifi connection..It completely shutdown the Wifi as I get disconnected from the network I am connected to.
I have never heard of a way to get a bluetooth chip, however please see this question on how to get the device model. This should hopefully be good enough to detect which models yours will and will not work on (I'm guessing you simply need to exclude older phones).

Can an Android device broadcast an SSID?

I want to look at data coming from a Nintendo 3DS on an Android device. The 3DS will automatically try and connect to any router with the SSID of "Nintendo_3DS_continuous_scan_000".
I know it should be possible, since tethering apps do essentially the same thing. I've tried looking at Wifi Direct or Wifi P2P, but so far I haven't seen any option to set an SSID. Am I looking at the wrong library for this project?
EDIT: I found a library here that handles the Access Points. I've successfully tested it once now, so I'm off to try crazy things.
If the android device can be used as a hotspot it sure can. For changing the SSID you would use the WifiManger and WifiConfiguration classes. Their documentations can be found here and here respectively. I also found a question I believe may help you with this. Wifi Hotspot Configuration. And here is another question where the user was having trouble with HTC devices that might also be useful. Hotspot Config on HTC.
EDIT - My answer was assuming that you are trying to change the broadcast SSID of the device so that the Nintendo 3DS will connect to it, is this correct?

Passing values from an android device to another

Is it possible to pass a value from an android device to another? I mean, without using the Internet. My project will be implemented only on a localhost. The two android devices are only connected through the router. If it is not possible on the local area network how can I do this? Are there other ways? I'll use the Internet or any other options if possible. Links to open source code, if you have any particularly regarding on this topic, would be appreciated too. Thanks!
If your target is Android4.0+ you can use wifi direct as #pgsandstrom stated.
In other cases if you want to make client/server comunication with two android decices you should look at this thread Socket Server/Client with two Android devices and the awser to this question may be usefull to you too How to write an Android SocketServer to listen on wifi.
If you can restrict usage to Android 4.0 or later, then have a look at wi-fi direct. It doesn't use a router thou, so I hope that isn't a restriction. If you need to support older devices, I think you have to go with bluetooth.

Android ad-hoc / access point connection capabilities

I am looking for the best, if any, programmatic way of connecting two or more Android phones to each other through the use of either Bluetooth or preferably, Wi-Fi. Apparently Android devices still do not have ad-hoc Wi-Fi capabilities and I am trying to create a peer based program without the use of any central server.
I want to accomplish this without the use of modification to the phones (no rooting). It is even fine to have a phone act as an access point with no Internet access to its clients if that is possible, I just need a mobile network.
I have 2.2 on my Android phone and it does have tethering - it can create a wireless access point then other devices can connect to it.
To prevent it having the internet, just turn mobile internet off.
The short answer is, you can't directly through the SDK. Some phones / revisions may have factory or other support to do so, but you can't rely on the SDK to do this.

Categories

Resources