wifi

Android: How to/Show wifi (select SSID to connect) as dialog or popup?

别等时光非礼了梦想. 提交于 2019-12-22 12:23:11
问题 I develop an application and want to show wifi networks as a dialog (popup). My code is: startActivity(new Intent(WifiManager.ACTION_PICK_WIFI_NETWORK)); It just show wifi setting as: But I want it show as dialog like this : I wonder this is wifi dialog or we can show another activity as a dialog. 来源: https://stackoverflow.com/questions/28828179/android-how-to-show-wifi-select-ssid-to-connect-as-dialog-or-popup

Calculating distance of an AP including signal-to-noise ratio

与世无争的帅哥 提交于 2019-12-22 11:35:11
问题 For some reason a friend and myself were talking about calculating the distance between yourself (laptop, phone, etc.) and an AP based of the info you get from the devices (RSSI, freq, SNR, etc...). So, after spending sometime researching about trilateration, triangulation, and free-space path loss. (with the help of some blog posts and wiki) I was able to get a distance in meters from the AP to my laptop and the results were a lot better then what I thought they would be. Whenever I'm in the

Android wifi power question

主宰稳场 提交于 2019-12-22 10:43:15
问题 I have observed that by default the wifi adaptor goes into (power saving mode) PSM mode. When Certain applications such as youtube appear to buffer video, the adaptor leaves PSM mode into CAM state or full power mode. Once the buffering is done, the wifi adaptor goes back into PSM mode. I have observed this behavior with other applications as well. Is there an API call that supports this kind of behavior? It's not clear from the documentation how to switch the WIFI adapator in and out of PSM

Java create wifi hotspot in Windows 8

旧时模样 提交于 2019-12-22 10:40:15
问题 I need to create a wifi hotspot and a DHCP server in Windows 7-8 with Java. I'm developing a software that could be for the user less intrusive and simple that i could. For the first part of my work, I thought to use netsh to create the hosted network and to set static the ip. my current code is this: String[] command = { "cmd", }; Process p = Runtime.getRuntime().exec(command); new Thread(new SyncPipe(p.getErrorStream(), System.err)).start(); new Thread(new SyncPipe(p.getInputStream(),

How can I determine my position by triangulation on known routers?

纵然是瞬间 提交于 2019-12-22 08:36:28
问题 Is there any open source software available? Basically, I just want to triangulate based on signal strength of routers whose location is fixed and known. I realize there can be cases of interference, but let's just stick to listing known source code. Thanks. 回答1: I found this solution: http://redpin.org They offer you for free for iOS and Android platforms. All sources you can download an look at. There bunch off documentation and other staff to help you with 回答2: I don't know of any

Firebase servers not reachable when using mobile phone data (3g/4g)

六月ゝ 毕业季﹏ 提交于 2019-12-22 08:17:15
问题 I was running some FireBase tests and suddenly I realized Firebase was not working anymore when using mobile data from Chile. At the beginning I thought the problem was my app so I tried to open a Firebase official example but I had no luck (office-mover-demo example). This is what I tried: I connected the phone to my home wifi connection and FireBase works :) I shared the phone’s internet connection to my computer and it did not work :( . This is the error y receive. I emailed Firebase

WiFi P2P network in Android Things

独自空忆成欢 提交于 2019-12-22 08:15:54
问题 I would like to create a P2P WiFi network using Android Things (5.1) and a couple of Raspberry Pi 3 or alternatively using Bluetooth. I followed the guide in the Android Developer section https://developer.android.com/guide/topics/connectivity/wifip2p.html, so my MainActivity looks like: private class MainActtivity { private WifiP2pManager mManager; .... @Override public void onCreate(Bundle savedInstances) { mManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); .... } }

WiFi P2P network in Android Things

耗尽温柔 提交于 2019-12-22 08:15:04
问题 I would like to create a P2P WiFi network using Android Things (5.1) and a couple of Raspberry Pi 3 or alternatively using Bluetooth. I followed the guide in the Android Developer section https://developer.android.com/guide/topics/connectivity/wifip2p.html, so my MainActivity looks like: private class MainActtivity { private WifiP2pManager mManager; .... @Override public void onCreate(Bundle savedInstances) { mManager = (WifiP2pManager) getSystemService(Context.WIFI_P2P_SERVICE); .... } }

Problem connecting Android app to socket using cell connection

大憨熊 提交于 2019-12-22 08:04:08
问题 I'm trying to get my android app to connect to a socket on a server across the internet. I notice that when I have my Wi-fi turned on in the phone, the App can successfully connect to the port, but if I turn off the wi-fi, I get a time out on the connection. I can access and browse the internet on the phone seamlessly when wi-fi is off but connecting to that server always fails. I've verified that the server is listening on that port and I can always connect from any other computer across the

Android: 3G to WIFI switch while in the middle on the app = loss of network connectivity

可紊 提交于 2019-12-22 07:11:29
问题 I am running into a annoying problem with HTC Legend (Android 2.2). Not seeing this issue on Xperia, Galaxy, Nexus, etc. When I launch my app on a 3G connection, fetch some data, then go into phone Settings and enable WIFI, the phone automatically obtains a WIFI connection which is favoured over 3G. The trouble is, once i switch back to the app, it appears to have lost all network connectivty and unable to connect to anything. However, other apps, like Web Browser for example, have no problem