Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的应用程序中添加一些配置。我想让用户有可能激活wifi或3G来自同一个应用程序,请告诉我我应该做什么。谢谢
wifi
3G
按照这些链接
用于无线网络 1 无线网络 2
对于 3G2
更多关于他们的链接wifi 3 3g 3
我希望会有所帮助。
获取 wifi 配置使用:
Intent intent = new Intent(Settings.ACTION_WIFI_SETTINGS); startActivity(intent);
不要忘记在清单中添加以下行
<uses-permission android:name="android.permission.INTERNET"/>