wifi

C# Connect to Wifi Network with Managed Wifi API

我只是一个虾纸丫 提交于 2019-11-27 13:18:55
i was wondering if it is possible to connect to a wifi network with the Managed Wifi API? Basically, yes. Maybe you should spend a few minutes searching. From Managed Wifi API codeplex page: The library uses the Native Wifi API, ... So going to Native Wifi API: MSDN Connect to or disconnect from a wireless network. See WlanConnect and WlanDisconnect. And furthermore, in the source code of Managed Wifi API WlanApi.cs : /// <summary> /// Requests a connection (association) to the specified wireless network. /// </summary> /// <remarks> /// The method returns immediately. Progress is reported

Downloading “mobileconfig” file from an App

a 夏天 提交于 2019-11-27 13:12:06
问题 My org is creating an app, that will have certain wifi hotspots listed in a mobile config file, so that the user does not have to write the password for these wifi when he is in range. I know this can be done using .mobileconfig file. But I have serious doubts. Here are few questions regarding the app: Can .mobileconfig file be created programatically. I cannot find a link to how to cretae this programatically (not using iPCU). Will Apple allow an app that creates .mobileconfig file and asks

Can I find the MAC address of my Access point in Android?

ぐ巨炮叔叔 提交于 2019-11-27 13:11:11
Can my Android app find the MAC address of the Wifi access point it is connected to? The docs for android.net.wifi.WifiInfo getMacAddress() don't provide any details. See http://developer.android.com/reference/android/net/wifi/WifiInfo.html#getMacAddress() . I'm assuming this is the Mac address of my phone. Can I find the Mac address of the access point? getBSSID() of WifiInfo class will return MAC address of remote access point. BSSID explained here . The following method will return the MAC address of the access point, null if there is no network currently connected. public String getMacId()

Check WiFi and GPS isConnected or Not in Android?

我们两清 提交于 2019-11-27 12:57:16
I would need to check the wifi is on or off in the phone at the runtime? if it is not connected, i want to show dialog and goto directly Setting/Wireless Controls to enable it by user. its for both wifi and Gps staus of the phone. How to do it? which intent to wake for this? Any idea? kgiannakakis You can use the WifiManager class to get the state of Wi-Fi. See this question for opening Wi-Fi settings. And this question for GPS status. RoflcoptrException To check if the device is connected via mobile or wifi you can use this code: ConnectivityManager conMan = (ConnectivityManager)

Android, How to handle change in network (from GPRS to Wi-fi and vice-versa) while polling for data

淺唱寂寞╮ 提交于 2019-11-27 12:31:39
I use DefaultHttpClient and HttpGet to poll data from server. Now, say a user was in Wi-fi network and moves out of the room. So the phone automatically starts using the 3G network. Are there any call-backs for such change, and how should I handle such changes. Should I start polling again or does the OS take care to make the changes appropriately You can set up a Receiver in your manifest: <receiver android:name=".NetworkChangeReceiver" android:label="NetworkChangeReceiver"> <intent-filter> <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> <action android:name="android.net.wifi

iOS API detect wireless networks

痞子三分冷 提交于 2019-11-27 12:19:14
问题 Is there an API in CocoaTouch/iOS for detecting wireless networks? I want to write an app that saves a list of networks the phone can see at a given moment. 回答1: As far as I know you can get the information about the current connected Wi-Fi using CNCopySupportedInterfaces and CNCopyCurrentNetworkInfo of CaptiveNetwork. You can refer to: How do I use CaptiveNetwork to get the current WiFi Hotspot Name for more information. According to iPhone get a list of all SSIDs without private library:

Android: Force data to be sent over radio vs WiFi

牧云@^-^@ 提交于 2019-11-27 12:12:27
Is it possible to force an Android application to use only the mobile radio connection (3g/4g/etc), disallowing the use of WiFi? I think I want to use a HIPRI connection: (ex: WIFI turned on, use HIPRI 3G): http://groups.google.com/group/android-developers/browse_thread/thread/d41f85505484d29b I don't believe you can "force" the connection path without explicitly turning off the Wi-Fi radio temporarily (not recommended). However, you could try setting the network preference during the period you want this to occur: ConnectivityManager cm = (ConnectivityManager)getSystemService(Context

iOS detect WiFi hotspots or Bluetooth Devices

不想你离开。 提交于 2019-11-27 12:07:59
问题 I know that without users permission trying to switch on WiFi or Bluetooth is not possible (rather comes under private API). I dont want to go there. Assuming WiFi is switched on or assuming bluetooth is switched on. Is it possible to detect all Wifi hotspots around my device (iPhone or iPad)? Same for Bluetooth? I want to do this in Xcode Version 4.x with iOS SDK 4.3 回答1: Update Apple has deprecated a large part of the GameKit peering methods in iOS7. Added updated information for iOS8. iOS7

Android : Check 3G or Wifi network is ON or Available or not on android Device

强颜欢笑 提交于 2019-11-27 11:51:14
How to check that network is available or not on android device programmatically, which throws a message or toast message when we are trying to connect with a network such as Wifi & 3G. TO check whether network i.e 3G or WiFi is available or not we can use below methods to verify before starting our activities. ConnectivityManager manager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE); //For 3G check boolean is3g = manager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE) .isConnectedOrConnecting(); //For WiFi Check boolean isWifi = manager.getNetworkInfo(ConnectivityManager.TYPE

Parsing WiFi Packets (libpcap)

冷暖自知 提交于 2019-11-27 11:43:34
问题 I've been working on a way to have an OpenWRT router log WiFi probe requests to a MySQL db (it stores MAC address and RSSI info for each probe request packet along with other, router-specific data). After researching libpcap quite a bit, I've been able to cobble together a basic little program that simply sniffs packets on a monitor interface (mon0) using a filter expression ('wlan subtype probe-req') and then prints out the raw packets in hex. With the info that's available online on libpcap