fire-fly3
fire-fly3

Reputation: 127

How to start "settings" application?

When the user running my application, I want my application forward the user to the settings -> location & security -> Use wireless networks. How am I going to achieve that?

Upvotes: 1

Views: 478

Answers (2)

sathish
sathish

Reputation: 21

Try this,

startActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));

Upvotes: 2

ρяσѕρєя K
ρяσѕρєя K

Reputation: 132972

Start Wireless Settings as:

Intent intent=new Intent(Settings.ACTION_WIRELESS_SETTINGS);
ComponentName cName = new ComponentName("com.android.settings","com.android.settings.WirelessSettings");
intent.setComponent(cName);
startActivity(intent);

Upvotes: 2

Related Questions