투케이2K

766. (Android/Java) [유틸 파일] goDeveloperSettingIntent : 개발자 모드 설정 화면 이동 본문

Android

766. (Android/Java) [유틸 파일] goDeveloperSettingIntent : 개발자 모드 설정 화면 이동

투케이2K 2024. 4. 9. 20:11
반응형

[개발 환경 설정]

개발 툴 : AndroidStudio

 

[소스 코드]

 

    // -----------------------------------------------------------------------------------------
    // TODO [SEARCH FAST] : [goDeveloperSettingIntent] : 개발자 모드 설정 화면 이동
    // -----------------------------------------------------------------------------------------
    public static void goDeveloperSettingIntent(Context mContext){

        /**
         * // -----------------------------------------
         * [goDeveloperSettingIntent 메소드 설명]
         * // -----------------------------------------
         * 1. 개발자 모드 설정 화면 이동
         * // -----------------------------------------
         * 2. 호출 방법 : C_Intent.goDeveloperSettingIntent(A_Intro.this);
         * // -----------------------------------------
         * */

        try {
            // ===============================================================
            S_Log._F_(mContext, "개발자 모드 설정 화면 이동 실시", null);
            // ===============================================================

            // [인텐트 이동]
            Intent intent = new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);
            intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
            mContext.startActivity(intent);
            
        }
        catch (Exception e){
            S_Log._printStackTrace_(mContext, S_FinalMsg.LOG_BUG_STATE, null, e);
        }
    }

 

반응형
Comments