wifi

How to get name of wifi-network out of android using android API?

无人久伴 提交于 2019-12-27 11:56:27
问题 I thought that I should use NetworkInterface::getDisplayName. I got some name, but this name is different that this name which I can see, when I choosing to which network I want to connect. Please help.. [EDIT] acording to Loxley answer: WifiManager wifiMgr = (WifiManager) getActivity().getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInfo = wifiMgr.getConnectionInfo(); String name = wifiInfo.getSSID(); 回答1: android.net.wifi.WifiInfo.getSSID ? 回答2: public String getWifiName(Context

How to open Android Settings Wifi Hotspot Menu Pragmatically in Java?

冷暖自知 提交于 2019-12-25 19:02:05
问题 I want to open below or if this is not possible then below settings through java code in android. I know i can open settings using startActivityForResult(new Intent(Settings.ACTION_SETTINGS), 0); but i am not able to find appropriate strings for either of the above menus. Please if anyone can help. 回答1: Try this, startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)); 来源: https://stackoverflow.com/questions/55083427/how-to-open-android-settings-wifi-hotspot-menu-pragmatically-in-java

Get Devices connected to same wifi network in android programmatically?

偶尔善良 提交于 2019-12-25 18:38:06
问题 I am developing an app in which the first thing i need is how to get devices that are connected to my wifi network or same wifi network .ie ip adress,device name etc. I don't have any idea how to do that have searched alot but there are no examples available. I have done one thing that i will ping 255 ips and whichever will respond will be the connected ips but the problem here is that there are virtual ips already assigned to some websites so i need to detect only the real device ip

Is where a way to listen to wireless network changes in node js?

老子叫甜甜 提交于 2019-12-25 18:34:47
问题 I am building an application in which I need to detect the any changes in connected wireless network ie when a user transfers from one network to another and log the change. I am using electron js and wireless-tools for nodejs. So is there a way to do this or I have to use setInterval() to check every few seconds. Any suggestions/solutions are appreciated.Thanks. 回答1: online (in index.html or in other html file) to detect if an internet connection exist like this : In index.html you can do

WI-FI 802.11 speed depending on distance

大憨熊 提交于 2019-12-25 16:46:19
问题 can someone help me with a document containing the theoretical exact speed of different standards of 802.11 WI-FI depending on the distance (1 to 10 meters) ? like if there is an mathematical equation that gives how the speed decrease with distance ,or software tool, or a table that gives how speed decreases every 1 meter for example , i need something very exact. THank you :) 回答1: Pure distance effect while dismissing accompanying factors is negligeble due to the following facts: Assuming

iOS programatically setting up device in AP mode

≯℡__Kan透↙ 提交于 2019-12-25 06:04:51
问题 During the application lifecycle, how can device be put into Access Point mode? Like turning on the Personal Hotspot. And is it possible to assign SSID to that network during runtime? 回答1: There's no way to do the above with public API. If you want to use private api there is a file located in the Preferences folder, along with the com.apple.SpringBoard.plist : /var/mobile/Library/Preferences/com.apple.MobileInternetSharing.plist In that file, you will want to set 1023 for key State to enable

How connect Android to no SSID public and no Password requered

百般思念 提交于 2019-12-25 05:36:13
问题 i can't connect Android on SSID established, i try WifiConfiguration but unsucessfull, my ssid is open (without password). In Android UI i can connect, but on code i can't. Anybody help me? Tankyou. EDIT: my code: String networkSSID = "DL63.0.0.0.1"; String networkPass = ""; WifiConfiguration conf = new WifiConfiguration(); conf.SSID = "\"" + networkSSID + "\""; // conf.wepKeys[0] = "\"" + networkPass + "\""; // conf.wepTxKeyIndex = 0; conf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt

Testing app beetween real device and emulator via WiFi without router

会有一股神秘感。 提交于 2019-12-25 05:23:10
问题 I develop app which contains a client and a server side, so I need to test work between them. I have a real android device and I want android device to connects to emulator. I'm working at work sometimes(if I have free time of course) and at home. I have the WiFi router at home and I can connect to the real device by emulator(TCP listener running on the real device), but not vise versa(I don't know which exactly IP to use). But at work I have only hot-spot WiFi point without router. My

How to update wifi RSSI values without a click button

岁酱吖の 提交于 2019-12-25 04:19:23
问题 Basically, I can list the values of RSSI in a ListView through a SimpleAdapter. public class ActivityListarRedes extends MainActivity { @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.listar_redes); List<Map<String, String>> l = listaRedes(); String[] from = { "ExampleId", "ExampleName" }; int[] to = { android.R.id.text1, android.R.id.text2 }; SimpleAdapter ad = new