一套系统设置"仅使用2G网络"编程 [英] set system setting "use only 2g networks" programatically

查看:107
本文介绍了一套系统设置"仅使用2G网络"编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么可以强制系统使用的2G,而不是3G呢?有在系统设置选项里,但我没有发现在Android的SDK函数来设置这个选项!

how can i force the system to use 2g instead of 3g? there is an option for this in the system settings but i didn't find a function in the android-sdk to set this option!

THX

推荐答案

这是不属于公共SDK的一部分在所有&MDASH;该功能使用内部电话的API,你可以从<一见href=\"http://www.google.com/$c$csearch/p?hl=en#r4Q5vzOJY9U/src/com/android/phone/Settings.java&l=95\"相对=nofollow>设置应用程序的源代码code 。

This isn't part of the public SDK at all — the functionality uses internal telephony APIs, as you can see from the source code of the Settings application.

这是整个设备的通用设置,无论如何,所以用户肯定不会是最好的高兴您来回切换2G和3G之间的事打破了他们的数据连接。

This is a universal setting for the entire device anyway, so surely users wouldn't be best pleased about you breaking their data connectivity by switching back and forth between 2G and 3G anyway.

这篇关于一套系统设置&QUOT;仅使用2G网络&QUOT;编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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