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 to get each device’s IP address in Wi-Fi Direct scenario?

I encountered the same problem. Since both devices know the group owner’s ip, it is already possible to send a message to the group owner. The first message you send can contain the ip address of the other device; from then on, bidirectional communication is possible. Here’s a possibility for retrieving your ip in java: … Read more

Android: Simulate WiFi in the emulator?

Currently, while you can use your computer’s Internet connection in the emulator, it’s not reliable to use it for simulating Wi-Fi. The WifiManager gets confused when you switch/want to test your connectivity state. Even in Android 1.5, there were some problems with it (Issue 2571 – android), and while you can use your Internet for … 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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)