Quote:
Originally Posted by jmdsdf
Here's the code:
public class tethersettings extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
// load tether setting dialog
Intent intent = new Intent();
intent.setAction(Intent.ACTION_MAIN);
ComponentName com = new ComponentName("com.android.settings", "com.android.settings.TetherSettings");
intent.setComponent(com);
startActivity(intent);
// exit
finish();
// kill process
android.os.Process.killProcess(android.os.Process. myPid());
}
}
|
Hello jmdsdf, do you know if something similar can be done but to access directly Applications Management? You know, the screen where you can move apps to SD, force stop them and so on. I'm fed up of going to settings just to end an application. I've found that Advanced Task Manager doesn't kill tasks properly in Froyo, at least for me.
Sorry for the off-topic, didn't want to open a new thread just because of this.
|