Skip to content Skip to sidebar Skip to footer

Show Only Wireless System Settings On Android 3

This code works perfectly: startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)); But Android 3 show also another preferences. How do I can show to user only wireless settings?

Solution 1:

You can show only the wireless settings fragment by adding the following extras to your intent

Intenti=newIntent(Settings.ACTION_WIRELESS_SETTINGS);
i.putExtra(":android:show_fragment", "com.android.settings.wifi.WifiSettings");
i.putExtra(":android:no_headers", true);

startActivity(i);

Solution 2:

But Android 3 show also another preferences.

The activity you are starting is part of the Settings application, which you did not write. The Settings application can display whatever it wants. In the case of tablets, the Settings application will generally show all preferences, with the one tied to your Intent action be the currently-selected one.

How do I can show to user only wireless settings?

Write your own firmware with your own implementation of the Settings app that does what you want, and install that firmware on the user's device.

Solution 3:

You can access only Wifi settings by using this

Intenti=newIntent(WifiManager.ACTION_PICK_WIFI_NETWORK);
startActivity(i);

Extra options(for back and next buttons)

Intenti=newIntent(WifiManager.ACTION_PICK_WIFI_NETWORK);
i.putExtra("extra_prefs_show_button_bar", true);
startActivity(i);

Post a Comment for "Show Only Wireless System Settings On Android 3"