본문 바로가기

전체 글236

[Android] Memory Cache와 Disk Cache Memory vs DiskMemory 는 컴퓨터 내부에서 현재 CPU 가 처리하고 있는 내용을 저장하고 있는 휘발성 장치로, 처리 속도가 빠르다.Disk 는 Memory 보다는 느리지만, 많은 양의 데이터를 전원이 꺼져도 사라지지 않고 영구적으로 보관할 수 있는 장치이다. [CS] CPU, 주기억장치(ROM, RAM(SRAM, DRAM), 보조기억장치(HDD, SDD)중앙 처리 장치 (Central Processing Unit, CPU)컴퓨터의 중앙에서 모든 데이터의 처리를 담당하는 장치, 컴퓨터의 두뇌컴퓨터의 속도는 CPU 의 성능이 가장 큰 영향을 미친다. 컴퓨터는 사용자의 명령을dev-baik.tistory.comMemory Cache애플리케이션 내에 존재하는 메모리에 비트맵을 캐싱하고, 필요할 때.. 2024. 11. 8.
[LeetCode][Kotlin] 567. Permutation in String 567. Permutation in StringGiven two strings s1 and s2, return true if s2 contains a permutation of s1, or false otherwise. In other words, return true if one of s1's permutations is the substring of s2.두 개의 문자열 s1과 s2가 주어졌을 때, s2에 s1의 순열 이 포함되어 있으면 true를 반환하고, 그렇지 않으면 false를 반환합니다. 즉, s1의 순열 중 하나가 s2의 하위 문자열이면 true를 반환합니다.순열은 문자열의 모든 문자를 재배열하는 것입니다. Example 1:Input: s1 = "ab", s2 = "eidbaooo"Out.. 2024. 11. 7.
[Android] SharedPreference vs Datastore SharedPreference초기화할 때 디스크 IO 에서 UI 스레드를 차단한다.private val sortOrder: SortOrder get() { val order = sharedPreferences.getString(SORT_ORDER_KEY, SortOrder.NONE.name) return SortOrder.valueOf(order ?: SortOrder.NONE.name) }데이터를 저장하고, 직접 수정 가능한 MutableStateFlow 를 메모리에 유지하여 값이 변경될 때 알림을 받을 수 있다. 그러나 애플리케이션의 다른 위치에서 값이 수정될 경우, 이러한 변경 사항에 대한 알림을 받지 못한다.한 메서드가 완료되기 전에 다른 한 메서드가 호출되면 .. 2024. 11. 5.
[Compose] TextField에 오류 메시지 표시하기 https://stackoverflow.com/questions/68573228/how-to-show-error-message-in-outlinedtextfield-in-jetpack-compose How to show error message in OutlinedTextField in Jetpack ComposeI need to show error message in OutlinedTextField and I don't find any documentation about how to do it. I found several ways in tutorials, for example to create custom input field with hint or cre...stackoverflow.com 2024. 11. 3.
[Compose] TextField password 보이기/숨기기 https://alitalhacoban.medium.com/show-hide-password-jetpack-compose-d0c4abac568f Show-Hide Password in TextField | Jetpack ComposeFirst, I’ll create a composable function named ShowHidePasswordTextField which is annotated with @Composable keyword like below. It’ll…alitalhacoban.medium.com@Composablefun ShowHidePasswordTextField() { var password by remember { mutableStateOf(value = "") } va.. 2024. 11. 3.
[Android][Kotlin] 구글 로그인 순서대로 사이트에 설명된 내용을 잘 읽고 따라 하시면 잘 진행될 것입니다. 1. Firebase Console 을 사용하여 Firebase 추가 (1단계, 2단계) Android 프로젝트에 Firebase 추가  |  Firebase for Android이 페이지는 Cloud Translation API를 통해 번역되었습니다. 의견 보내기 Android 프로젝트에 Firebase 추가 컬렉션을 사용해 정리하기 내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요. 기본 요건 Afirebase.google.com디버그 서명 인증서 SHA-1 : 우측 상단 Gradle(코끼리) → Execute Gradle Task → gradle signingReport> Task :app:signingReportVaria.. 2024. 11. 1.
unresolved reference : BuildConfig [ 해결 ]android.defaults.buildfeatures.buildconfig=true [ 참고 ]https://stackoverflow.com/questions/60942575/unresolved-reference-buildconfig-in-kotlin unresolved reference : BuildConfig in KotlinSo I started a new android application, here is my Android Studio info Android Studio 3.6.1 Build #AI-192.7142.36.36.6241897, built on February 27, 2020 Runtime version: 1.8.0_212-release-1586-b04...stackov.. 2024. 11. 1.