access-point

List connected devices to Android phone working as WiFi Access point

天大地大妈咪最大 提交于 2020-01-12 03:52:07
问题 Is there a way in Android API to list connected devices, when Android phone is acting as WiFi router? And also is there a way to interefere with routed request to serve a welcome/login page? 回答1: This is an answer from another stackoverflow question, I read it before two month and don´t know from which user the answer is from, but this should work. WifiManager gives You what You need: Main.java import java.util.ArrayList; import android.app.Activity; import android.os.Bundle; import android

WiFi Direct device connection with other Android devices

眉间皱痕 提交于 2019-12-30 11:31:15
问题 Can I connect a WiFi Direct enabled device to any other device which doesn't have WiFi Direct feature but supports WiFi hotspot connection? Does WiFi direct uses specialized hardware to be present on both devices? Will network discovery work in such cases? 回答1: It is possible. Code taken from a talk I gave at Droidcon UK 2013. You need to call the createGroup(WifiP2pManager.Channel c, WifiP2pManager.ActionListener listener) method of the WifiP2pManager class. This will create a Wi-Fi Direct

Connect to strongest access point (access point with the strongest signal) with the same SSID

◇◆丶佛笑我妖孽 提交于 2019-12-24 00:37:54
问题 I am writing a program to always connect to the strongest access point. I mean the access point with the strongest signal. First I scan all the available WiFi networks and then I restrict them to see just the ones with the same SSID. So I can see all the APs of one network. When I connect to that network it doesn't connect to the strongest signal but I want it to switch to the strongest AP signal. By WifiManager.compareSignalLevel(bestSignal.level, connectedAP.level) <0 I understand the best

Force Android to Use Wifi network with no internet

有些话、适合烂在心里 提交于 2019-12-18 10:42:41
问题 I am building an android app that needs to communicate over a WiFi network that will not have any internet access. The problem is that even when the WiFi is connected android chooses to use cellular/mobile data when no connection internet is present on the wifi network. I have read many posts on the issue many of which involve rooting the device but that is not possible with a production app (rooting devices is not an option). other solution (like my code bellow) suggest using

Hostapd BSSID configuration

点点圈 提交于 2019-12-13 08:56:07
问题 We have a device that creates an access point using the MAC address of wlan1 as the BSSID. We are trying to change this default BSSID, and we somehow manage to do it, but it seems our changes don't take an effect on what the clients see as BSSID for the network. The question is how to properly configure hostapd to run the access point with the BSSID we want it to have. On the server side We can see that our configuration has an effect on all the 3 places where we expect it to have it. hostapd

How sign my app as “system application” android

戏子无情 提交于 2019-12-13 03:44:03
问题 I've an application that writes some APN settings. Since from Android 4.0 this operation is no more allowed, but for system applications, my question is: Is there any way to sign my application as "System app", so it can be installed on no-rooted devices and get access to APN settings? 回答1: On non-rooted devices above IceCreamSandwich, you can't. (Unless you have the signature key which was used to sign the operating system, i.e. the hardware manufacturer's key or the one of your ROM)

Android How to scan for hidden access points

大憨熊 提交于 2019-12-11 18:15:28
问题 how can i do programmatically scan for hidden Wireless Access Points, in android ? getScanResults give me only visible Access Points , but i need to discover hidden too. When programmatically scanning Wi-Fi networks (using WifiManager.startScan() and WifiManager.getScanResults() ), when the SSID broadcast is disabled on an access point and the access point has never been connected to the device, the ScanResult element for this access point does not appear in the list of access points returned

APN settings in Java ME

两盒软妹~` 提交于 2019-12-11 06:49:34
问题 Since it is not possible to specify the APN for HttpConnection in plain Java ME, are there vendor specific hacks other than BlackBerry OS URL suffixes? 回答1: The only way I know is using a suffix: "http://somenonexistingurl.fake;apn=<myapn>" I think it should also work in a J2ME MIDlet running on BB. As for the other non-bb devices, my guess is no. In J2ME you are not programming to a "phone" but to a "connected limited device" which may not have internet at all. 来源: https://stackoverflow.com

Android Wifi Roaming through AP with same SSID

◇◆丶佛笑我妖孽 提交于 2019-12-11 02:49:00
问题 I saw that Android system has a bad behavior with Wifi roaming. We have a Wifi centralized network with many AP with a signle SSID. The Adroid Phones wont roams seamlessly. An Android Phone tries to stay connected to an AP until the signal reaches zero even if there are others AP (with the same SSID) with a good signal! When the signal is zero, finally it performs an assosiation to another AP (with a good signal). But with this behavior the phone loses all the TCP Connections! For example:

ways for a client to identify the specific access point it is connected to within a single SSID?

霸气de小男生 提交于 2019-12-09 23:52:28
问题 The problem is as follows - there's a university campus wide wifi connection with a single SSID, say "campus-wifi". The user freely roams around campus, and the usual hand-off between access points occurs. My question is, is there any information at any layer of the network stack that allows the client to identify (any unique identifier is fine) the specific access point they're connected to, rather than simply the fact that they are connected to "campus-wifi"? If it's relevant, I'd like to