我需要编写 2buttons 的处理程序来启用/禁用 wifi 和蓝牙。现在,我只能看到手机设置页面,在这里我可以手动更改启用/禁用 wifi 和蓝牙。那么,我怎样才能以编程方式做到这一点?
无线网络代码:
ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.WiFi;
connectionSettingsTask.Show();