๐ฐ Android ๐ญ
-
[AOS] Android Studio Wildcard (*) Import ์ค์ 2022. 11. 6. 18:06
๐ค Wildcard import (cannot be auto-corrected)โ๏ธ ๐ค Wildcard import (cannot be auto-corrected)โโ๏ธ ๐ค Wildcard import (cannot be auto-corrected)โโโ๏ธ ๐ข๐ข๐ข๐ข ๐ถ Wildcard Import wildcard import๋ ๋์ผํ ํจํค์ง์์ ์ฌ๋ฌ class๋ฅผ importํด ์ฌ์ฉํ๊ฒ ๋๋ ๊ฒฝ์ฐ ํธ์๋ฅผ ์ํด wildcard ๋ฌธ์๋ฅผ ์ฌ์ฉํด ๋ช ์ํ๋ ๊ฒ์ ๋งํ๋ค. ์๋ฅผ ๋ค์ด ์๋์ ๊ฐ์ด ์ฌ๋ฌ ์ค์ import๋ฌธ์ ํ ์ค๋ก ๊ฐ๋จํ๊ฒ ๋ช ์ํ ์ ์๋๋ก ํ๋ ๊ธฐ๋ฅ์ ๋งํ๋ค. import java.util.list import java.util.arrays import java.util.arraylist ๐๐ป im..
-
[AOS] JDK ๋ฐ Gradle Version ์ค์ 2022. 10. 29. 17:16
๐ฑ ์ค์๋ฆฌ๋, ์ด ํ๋ก์ ํธ๋ ์กฐ๊ธ ์ค๋๋์ด์ ํ๊ฒฝ ์ค์ ์ด ํ์ํด์! ๋ต ํด๋ณด๊ฒ ์ต๋๋ค~! ๐ถ ๐ฑ JDK ๋ฒ์ ์ @#$% Gradle ๋ฒ์ ์ $%^* Gradle Plugin ๋ฒ์ ์ @$^* ... (์ด๋ ๊ฒ๊น์ง...???) ๋ค๋ต...!! ๐ฆ๐ฆ ๐ถ ์ค๋๋ ํ๋ก์ ํธ๋ฅผ ๋ฆฌํํ ๋ง ๋๋ ์ ๊ท ๊ธฐ๋ฅ์ ์ถ๊ฐํด์ผ ํ ๊ฒฝ์ฐ, ํด๋น ํ๊ฒฝ์ ๋ง์ถ์ด ์ค์ ํด์ผ ํ ๋๊ฐ ์๋ค. JDK Version ์ค์ * MAC OS ๊ธฐ์ค 1. Android Studio > Preferences... ๋ก ์ด๋ํ๋ค. 2. Build, Execution, Deployment > Build Tools > Gradle๋ก ์ด๋ํ๋ค. 3. ์ํ๋ JDK ๋ฒ์ ์ ๊ฐ์ง๊ณ ์ค๊ฑฐ๋ ๋ค์ด๋ฐ์ผ๋ฉด ๋๋ค. Gradle ๋ฐ Gradle Plugin Version ์ค์ * ..
-
[AOS] AAR to JAR2022. 10. 22. 15:33
๐ฑ ์ค์๋ฆฌ๋! ๋ผ์ด๋ธ๋ฌ๋ฆฌ aarํ์ผ ์ ์กํด๋๋ ธ์ต๋๋ค. ๋ต ๊ฐ์ฌํฉ๋๋ค~ (๋ผ์ด๋ธ๋ฌ๋ฆฌ import!) ๐ถ .... ๐ถ ....์ค๋ณต๋ ํด๋์ค ์ค๋ฅ๊ฐ ๋ฐ์ํ๋๋ฐ์..? ๐ถ ....์ ๊ธฐ์...? ๐ถ JAR ํ์ผ๊ณผ ๋ฌ๋ฆฌ AAR ํ์ผ์๋ JAR ํ์ผ ๋ฐ jniLibs ํด๋, assets ํด๋ ๋ฑ ๋ค๋ฅธ ๋ฆฌ์์ค ํ์ผ์ ํฌํจํ๊ณ ์๊ธฐ์ ์ค๋ณต๋ ํด๋์ค๋ก ์ธํด์ ์ค๋ฅ๊ฐ ๋ฐ์ํ๊ธฐ๋ ํ๋ค. ์ด ๊ฒฝ์ฐ์๋ AAR ํ์ผ์ JAR ํ์ผ๋ก ๋ณ๊ฒฝํ์ฌ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ด ์๋ค. ๐ก AAR๊ณผ JAR, ์ด ๋์ ์ฐจ์ด์ ์ JAR์ java ์์ค๋ง ํฌํจํ ์ ์์ง๋ง AAR์๋ ๋ ์ด์์, ์ด๋ฏธ์ง ๋ฑ ๊ฐ์ข resource๋ฅผ ๊ฐ์ด ๋ฃ์ ์ ์๋ ์ ์ด ์๋ค. ๋ฐ๋ผ์ AAR ํ์ผ์์ JAR ํ์ผ์ ์ถ์ถํด์ ์ฌ์ฉํ ๋ ๋ค๋ฅธ ํ์ํ resource๊ฐ ์๋์ง ํ์ธํด..
-
[AOS] Newsletters for Android Developer2022. 10. 8. 18:42
๋ชจ๋ฐ์ผ ๊ฐ๋ฐ ๊ธฐ์ ์ ๋์์์ด ๋ณํํ๊ณ ์์ผ๋ฉฐ ๋ํ os ๋ฒ์ ์ ๋ฐ๋ฅธ ๊ธฐ์ ๋ถ๊ธฐ์ฒ๋ฆฌ๊ฐ ํ์์ ์ด๊ธฐ ๋๋ฌธ์ ๊ธฐ์ ์ต์ ๋ํฅ์ ํ์ ํ๊ณ ์๋ ๊ฒ์ ๋งค์ฐ ์ค์ํ๋ค. ๋งค๋ฒ ์ด์๋ฅผ ์ฐพ์๋ณด๊ธด ์ด๋ ต๊ธฐ ๋๋ฌธ์ ์ต์ ๋ํฅ ํ์ ์ ์ํด ๋ด์ค๋ ํฐ๋ฅผ ๊ตฌ๋ ํ๋ ๊ฒ์ ์ถ์ฒํ๋ค. 1. Google Play ๊ฐ๋ฐ์ ๋ด์ค๋ ํฐ Android ๊ฐ๋ฐ์ | Android Developers Google Play์์ ์ฑ๊ณตํ๋ ๋ฐ ๋์์ด ๋๋ ์ต์ ๊ฐ๋ฐ์ ๋ด์ค ๋ฐ ๋์๋ง developer.android.com Google์์ ์ง์ ์ ๊ณตํ๊ณ ์๋ ์๊ฐ ๋ด์ค๋ ํฐ. ์ผ๋ฐ์ ์ผ๋ก Google Play์์ ์ฑ์ ์ฑ๊ณต์ ์ผ๋ก ๋ง๋ค๊ธฐ ์ํ ํ๊ณผ ์๋ก์ด Android ๊ด๋ จ ๋ฆด๋ฆฌ์ค ์ ๋ณด๋ฅผ ์ ๊ณตํด์ค๋ค. 2. Android Weekly Android Weekly - Fr..
-
[AOS] Can not perform this action after onSaveInstanceState2022. 10. 5. 21:52
๐ชฒ Fatal Exception: java.lang.IllegalStateException Can not perform this action after onSaveInstanceState ๋ฐฑ๊ทธ๋ผ์ด๋ ์ํ์ ์ฑ์ด ์ธ์ ํ์์์ ์ดํ Activity์์ dismiss()๋ฅผ ์ํํ ๋ ๋ฐ์ํ๋ค. ํด๊ฒฐ ๋ฐฉ๋ฒ dismiss() -> dismissAllowingStateLoss() ๋ณ๊ฒฝํด์ฃผ๋ฉด ๊ฐ๋จํ๊ฒ ์ค๋ฅ๊ฐ ํด๊ฒฐ๋๋ค. ๊ณต์๋ฌธ์ DialogFragment | Android Developers android.net.wifi.hotspot2.omadm developer.android.com dismissAllowingStateLoss() version of dismiss() that uses FragmentTransac..
-
[AOS] ์๋๋ก์ด๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐํ๊ธฐ 22022. 10. 3. 15:38
๐ฑ ์ด์ด. ๋๋. ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ฝ๋ ์ค์ @#$% ํจ์์ ๋ธ๋ ์ดํฌ ์ฐ์ด๋ฐ. ์ด. ๋์ด. (aar ํ์ผ ๋์ด๋ค ์) ์...? ๐ถ aar ํ์ผ์ ๋์ด๋ค ์ฐ๋ ๊ฒฝ์ฐ์ ๋ค๋ฅด๊ฒ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ฝ๋๋ฅผ ์ดํ๋ฆฌ์ผ์ด์ ์ ๋๊ธฐํํ๋ฉด ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ฝ๋์ ๋ธ๋ ์ดํฌ๋ฅผ ๊ฑธ ์๋, ์์ ํด์ ์ดํ๋ฆฌ์ผ์ด์ ์ ๋ฐ์ํ ์๋ ์๋ค. ์ด์ ๊ธ์์๋ ์ธ๊ธํ๋ฏ์ด [AOS] ์๋๋ก์ด๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐํ๊ธฐ 1 ์๋๋ก์ด๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐํ๊ธฐ 1 ๐ข ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐํด. ๋ค...? ๐ถ ๐ข ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐํ๋ผ๊ณ . ๊ทธ๊ฒ ๋ญ๋ฐ... ์ด๋ป๊ฒ ํ๋๊ฑด๋ฐ...! ๐ถ ๋ชจ๋ฐ์ผ ๊ฐ๋ฐ์๋ก ์ฒซ ์ ์ฌํ๊ณ ๋นํฉ์ค๋ฌ์ ๋ ๊ฑด ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐ์ด์๋ค. ํญ์ ์คํ์์ค๋ก ๊ณต nezhitsya.tistory.com aar ํ์ผ์ importํด์ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ๊ฐ๋ฐ์ด ์๋ฃ๋์์ ๋๋ฅผ..
-
[AOS] ์๋๋ก์ด๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐํ๊ธฐ 12022. 10. 2. 13:54
๐ข ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐํด. ๋ค...? ๐ถ ๐ข ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐํ๋ผ๊ณ . ๊ทธ๊ฒ ๋ญ๋ฐ... ์ด๋ป๊ฒ ํ๋๊ฑด๋ฐ...! ๐ถ ๋ชจ๋ฐ์ผ ๊ฐ๋ฐ์๋ก ์ฒซ ์ ์ฌํ๊ณ ๋นํฉ์ค๋ฌ์ ๋ ๊ฑด ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐ์ด์๋ค. ํญ์ ์คํ์์ค๋ก ๊ณต์ ๋์ด ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๋์ด์จ๋ณด๊ธฐ๋ง ํ์ง ์ง์ ๊ฐ๋ฐ์ ์ํด๋ดค์๊ณ ๋ ๋ด๊ฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๊ฐ๋ฐํ๊ฒ ๋ ์ค๋ ๋ชฐ๋๋ค. ์ง๊ธ ์๊ฐํด๋ณด๋ฉด ๋น์ฐํ ํ์ฌ์์๋ ์์ฌ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๊ฐ๋ฐํด ์ฌ์ฉํ ํ ๋ฐ ์ ์๊ฐ์ ๋ชปํ์์๊น... ์๋ฌดํผ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐ์ ์ค๋ฌด ํ๋ก์ ํธ์ ํ๋ถ ์์ค ํ๋ก์ ํธ ๊ฒฝํ์ ์ฐจ์ด๋ฅผ ๋๋ผ๊ฒ ๋ ๊ณ๊ธฐ ์ค ํ๋์๋ค. ๊ทธ๋์! ์ด๋ฒ ๊ธ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐ์ ์ํ ์ด๊ธฐ ์ค์ ๊ณผ ๊ฐ๋ฐํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ดํ๋ฆฌ์ผ์ด์ ์ ์ ์ฉํด๋ณด๊ธฐ์ ๊ดํ ๊ธ์ด๋ค. ์๋๋ก์ด๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐ ์ธํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฐ๋ฐ์ ์ํด ์ ํ๋ก์ ํธ๋ฅผ ๋ง๋ค์ด์ค๋ค. ์ค๋ฅธ..