Java Code Examples for android.provider.Settings#ACTION_WIRELESS_SETTINGS

The following examples show how to use android.provider.Settings#ACTION_WIRELESS_SETTINGS . These examples are extracted from open source projects. 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
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 Project: NewsMe   File: NewsChannelFragment.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * 打开网络设置
 */
private void openNetSetting() {
    Intent intent = new Intent(Settings.ACTION_WIRELESS_SETTINGS);
    startActivity(intent);
}
 
Example 3
Source Project: JianDanRxJava   File: IntentHelper.java    License: Apache License 2.0 4 votes vote down vote up
public static void toSettingActivity(Context context) {
    Intent intent = new Intent(
            Settings.ACTION_WIRELESS_SETTINGS);
    context.startActivity(intent);
}