๋น ๊ตฌ๋ฉ ์ฑ์ฐ๊ธฐ (342) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [Android][WebView] cannot find symbol method setAppCacheEnabled(boolean) ์์. ์ด์ ํ์ธ target version์ด 31์ธ ํ๋ก์ ํธ์ target version์ 33์ผ๋ก ์์ ํ๋ค. ๊ทธ ํ cannot find symbol method setAppCacheEnabled(boolean) ๋ผ๋ ๋น๋ ์๋ฌ๋ฅผ ํ์ธํ๋ค. ์ดํด๋ณด๋ ๊ธฐ์กด์ ์ ์ฐ๋ ์ฝ๋๋ฅผ IDE์์ ํ์์๋ ๋ค๋ฅด๊ฒ ๋ณด์ฌ์ฃผ๊ณ ์๋ค๋ ๊ฒ์ ํ์ธํ๋ค. ๋ด๋ถ ์ฝ๋ ํ์ธ WetSettings์ ๋ด๋ถ ์ฝ๋๋ฅผ ํ์ธํ๋ค. target version์ด 31์ผ ๋์๋ Control ํค + ๋ง์ฐ์ค ํด๋ฆญ์ผ๋ก ๋ด๋ถ ์ฝ๋๋ก์ ์ด๋์ด ๊ฐ๋ฅํ๋๋ฐ, target version์ด 33์ผ ๋์๋ ์ด ๋ฐฉ๋ฒ์ผ๋ก ๋ด๋ถ ์ฝ๋๋ก์ ์ด๋์ด ๋ถ๊ฐํ๋ค. WebSettings ํด๋์ค ์ฝ๋๋ฅผ ์ฐพ์๋์ ์ target version์ด 33์ผ ๋์ ํด๋น ์ฝ๋์ ๋ด๋ถ ์ฝ๋๋ฅผ.. [Java] Collapse 'catch' blocks ์์ Lint ๊ฒฝ๊ณ ์ ๋์ํ๋ฉด์ ๊ธฐ์กด try - catch ๋ฌธ์์ ๋ค๋ฅธ exception๋ catch ๋ฌธ์ ๋ฃ๊ฒ ๋์๋ค. ๊ทธ๋ฐ๋ฐ IDE์์ Collapse 'catch' blocks ๋ผ๋ฉฐ catch ๋ฌธ์ ๋ฌด์ธ๊ฐ ๋ณ๊ฒฝ์ด ๊ฐ๋ฅํ๋ค๋ ๊ฒ์ ์๋ ค์คฌ๋ค. IDE์ ์์ ํ ์๋ฌ ์ฒ๋ฆฌ ๋ก์ง์ด ๊ฐ์ ๋ catch ๋ฌธ ๋ธ๋ญ์ ํ๋๋ก ์ธ ์ ์๋ค๋ ๊ฑธ ์์๋ค. Collapse ์๋ฏธ Collapse 'catch' blocks์ 'collapse' ์๋ฏธ๋ฅผ ์ฐพ์๋ดค๋ค. https://en.dict.naver.com/#/entry/enko/e0708beb85ad4906a123396e1c971bee ๋ค์ด๋ฒ ์์ด์ฌ์ ๋ฏธ๊ตญ/์๊ตญ์ ๋ฐ์, ์ฌ๋ฌ ์ข ๋ฅ์ ์ถํ์ฌ ์ฌ์ ๋ปํ์ด, ํ๋ถํ ์ ์์ด/๋ฐ์์ด, ๋ํ์ฌ์ ์ค์ ๊ธฐ๋ฅ, ์์ธ๊ฒ์ ๊ธฐ๋ฅ, ์์ด.. [Android][WebView] ์ฑ๊ณผ WebVeiw ๊ฐ ํต์ https://developer.android.com/develop/ui/views/layout/webapps/webview Build web apps in WebView | Android Developers If you want to deliver a web application (or just a web page) as a part of a client application, you can do it using WebView. The WebView class is an extension of Android's View class that allows you to display web pages as a part of your activity layout. developer.android.com 1) .. [Android][Toast] Can't toast on a thread that has not called Looper.prepare() Crashlytics์์ ์ด์ ํด๋น ๋ฐ๊ฒฌ ๋ง์ด๋ ์ด์๋ก ๋ฑ์ฅํ๊ณ ์๋ค. (๊ณ ํ๋จํ๊ณ ์๋ค. ์ ๋ฐ ๋ง์ด๋ ์ด์์ฌ๋ผ...) ์ด์์ ๋ํ ์ค๋ช ๋ค https://stackoverflow.com/a/3875204 Can't create handler inside thread that has not called Looper.prepare() What does the following exception mean; how can I fix it? This is the code: Toast toast = Toast.makeText(mContext, "Something", Toast.LENGTH_SHORT); This is the exception: java.lang.RuntimeExce... stackoverflow... [Android][View] ๋ทฐ๊ฐ layout์ ์งํํ๋ ์ค์ requestLayout()์ ํธ์ถํ๋ฉด ์๋๋ค. https://www.youtube.com/watch?v=HbAeTGoKG6k ๋ฌด๋ ค 13๋ ์ ์ ์์. ๊ทธ๋ฌ๋ ์ง๊ธ๋ ์ค์ํ ๊ธฐ๋ณธ ์ง์์ผ๋ก ์์๋ ํ์๊ฐ ์๋ค๊ณ ์๊ฐํ๋ค. ์์ฝ ์งํํ ๋ฐ๋ชจ (์ด๋ ๊ฒ ํ๋ฉด ์๋ฉ๋๋ค. ๋์ ์์) 1. LinearLayout ์ ์์ํ Custom Layout์ด layout ๊ณผ์ ์ ์งํํ๋ ์ค์, ๊ทธ๋ฌ๋๊น onLayout()์ ํธ์ถํด ์คํํ๋ ์ค์ 2. ์๋ ๋ทฐ๋ฅผ add ํ๊ฑฐ๋(addView()) remove ํ๋ฉด(removeView()) 3. ๊ฒฐ๋ก : ์ด์๊ฐ ์๊ธด๋ค. > ์ผ์ข ์ ์ฌ๊ท๋ฌธ์ ๊ฐ ์๊ธด๋ค. layout ์ค : ์ผ๋ถ ํ์ ์งํฉ(์๋ ๋ทฐ๋ค)์ด๋ ์ ์ฒด ๋ทฐ ๊ณ์ธต ๊ตฌ์กฐ๋ฅผ ์ฌ๋ฐฐ์นํ๋ ์ค์ธ๋ฐ ์ด ํ์ด๋ฐ์ addView(), removeView() ํธ์ถ : ๋ ์ด์์ ์ ์ฒด์ ์ํฅ์.. [Android] ํ๋ฉด ์ ํ ์ ๋๋ฉ์ด์ ์์ ๋์์ด๋๊ฐ ์ฑ ์ ๋ฐ์ ์ผ๋ก ํ๋ฉด ์ ํ ์ ๋๋ฉ์ด์ ์ถ๊ฐ๋ฅผ ์์ฒญํ๋ค. ์๊ตฌ ์ฌํญ ์ฑ์ ํ๋ฉด ์ข ๋ฅ๋ ํฌ๊ฒ ๋๋ก ๋๋๋ค. ์๋จ ํด๋ฐ ๋ฒํผ ์ข ๋ฃ ๋ชจ์์ด ํ์ดํ(←)์ธ ๊ฒ๊ณผ ์์ค(X)์ธ ๊ฒ์ผ๋ก ๋๋๋ค. 1. ←ํ๋ฉด์ ์ง์ ํ ๋ ๊ฐ๋ ค์ง๋ ํ๋ฉด์ fade out ์ง์ ํ๋ ํ๋ฉด์ ์ค๋ฅธ์ชฝ์์ ์ผ์ชฝ์ผ๋ก ์ฌ๋ผ์ด๋ํ๋ฉฐ ์ง์ 2. ←ํ๋ฉด์ด ์ฌ๋ผ์ง๊ณ ์ด์ ํ๋ฉด์ผ๋ก ๋์๊ฐ ๋ ๋ฑ์ฅํ๋ ์ด์ ํ๋ฉด์ fade in ์ฌ๋ผ์ง๋ ํ๋ฉด์ ์ผ์ชฝ์ผ๋ก ์ค๋ฅธ์ชฝ์ผ๋ก ์ฌ๋ผ์ด๋ํ๋ฉฐ ์ฌ๋ผ์ง 3. X ํ๋ฉด์ ์ง์ ํ ๋ ๊ฐ๋ ค์ง๋ ํ๋ฉด์ fade out ์ง์ ํ๋ ํ๋ฉด์ ์๋์์ ์๋ก ์ฌ๋ผ์ด๋ํ๋ฉฐ ์ง์ 4. X ํ๋ฉด์ด ์ฌ๋ผ์ง๋ก ์ด์ ํ๋ฉด์ผ๋ก ๋์๊ฐ ๋ ๋ฑ์ฅํ๋ ์ด์ ํ๋ฉด์ fade in ์ง์ ํ๋ ํ๋ฉด์ ์์์ ์๋๋ก ์ฌ๋ผ์ด๋ํ๋ฉฐ ์ฌ๋ผ์ง ๊ณผ์ 1) ๋์์ด๋๊ฐ ์.. [Android][Dialog] cancel / dismiss ์ด์ ์ dialog cancel() ํธ์ถ ์ dismiss()๋ ํธ์ถ ๋๋ค๋ ๊ธ์ ์ผ๋ ๊ฑฐ ๊ฐ์๋ฐ. ์์ ํ๋ค dialog์ cancel๊ณผ dismiss์ ์ฐจ์ด๊ฐ ๋ ํท๊ฐ๋ ค์, ์ด๋ฒ์ ํ์คํ ๊ทธ ์ฐจ์ด๋ฅผ ์ธ์งํ๊ณ ๊ฐ๋ ค๊ณ ๊ธ์ ๋จ๊ธด๋ค. ๊ณต์ ๋ฌธ์๋ฅผ ๋ณด๊ณ ์ดํดํ๋ค. https://developer.android.com/develop/ui/views/components/dialogs#DismissingADialog Dialogs | Android Developers Dialogs Stay organized with collections Save and categorize content based on your preferences. A dialog is a small window that prompts the u.. [Android][Android 13][API Level 33] ๋ฐํ์ ์๋ฆผ ๊ถํ, ๊ทธ๋ฆฌ๊ณ ๊ธฐํ ๋ณ๊ฒฝ ์์. ์ด์ ๋ฐ๊ฒฌ Android 13 ๋จ๋ง์์ ํธ์๋ฅผ ๋ฐ๊ณ ์์คํ ์๋ฆผ์ ๋์ฐ์ง ๋ชปํ๋ ์ด์๊ฐ ์์์ ์๊ฒ ๋๋ค. ์์ธ ํ์ Android 13๋ถํฐ ์๋ก ์ค์น๋๋ ์ฑ๋ค์ ์๋ฆผ ์์ฑ ๊ถํ์ด ์๋ค๋ ๊ฒ์ ์์๋ค. ํด๋น ์ด์๋ ํ ์คํธ ๋จ๋ง์ด Android 13 ๋จ๋ง์, ํ ์คํธ ์ฑ์ด ์ ๊ท๋ก ์ค์น๋์๊ธฐ ๋๋ฌธ์ด์๋ค. Android 12๋ ๊ธฐ๋ณธ์ผ๋ก ์๋ฆผ ์์ฑ ๊ถํ์ด ์์ด์ ์ด๋ฐ ์ด์๋ฅผ ๋ง๋ ์ผ์ด ์์๋ค. ์ ๋ง ์ ์ค๋ช ํด์ฃผ์ ๊ธ https://codechacha.com/ko/android-13-notification-permission/ Android 13์์ Notification ๊ถํ ์์ฒญ, ์๋ฆผ ๋์ฐ๊ธฐ Android 13์ ๋ณ๊ฒฝ์ฌํญ์ผ๋ก, POST_NOTIFICATIONS ๊ถํ์ด ๋์ ๋์์ต๋๋ค. ์ฑ ๋์์ ์ด๋ค ์.. ์ด์ 1 ยทยทยท 28 29 30 31 32 33 34 ยทยทยท 43 ๋ค์