Android調用系統設置界面

//根據包名
Intent intent = new Intent("/");
ComponentName cm = new
ComponentName("com.android.settings","com.android.settings.Settings$DeviceInfoSettingsActivity");
intent.setComponent(cm);
intent.setAction("android.intent.action.VIEW");
mContext.startActivity( intent );
*** 通過系統設置ACTION名稱跳轉 ***

//打開系統設置界面
Intent intent = new Intent(Settings.ACTION_SETTINGS);
startActivity(intent);

// 跳轉系統的輔助功能界面
Intent intent = new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
startActivity(intent);

// 顯示添加帳戶創建一個新的帳戶屏幕。
Intent intent = new Intent(Settings.ACTION_ADD_ACCOUNT);
startActivity(intent);

// 飛行模式,無線網和網絡設置界面
Intent intent = new Intent(Settings.ACTION_AIRPLANE_MODE_SETTINGS); startActivity(intent);
或者:
Intent intent = new Intent(Settings.ACTION_WIFI_SETTINGS);
startActivity(intent);

// 跳轉 APN設置界面
Intent intent = new Intent(Settings.ACTION_APN_SETTINGS);
startActivity(intent);

// 根據包名跳轉到系統自帶的應用程序信息界面
Uri packageURI = Uri.parse("package:" + "com.tencent.WBlog");
Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,packageURI);
startActivity(intent);

// 跳轉開發人員選項界面
Intent intent = new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);
startActivity(intent);

// 跳轉應用程序列表界面
Intent intent = new Intent(Settings.ACTION_APPLICATION_SETTINGS);
startActivity(intent);
或者【所有的】:
Intent intent = new Intent(Settings.ACTION_MANAGE_ALL_APPLICATIONS_SETTINGS);
startActivity(intent);
或者【已安裝的】:
Intent intent = new Intent(Settings.ACTION_MANAGE_APPLICATIONS_SETTINGS);
startActivity(intent);

// 跳轉系統的藍牙設置界面
Intent intent = new Intent(Settings.ACTION_BLUETOOTH_SETTINGS);
startActivity(intent);

// 跳轉到移動網絡設置界面
Intent intent = new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);
startActivity(intent);

// 跳轉日期時間設置界面
Intent intent = new Intent(Settings.ACTION_DATA_ROAMING_SETTINGS);
startActivity(intent);

// 跳轉手機狀態界面
Intent intent = new Intent(Settings.ACTION_DEVICE_INFO_SETTINGS);
startActivity(intent);

// 跳轉手機顯示界面
Intent intent = new Intent(Settings.ACTION_DISPLAY_SETTINGS);
startActivity(intent);

// 跳轉手機投屏/投射【API 17及以上】
Intent intent = new Intent(Settings.ACTION_CAST_SETTINGS);
startActivity(intent);

// 跳轉語言和輸入設備
Intent intent = new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS);
startActivity(intent);

// 跳轉 語言選擇界面 【多國語言選擇】【API 11及以上】
Intent intent = new Intent(Settings.ACTION_INPUT_METHOD_SUBTYPE_SETTINGS);
startActivity(intent);

// 跳轉存儲設置界面【內部存儲】
Intent intent = new Intent(Settings.ACTION_INTERNAL_STORAGE_SETTINGS);
startActivity(intent);

// 跳轉 存儲設置 【記憶卡存儲】
Intent intent = new Intent(Settings.ACTION_MEMORY_CARD_SETTINGS);
startActivity(intent);

// 跳轉語言選擇界面【僅有English 和 中文兩種選擇】
Intent intent = new Intent(Settings.ACTION_LOCALE_SETTINGS);
startActivity(intent);

// 跳轉位置服務界面【管理已安裝的應用程序。】
Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
startActivity(intent);

// 跳轉到 顯示設置選擇網絡運營商。
Intent intent = new Intent(Settings.ACTION_NETWORK_OPERATOR_SETTINGS);
startActivity(intent);

// 顯示NFC共享設置。 【API 14及以上】
Intent intent = new Intent(Settings.ACTION_NFCSHARING_SETTINGS);
startActivity(intent);

// 顯示NFC設置。這顯示了用戶界面,允許NFC打開或關閉。 【API 16及以上】
Intent intent = new Intent(Settings.ACTION_NFC_SETTINGS);
startActivity(intent);

// 跳轉到備份和重置界面
Intent intent = new Intent(Settings.ACTION_PRIVACY_SETTINGS);
startActivity(intent);

// 跳轉快速啓動設置界面
Intent intent = new Intent(Settings.ACTION_QUICK_LAUNCH_SETTINGS);
startActivity(intent);

// 跳轉到 搜索設置界面
Intent intent = new Intent(Settings.ACTION_SEARCH_SETTINGS);
startActivity(intent);

// 跳轉到安全設置界面
Intent intent = new Intent(Settings.ACTION_SECURITY_SETTINGS);
startActivity(intent);

// 跳轉到設置界面
Intent intent = new Intent(Settings.ACTION_SETTINGS);
startActivity(intent);

// 跳轉到聲音設置界面
Intent intent = new Intent(Settings.ACTION_SOUND_SETTINGS);
startActivity(intent);

// 跳轉賬戶同步界面
Intent intent = new Intent(Settings.ACTION_SYNC_SETTINGS);
startActivity(intent);

// 跳轉用戶字典界面
Intent intent = new Intent(Settings.ACTION_USER_DICTIONARY_SETTINGS);
startActivity(intent);

// 跳轉到IP設定界面
Intent intent = new Intent(Settings.ACTION_WIFI_IP_SETTINGS);
startActivity(intent);

// 跳轉Wifi列表設置
Intent intent = new Intent(Settings.ACTION_WIFI_SETTINGS);
startActivity(intent);



作者:KaiBo_Zhang
鏈接:https://www.jianshu.com/p/7145c2544ef4
來源:簡書
簡書著作權歸作者所有,任何形式的轉載都請聯繫作者獲得授權並註明出處。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章