Windows Mobile - 连接到互联网
我的应用程序定期调用服务器。这需要使用 Wi-Fi 或 GPRS 进行互联网连接。
当手机唤醒(屏幕灯亮起)时,此功能可以正常工作。但是,一旦手机灯熄灭,它就会发出 HttpWebRequest 并尝试获取互联网连接。手机开始连接 Wi-Fi。但是,应用程序不会等待与 Wi-Fi 建立连接。
- 在发出 HttpWebRequest 之前如何连接到 Wi-Fi 或 GPRS?
- 如何指定我要连接Wi-Fi还是GPRS?
My application is making call to server at regular intervals. This requires internet connection either using Wi-Fi or GPRS.
This works ok when phone is waken (screen light is on). But, as soon as phone lights are off, it makes HttpWebRequest and tried to get Internet connection. Mobile starts connecting to Wi-Fi. But, Application does not wait for establishing connection to Wi-Fi.
- How can I connect to Wi-Fi or GPRS before making HttpWebRequest?
- How to specify that I want to connect to Wi-Fi or GPRS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为有两种方法:
I think their are two approaches to do: