wifi

Android connect to Open WiFi programmatically by name - which is Best solution?

别等时光非礼了梦想. 提交于 2020-01-29 17:51:06
问题 I been trying to use two methods to programmatically connect to a open wifi (connective portal) by name. I used op1, but it only works about 80% of times. _____________________________________________________ op1 : public static void connectToWifi(Context context, String networkSSID) { WifiConfiguration conf = new WifiConfiguration(); conf.allowedKeyManagement.set(WifiConfiguration.KeyMgmt.NONE); WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);

unable to read packets captured from wifi network using wireshark

五迷三道 提交于 2020-01-24 21:05:15
问题 I am connected to my home wifi network using ubuntu 10.10. The protection is WPA2-auto. I want to capture packets from it. $ sudo iwconfig wlan0 mode monitor $ sudo wireshark I try to capture from wlan0. Am connected to the wifi network with an android phone and browsing websites. However I am unable to see unencrypted http packets. I select Edit|Preferences|Capture|Protocols and select 802.11 and select check box to yes for 'decrypt packets'. Still nothing. Any help appreciated. 回答1: You

connect and send on the socket succeeds, even if WIFI not enabled and server is only reacheable in the wireless network - Windows Mobile 6.5 - C/C++

喜欢而已 提交于 2020-01-24 20:30:47
问题 I wrote a small C/C++ Windows Mobile 6.5 client-application that is connecting to a server and sends some data to this server. The server is in my internal wireless network and is not reacheable outside. The weird behaviour I'm having: 1) Even if the WIFI is not started on my mobile device, the connect() from the client-application returns success (!= SOCKET_ERROR), which is not the case b/c the server is reacheable only in the wireless network. 2) If the WIFI is not started on my mobile

How can I programmatically read wifi passwords in Android

筅森魡賤 提交于 2020-01-21 04:23:32
问题 I am trying to get the WiFi passwords programmatically from a non-rooted Android device. All I need is to be able to read the passwords, I do not need to be able to edit them. Can I get permission in the manifest file? 回答1: If your application is a privileged app (that is - installed in /system/priv-app for example using SuperUser) then you can use the new WifiManager#getPrivilegedConfiguredNetworks() API in Lollipop and newer. See: https://android.googlesource.com/platform/frameworks/base/+

Local Video Play on Real device Iphone

耗尽温柔 提交于 2020-01-17 07:25:49
问题 Use this link I am trying to play a video on the simulator with AVPlayerViewController . That work on simulator perfectly. But when I am trying to play it on real Device. It doesn't work. import UIKit import AVKit import AVFoundation class SafaribroserViewController: UIViewController { var playerViewController = AVPlayerViewController() var playerView = AVPlayer() override func viewDidLoad() { super.viewDidLoad() } @IBAction func hsdgfsf(_ sender: Any) { let fileURL = NSURL.init

WiFi drops in iPod after a while running my application

本小妞迷上赌 提交于 2020-01-15 08:30:12
问题 I have wifi issues in with my application and the iPod I use for development. Other users have reported the same problems with my app. The app keeps an open connection using sockets, and I show the connection status on top. Also the application reconnects when is disconnected. The wifi signal of my iPod drops every 1 minute, and eventually, it drops until: I plug a power-source to the iPod or I exit the application. It's really and issue that is driving me crazy :-P The iPod iOS version is 5

Why can't I detect a wifi SSID with unicode characters on Android?

让人想犯罪 __ 提交于 2020-01-15 05:38:08
问题 I have a wifi AP with an SSID that's a string of unicode characters (ex: "ԱԲԳԴԵԶԷԸԹԺԻԼ") that I want my Android device to connect to. When my device (Nexus One) detects the hotspot, the SSID looks like this: "܍܍܍܍܍܍܍܍" and does not recognize it. Any idea how to fix this? 回答1: I've wrote an app "WiFi Connection Manager" to fix this problem. However, I don't understand any Armenian, so that the result may not be displayed correctly. You can still connect to the Access Point even if the names

Connecting two android devices using wifi

喜你入骨 提交于 2020-01-15 03:42:26
问题 I need to connect two android devices using wifi. One device is a server, which sends certain commands to second device. My question is how can I get IP address of the server from the client device? Using of some external wifi network is possible. Android.net.wifi.p2p is not acceptable for me, because it's only supported since API level 14. UPDATE: is it possible to scan current wifi network to look for connected devices? F.e., in my case client scans its network, finds server and connects to

How to calcuate IEEE 802.11 CRC-32 FCS?

纵然是瞬间 提交于 2020-01-14 12:32:16
问题 This is from IEEE Std 802.11-2012 Clause 8.2.4.8 FCS field: I cannot understand the last two paragraphs: What's the meaning by "the initial remainder of the division is preset to all ones", and why we need to do that? What's the meaning by "... the serial incoming bits of the calculation fields and FCS..." ? 回答1: Initializing the CRC to all ones avoids the problem of a string of zeros of any length giving a zero CRC. Read Ross Williams CRC tutorial. 来源: https://stackoverflow.com/questions

Can you determine if Wifi security is enabled on network you're connected to on iOS?

丶灬走出姿态 提交于 2020-01-14 12:18:31
问题 In my iOS app, I'd like to be able to determine whether the Wifi network the device is currently connected to has Wifi security of some sort enabled (wep, wpa, etc). CaptiveNetwork provides the SSID of the connected network, but not much else. Is there an approved way of determining if WEP/WPA/etc are enabled on the currently connected Wifi network? 回答1: Apple is not providing any Wifi related API and all the information that is available to you is given by the actual network, so basically