How to disable USB tethering in android

by satish kuma s,n. » Fri, 20 May 2011 09:30:38 GMT


Sponsored Links
 Hi all,

Can you please tell me how we can disable the USB tethering in
android.

Regards
Satish

-- 



Re: How to disable USB tethering in android

by Mark Murphy » Fri, 20 May 2011 18:07:27 GMT


 


This is not possible from an SDK application, sorry.

If your interest is in creating custom firmware that has USB tethering
disabled, please visit  http://source.android.com  and use the support
resources found there.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/books 

-- 


Sponsored Links


Other Threads

1. skype apps

RR, apakah ada yang pernah coba skype untuk android yg ada di pasar malam?
Saya coba kok katanya no telepon tidak terdeteksi.

Terima kasih.

-arman-

-- 
===============
"

2. Questions about ThreadSafeHttpClient connection

We are creating a ThreadSafeClient for doing the network IO in our
application using the following code:

DefaultHttpClient sClient;
final int MAX_TOTAL_CONNECTIONS = 50;
HttpParams sDefaultHttpParams = new BasicHttpParams();

ConnManagerParams.setMaxTotalConnections(sDefaultHttpParams,
MAX_TOTAL_CONNECTIONS);

sDefaultHttpParams.setParameter(CoreProtocolPNames.PROTOCOL_VERSION,
                HttpVersion.HTTP_1_1);
sDefaultHttpParams.setParameter(
                CoreProtocolPNames.HTTP_CONTENT_CHARSET, HTTP.UTF_8);
sDefaultHttpParams.setBooleanParameter(
                CoreConnectionPNames.STALE_CONNECTION_CHECK, true);
sDefaultHttpParams.setIntParameter(
                CoreConnectionPNames.CONNECTION_TIMEOUT, 40 * 1000);
sDefaultHttpParams.setIntParameter(CoreConnectionPNames.SO_TIMEOUT,
                80 * 1000);
sDefaultHttpParams.setIntParameter(
                CoreConnectionPNames.SOCKET_BUFFER_SIZE, 8192);

HttpClientParams.setRedirecting(sDefaultHttpParams, false);
SchemeRegistry schemeRegistry = new SchemeRegistry();
schemeRegistry.register(new Scheme("http", PlainSocketFactory
                .getSocketFactory(), 80));
schemeRegistry.register(new Scheme("https", SSLSocketFactory
                .getSocketFactory(), 443));

ClientConnectionManager manager = new ThreadSafeClientConnManager(
                sDefaultHttpParams, schemeRegistry);
sClient = new DefaultHttpClient(manager, sDefaultHttpParams);

Multiple threads call execute on sClient and it seems that sometimes,
some of the network connections stall. I read the document and found/
assumed that default value for MAX connections was set to 20. So, I
raised it to 50.

Questions:
1. What should be the ideal/recommended connection limit? I think 20
is enough.
2. Usually, developer download the byte stream and then parse
it(mostly XML content). Do they have to explicitly close the
InputStream to release the connection?

Please help.

-- 

3. OOT --- WTA Bisa WTB: Kaos Android Berkerah Ukuran XXXL atau XXXXL

4. location updates verizon

5. [WTA/WTB] leather case ACER LIQUID E

6. (Wta): market tdk ada ndrive,sygic

7. Root SGS yg sudah Froyo