투케이2K

498. (kotlin/코틀린) [유틸 파일] goMemoryCardStorageIntent : 메모리 카드 저장 공간 인텐트 이동 본문

Kotlin

498. (kotlin/코틀린) [유틸 파일] goMemoryCardStorageIntent : 메모리 카드 저장 공간 인텐트 이동

투케이2K 2024. 5. 2. 20:15
반응형

[개발 환경 설정]

개발 툴 : AndroidStudio

개발 언어 : Kotlin

 

[소스 코드]

 

        // -----------------------------------------------------------------------------------------
        // TODO [SEARCH FAST] : [goMemoryCardStorageIntent] : 메모리 카드 저장 공간 인텐트 이동
        // -----------------------------------------------------------------------------------------
        fun goMemoryCardStorageIntent(mContext: Context) {

            /**
             * // -----------------------------------------
             * [goMemoryCardStorageIntent 메소드 설명]
             * // -----------------------------------------
             * 1. 메모리 카드 저장 공간 인텐트 이동
             * // -----------------------------------------
             * 2. 호출 방법 : C_Intent.goMemoryCardStorageIntent(A_Intro@this)
             * // -----------------------------------------
             */

            try {
                // ===============================================================
                S_Log._F_(mContext, "메모리 카드 저장 공간 인텐트 이동 실시", null)
                // ===============================================================

                // [인텐트 이동]
                val intent = Intent(Settings.ACTION_MEMORY_CARD_SETTINGS)
                intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION)
                mContext.startActivity(intent)

            } catch (e: Exception) {
                S_Log._printStackTrace_(mContext, S_FinalMsg.LOG_BUG_STATE, null, e)
            }
        }

 

반응형
Comments