SIVAKUMAR.J
SIVAKUMAR.J

Reputation: 4354

How to make the USB tethering through Android application?

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?

Upvotes: 2

Views: 676

Answers (3)

Daniel
Daniel

Reputation: 1425

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

Upvotes: 0

SIVAKUMAR.J
SIVAKUMAR.J

Reputation: 4354


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.

Upvotes: 1

Manoj Kumar
Manoj Kumar

Reputation: 1520

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 :(

Upvotes: 1

Related Questions