有没有办法以编程方式打开/关闭Android中的移动数据“不使用反射”?谢谢。

最佳答案

Android不提供用于禁用移动数据的API方法。因此需要反射(reflection)以实现这一目标。
Here is a Stack Overflow thread that explains better

07-28 04:39