Notice
Recent Posts
Recent Comments
Link
투케이2K
15. (AndroidStudio/android/java) 애플리케이션 정보 창 및 설정 창 이동 실시 (Intent Settings) 본문
Android
15. (AndroidStudio/android/java) 애플리케이션 정보 창 및 설정 창 이동 실시 (Intent Settings)
투케이2K 2021. 1. 21. 14:58/* =========================== */
[ 개발 환경 설정 ]
개발 툴 : AndroidStudio
개발 언어 : java
/* =========================== */
/* =========================== */
[소스 코드]
/** ==== [애플리케이션 정보 창 이동하기] ==== */
Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
Uri uri = Uri.fromParts("package", getPackageName(), null);
intent.setData(uri);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [기본 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [와이파이 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_WIFI_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [전체 앱 목록 확인 및 정보 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_APPLICATION_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [블루투스 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_BLUETOOTH_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [날짜 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_DATE_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [디스플레이 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_DISPLAY_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [사운드 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_SOUND_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [접근성 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [비행기모드 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_AIRPLANE_MODE_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [내부 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_INTERNAL_STORAGE_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [잠금 및 보안 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_SECURITY_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [NFC 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_NFC_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [휴대전화 정보 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_DEVICE_INFO_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [절전 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_BATTERY_SAVER_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/** ==== [언어 설정 창 이동하기] ==== */
Intent intent= new Intent(Settings.ACTION_LOCALE_SETTINGS);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
startActivity(intent);
overridePendingTransition(0,0);
/* =========================== */
반응형
'Android' 카테고리의 다른 글
Comments