android – How do I launch another application?

Question:

How to launch other applications. When the user clicks on, say, a button and an application opens, such as "settings"?

Answer:

To start an activity and get a result from it (0 – response identifier):

startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS), 0);

To run the desired activity normally:

startActivity(new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS));
Scroll to Top