2

I am developing a application for Android for mobile and tablet. I want to make the USB tethering automatic.

In my application if a user clicks "USB sync" button then the tethering should become enabled automatically.


I am using Android version 2.3.3 and later.


It is possible or not?

Prof. Falken
  • 24,226
  • 19
  • 100
  • 173
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
  • 1
    Definitely Possible under some conditions. [This](http://stackoverflow.com/questions/7509924/detect-usb-tethering-on-android) might help you. But i'm not sure its possible on 3.0 or more :( – Manoj Kumar Aug 22 '12 at 06:20

3 Answers3

1

Just to put it as an answer :) Definitely Possible under some conditions. This might help you. But i'm not sure its possible on 3.0 or more :(

Community
  • 1
  • 1
Manoj Kumar
  • 1,510
  • 3
  • 20
  • 40
1


Automatic USB tithering is not possible some latest version of android .Android 3.0 and later the automatic USB tithering is not possible.
So if android version is less than 3.0 means so we use automatic usb tithering.
automatic usb tithering is very bad idea, It have many difficulties,disadvantages,etc.So nobody follow it.
Im also leave that automatic tithering.

SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
0

You should implement this: Don't have time to try though: https://android.googlesource.com/platform/packages/apps/Settings/+/master/src/com/android/settings/TetherSettings.java

Daniel
  • 1,287
  • 12
  • 12