투케이2K

456. (android/java) [유틸 파일] goWirelessIntent : Settings WIRELESS 연결 설정 인텐트 이동 수행 본문

Android

456. (android/java) [유틸 파일] goWirelessIntent : Settings WIRELESS 연결 설정 인텐트 이동 수행

투케이2K 2023. 1. 13. 21:28
반응형

[개발 환경 설정]

개발 툴 : AndroidStudio

 

[소스 코드]

 

    // TODO [SEARCH FAST] : [goWirelessIntent] : 연결 설정 인텐트 이동
    public static void goWirelessIntent(Context mContext){

        /**
         * // -----------------------------------------
         * [goWirelessIntent 메소드 설명]
         * // -----------------------------------------
         * 1. 연결 설정 인텐트 이동 메소드
         * // -----------------------------------------
         * 2. 호출 방법 : C_Intent.goWirelessIntent(A_Intro.this);
         * // -----------------------------------------
         * */

        try {
            Log.i("---","---");
            Log.d("//===========//","================================================");
            Log.i("","\n"+"[C_Intent >> goWirelessIntent() :: 연결 설정 인텐트 이동 실시]");
            Log.d("//===========//","================================================");
            Log.i("---","---");

            // [인텐트 이동 실시]
            Intent intent= new Intent(Settings.ACTION_WIRELESS_SETTINGS);
            intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
            mContext.startActivity(intent);
        }
        catch (Exception e){
            e.printStackTrace();
        }
    }

 

반응형
Comments