iOS wifi scan, signal strength

As far as i know this can still be done (using private APIs, of course) by MobileApple80211 framework. Stumbler code is a good source of information on how to use this framework. For iOS 5 you’ll need a jailbroken iPhone. Guvener Gokce has a very educational blog post on this: iPhone Wireless Scanner iOS5

How users/developers can set the Android’s proxy configuration for versions 2.x?

I don’t think there was any platform-level support for Wi-Fi proxies before Gingerbread or prerhaps Honeycomb. Edit: An Android engineer who works on this part of the platform confirms that the system didn’t have proxies for different network types (e.g., Wi-Fi) until Honeycomb. So there is no “official” way to get the Wi-Fi proxy for … Read more

Detect wifi IP address on Android?

public String getIpAddr() { WifiManager wifiManager = (WifiManager) getSystemService(WIFI_SERVICE); WifiInfo wifiInfo = wifiManager.getConnectionInfo(); int ip = wifiInfo.getIpAddress(); String ipString = String.format( “%d.%d.%d.%d”, (ip & 0xff), (ip >> 8 & 0xff), (ip >> 16 & 0xff), (ip >> 24 & 0xff)); return ipString; } Please Note: You need to add android.permission.INTERNET and android.permission.ACCESS_WIFI_STATE in your AndroidManifest.xml … Read more

Android 2.2 wifi hotspot API

You can call private boolean setWifiApEnabled(WifiConfiguration wifiConfig, boolean enabled); using reflection 🙂 after getting the WifiManager use the reflection to get the WifiManager declared methods, look for this method name setWifiApEnabled and invoke it through the WifiManager object These API are marked as @hide, so currently you cannot use them directly, but they appear on … Read more

Is there a way to toggle bluetooth and/or wifi on and off programmatically in iOS?

Thanks to Matt Farrugia (@mattfarrugia on Twitter) the answer I was looking for was: – (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. #if TARGET_IPHONE_SIMULATOR exit( EXIT_SUCCESS ) ; #else /* this works in iOS 4.2.3 */ Class BluetoothManager = objc_getClass( “BluetoothManager” ) ; id btCont = [BluetoothManager sharedInstance] ; … Read more

How do I get the available wifi APs and their signal strength in .net?

It is a wrapper project with managed code in c# at http://www.codeplex.com/managedwifi It supports Windows Vista and XP SP2 (or later version). sample code: using NativeWifi; using System; using System.Text; namespace WifiExample { class Program { /// <summary> /// Converts a 802.11 SSID to a string. /// </summary> static string GetStringForSSID(Wlan.Dot11Ssid ssid) { return Encoding.ASCII.GetString( … Read more