Forcing windows Phone to use WIFI connection

扶醉桌前 提交于 2019-12-13 13:18:07

问题


How to force windows phone to use wifi. The issue is that when i connected to Zune, it is using the local machines Ethernet connection. I need to disable this through code. How i can achieve this in windows phone 7.


回答1:


You can't. The best thing to do is to disconnect the USB cable because the phone will still think that it is connected (it is still able to ping Zune and does not receive the same network connection changed events)

This makes it impossible to debug so I resolved to add logging to my DEBUG builds.




回答2:


There is no way to tell the phone which connection to use.

I've previously debugged this by connecting the device/phone to the PC but then disconnecting the PC from the internet.
That should get you what you're after.




回答3:


Try by closing the Zune.exe in desktop (or laptop) and run WPConnect.exe And then try to debug.

Normally in x86 system WPConnect.exe resides in

C:\Program Files\Microsoft SDKs\Windows Phone\v7.1\Tools\WPConnect\x86

path or in 64bit system it will be in the x64 folder.



来源:https://stackoverflow.com/questions/9075785/forcing-windows-phone-to-use-wifi-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!