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?
Related
I recently started to work with AOSP to build android automotive images (currently version A12.1) and i would like to know how to enable and how to use features such as
Dual access point (AP/AP concurrency)
Dual wifi connection (STA/STA concurrency)
and bridging internet access from wifi network to devices connected to the android hotspot (STA/AP concurrency).
Im using imx8qm board with 88Q9098 wifi chip from NXP.
https://www.nxp.com/products/wireless/wi-fi-plus-bluetooth/2-4-5-ghz-dual-band-2x2-wi-fi-6-802-11ax-plus-bluetooth-5-3-automotive-solution:88Q9098
I was told that this wifi chip should be able to support these features (with its concurrent dual wifi architecture)
I found some documentation from google about these features here:
https://source.android.com/docs/core/connect/wifi-sta-ap-concurrency
https://source.android.com/docs/core/connect/wifi-sta-sta-concurrency
https://source.android.com/docs/core/connect/wifi-ap-ap-concurrency
Following this it looks like we were able to make STA/AP work, because we were able to connect to wifi network with internet access and start hotspot at the same time, and the device connected to the hotspot was also able to access internet.
Trying this was fairly easy since i was just using already existing UI of android automotive => activating both sliders for hotspot and wifi (in network settings) at the same time. But how do I test AP/AP and STA/STA features? Im not really experienced in AOSP development, so any suggestions are appreciated.
Is there already a way to use these features but it is not by default shown in UI? or do I need some external app to do this? Or something entirely different?
And if there is someone who could explain to me or link some guide to the whole process of how features like this should be supported by vendor, I would really appreciated it :). I was unable to find any straightforward examples of what needs to be done.
Thank you for any comments. Sorry for mediocre english and sorry if the structure of the question is not what is expected here (this is my first question on stackoverflow).
Have a nice day :)
I want to change dns when phone using 3g connection.
I know how to change dns when phone using wireless. I learned it from here
Is there any way to change dns when phone using 3g connection ?
There's no setting, but it's possible on a rooted device.
I answered a similar question on the Android Enthusiasts site.
If you have a pre-KitKat device, you can find many apps on the Play Store; on a KitKat device there's only one app which I know, and I wrote it. It does basically the same thing, but with the right commands for Android 4.4. You can find the references in the answer I linked.
There's some other app which can do it without root, too, but they create a fake VPN on the same device and redirects all the network traffic through that link... I think they overdo it.
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.
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.
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.