How to make launch other applications. When the user clicks on, say, the button and the application opens, such as "settings"?
- 3You should read about the mechanism of intentions (Intents) in Android. You can not only the "Settings" open;) - AseN
- on Habré there is a good little article habrahabr.ru/post/131041 - dubok79
|
2 answers
To start the activity and get the result from it (0 - response ID):
startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS), 0);
For normal start of the necessary activity:
startActivity(new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS));
|
Offline Settings Window:
startActivity(new Intent(android.provider.Settings.ACTION_AIRPLANE_MODE_SETTINGS));
|