2013-01-15 21 views
0

我正在開發一個需要USB綁定的應用程序。以編程方式啓用USB綁定Android無需用戶交互

我使用下面的代碼這樣做

Intent tetherSettings = new Intent(); 
     tetherSettings.setClassName("com.android.settings", "com.android.settings.TetherSettings"); 
     startActivity(tetherSettings); 

但該代碼打開網絡共享設置,使用戶可以啓用通過點擊USB綁定。是否有可能在沒有任何用戶交互的情況下啓用網絡共享?

回答

1

不,Android非常安全,並且不會在沒有用戶交互的情況下啓用此設置。

相關問題