【问题标题】:how to active wifi and 3G from my application [closed]如何从我的应用程序中激活 wifi 和 3G [关闭]
【发布时间】:2013-05-14 13:18:09
【问题描述】:

我想在我的应用程序中添加一些配置。 我想让用户有可能从同一个应用程序中激活wifi3G,请告诉我应该怎么做。谢谢

【问题讨论】:

    标签: android android-wifi


    【解决方案1】:

    点击这些链接

    for Wifi 1 Wifi 2

    For 3G2

    For 3G2

    更多链接wifi 3 3g 3

    希望对您有所帮助。

    【讨论】:

      【解决方案2】:

      获取 wifi 配置使用:

      Intent intent = new Intent(Settings.ACTION_WIFI_SETTINGS);
      startActivity(intent);
      

      不要忘记在 Manifest 中添加以下行

      <uses-permission android:name="android.permission.INTERNET"/>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-10-03
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多