当用户在设置页面中选择Wifi时,限制应用程序使用Wifi [英] Restrict app to use Wifi when user selects it in the settings page

查看:138
本文介绍了当用户在设置页面中选择Wifi时,限制应用程序使用Wifi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在开发应用程序,我希望在该应用程序中为用户提供选择是否允许应用程序使用移动网络进行Internet使用的功能。如果用户不允许该应用,该应用应该只使用Wifi从互联网获取数据。和副$ b $反之亦然。我的应用程序在Windows Phone 7.5上。有什么方法可以实现这个功能。如果在这方面有善意指导我。


我将感激不尽。

解决方案

嗨@Saad,Windows Phone自动管理连接。所以,你不需要担心互联网。如果你通过WI-FI连接,将使用Cellular网络。


AFAIK你不能用Window Phone API做到这一点。


问候。


Hi Everyone,

I am working on the app in which I want to give user the feature to select whether user should allow the app to use Cellular network for Internet use. If the user disallows the app the app should only use Wifi for getting data from the internet. and vice versa. My app is on Windows Phone 7.5. Is there any way I could achieve this functionality. If there is kindly guide me in this regard.

I shall be thankful.

解决方案

Hi @Saad, Windows Phone managed the connectivity automatically. So, you don't need to worry about internet here. If you are connected via WI-FI will be used instead Cellular network.

AFAIK you cannot do that with Window Phone API.

Regards.


这篇关于当用户在设置页面中选择Wifi时,限制应用程序使用Wifi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆