Java Code Examples for android.provider.Settings#ACTION_WIRELESS_SETTINGS
The following examples show how to use
android.provider.Settings#ACTION_WIRELESS_SETTINGS .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FragmentOptionsConnection.java From FairEmail with GNU General Public License v3.0 | 4 votes |
private static Intent getIntentConnectivity() { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) return new Intent(Settings.ACTION_WIRELESS_SETTINGS); else return new Intent(Settings.Panel.ACTION_INTERNET_CONNECTIVITY); }
Example 2
Source File: NewsChannelFragment.java From NewsMe with Apache License 2.0 | 4 votes |
/** * 打开网络设置 */ private void openNetSetting() { Intent intent = new Intent(Settings.ACTION_WIRELESS_SETTINGS); startActivity(intent); }
Example 3
Source File: IntentHelper.java From JianDanRxJava with Apache License 2.0 | 4 votes |
public static void toSettingActivity(Context context) { Intent intent = new Intent( Settings.ACTION_WIRELESS_SETTINGS); context.startActivity(intent); }