반응형
사진 저장 후 바로 보여지지가 않음..
해당 브로드캐스트를 호출 함으로써 갤러리에 업데이트를 할 수 있다.
https://shinyongchul.tistory.com/91
ACTION_MEDIA_SCANNER_SCAN_FILE -> deprecated
이미지 저장 후 캘린더에 추가 하는 작업인데 아래 코드는 API 29 부터 사용할 수 없음. Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE).also { mediaScanIntent -> mediaScanIntent.data = Uri.fromFile(file) sendBroadcast(mediaScanInten
shinyongchul.tistory.com
반응형
'IT 이야기 > 2022_Android 이것저것' 카테고리의 다른 글
retrofit2 Get Header 추가. (0) | 2022.05.10 |
---|---|
AlertDialog.Builder Text 조절 (0) | 2022.04.14 |
@SuppressLint("SetTextI18n") (0) | 2022.03.16 |
Caused by: java.lang.Exception: No native library is found for os.name=Mac and os.arch=aarch64. path=/org/sqlite/native/Mac/aarch64 (0) | 2022.03.16 |
android gradle & hilt 설정.. (0) | 2022.02.11 |