tethering

Create Wifi Hotspot Configuration in android

为君一笑 提交于 2019-11-26 19:46:57
问题 I am using android 4.1.1 ... I am making an application that allows the user to make his own network using Wifi Hotspot and then the clients can connect to it and share data. I have successfully created the Wifi hotspot in android but I cannot configure it for the purpose. Is there any way to configure Wifi Hotspot on android through coding ?? 回答1: This answer maybe outdated! if(wifiManager.isWifiEnabled()) { wifiManager.setWifiEnabled(false); } WifiConfiguration netConfig = new

How to check Bluetooth tethering status programmatically in Android

北城以北 提交于 2019-11-26 17:07:42
问题 Is there any way to find out bluetooth tethering is enabled or disabled programmatically in Android 2.3+(any version after 2.3+)? I am not asking to enable/disable it, but only to know if it is enabled currently or not. 回答1: It turns out that BluetoothPan (Personal Area Networking) is the keyword for tethering. I pored over the API documentation and Android source code, but the brief examples in the comments were misleading. This poster provided an example but I had trouble with it initially:

Android 2.3 wifi hotspot API

痴心易碎 提交于 2019-11-26 08:01:44
问题 What is the API call I need to make in Android 2.2 (Froyo) to create a Wifi hotspot (as seen in the Tethering and Portable Hotspot settings item). 回答1: There is no official API, but you can use reflection to handle it. I know some say, it's not recommended, however imho I say, screw it if Google doesn't want to provide an API for whatever reason. Below is the code of an activity I used in my application, where the user can enable/disable the Wifi AP. When you enable Wifi AP, usually the