更改网络选择模式编程 [英] Change network selection mode programmatically

查看:185
本文介绍了更改网络选择模式编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想(想知道如果它甚至有可能)来编写一个应用程序,这将自动更改网络选择模式,基于一些标准。例如。从改变沃达丰T-​​Mobile的网络运营商(假设SIM卡注册会成功,但我并不担心大气压)

I'm trying (wondering if it's even possible) to write an app, that would change the network selection mode automatically, based on some criteria. E.g. change the network operator from Vodafone to T-Mobile (assuming that the SIM card registration will succeed, but I'm not worried about it atm)

不幸的是,我似乎无法找到API以任何方式做到这一点。任何人有任何想法?
我假设,因为它不是在公共API,还有可能是一个办法做到这一点,如果手机扎根。真的吗?如果是这样,我应该在哪里看?

Unfortunately, I can't seem to find any way in the API to do it. Anyone has any idea? I assume, since it's not in the public APIs, there might still be a way to do it, if the phone is rooted. Is that true? If so, where should I look?

在此先感谢

推荐答案

很抱歉,但你不能。

您可以看看到 TelephonyManager

您可以知道当前操作员:getSimOperator(名称)/ getNetworkOperator(名称)

You can know the current operator: getSimOperator(Name) / getNetworkOperator(Name).

您还可以检查此<一个href=\"http://stackoverflow.com/questions/2373727/programatically-connecting-to-another-network-operators\">thread他说:我学习,为了安全起见没有任何公开的API来管理这个所以唯一的选择就是用户发送到我的应用程序中的系统preferenceScreen。

You can also check this thread saying "I learn that for the sake of security there aren't any public APIs to manage this so the only option is to send the user to the system PreferenceScreen within my app."

这篇关于更改网络选择模式编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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