본문 바로가기

IT/Android

11/4 read post

728x90
반응형

1.

출처 : https://medium.com/proandroiddev/where-does-transactiontoolargeexception-come-from-if-i-didnt-do-anything-wrong-792843835d4f

제목 : Where does TransactionTooLargeException come from if I didn’t do anything wrong?

요약 : TransactionTooLargeException 이 발생하는 것에 대해서 설명합니다. 이 예외는 intent 에 너무 많은 data 를 담으려 할 때 발생하는데, pager 를 사용하는 경우 activity 가 stop 될 때 fragment 들이 복구 로직을 위해 저장 될 때 발생됩니다. 이 현상에 대해서 설명합니다.

 

2.

출처 : https://velog.io/@rkdals3912/xml%EA%B3%BC-Jetpack-Compose-%EA%B0%99%EC%9D%B4-%EC%93%B0%EA%B8%B0

제목 : xml과 Jetpack Compose 같이 쓰기

요약 : xml 과 compose 를 같이 사용하기 위해서는 xml 에 <androidx.compose.ui.platform.ComposeView> 를 추가한 뒤에 코드에서 setcontent 함수를 호출하여 compose와 xml 을 같이 사용하는 방법을 설명합니다.

 

3.

출처 : https://leveloper.tistory.com/219

제목 : [Kotlin] MutableSharedFlow의 tryEmit()이 실행되지 않을 때

요약 : sharedFlow 에 tryEmit 에 관해서 설명합니다. tryEmit 은 suspend 함수가 아니기 때문에 buffer 가 없으면 동작하지 않기 때문에 이럴때는 emit 을 사용하여야 하며 buffer 를 두기 위해서는 replay 또는 extraBufferCapacity 를 활용하여야 합니다. replay 는 구독 할때 replay 크기만큼 다시 내보낸다는 점을 유의하여야 합니다.

 

4.

출처 : https://medium.com/mobile-app-development-publication/android-lifecycle-interview-questions-that-some-got-wrong-926b39b19a61

제목 : 7 Android Lifecycle Interview Questions That Some Got Wrong

요약 : android lifecycle 과 관련된 7가지 잘못된 답변에 대해서 설명합니다. 프래그먼트 생성시 oncreate 에서 savedInstanceState  null check 를 하지 않으면 복구 시 fragment 가 중복으로 생성됩니다. 생성자에서 인자를 생성자에 넣어서는 안되며 viewModel 을 수동으로 생성하면 configuration Changed 에 대응이 되지 않습니다. liveData 는 activity or fargment lifecycle 에 따라 방출된 값을 제어하는 특수한 유형의 데이터입니다. fragment 가 add 가 아닌 replace 로 commit 되었을 때 ondestory 되지 않고 destoryView 까지만 호출됩니다. 

 

5.

출처 : https://medium.com/@ngengesenior/extracting-colors-from-an-image-using-the-palette-api-android-ac319aaadac6

제목 : Extracting Colors from an Image Using the Palette API Android

요약 : google 의 palette api 에 대해서 설명합니다. pallete api 는 bitmap 에서 색을 추출하는 api 입니다.

728x90
반응형