๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ (387) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [Android] startActivity()๋ฅผ ์คํํ๋ฉด ์๋๋ก์ด๋ ์์คํ ์์๋ ์ด๋ป๊ฒ Activity๋ฅผ ์คํํ๋๊ฐ 1 manifest ํ์ผ์ ์์๋ฅผ ์์์ ํ์ ์์๋ก ์ถ๊ฐํด์ผํ๋ค. ์ฌ๊ธฐ์ ์ ์ธ๋์ง ์์ activity ์ธ ๋ค๋ฅธ ๊ตฌ์ฑ์์๋ค์ ์์คํ ์์ ์คํํ ์๊ฐ ์๋ค. 2 startActivity()์ ๋งค๊ฐ๋ณ์๋ก ๋ค์ด๊ฐ๋ Intent๋ ์์ํ ์กํฐ๋นํฐ๋ฅผ ์ค๋ช ํ๊ณ ๋ชจ๋ ํ์ ๋ฐ์ดํฐ๋ฅผ ๋ด๋๋ค. 3 - 1 Intent ๊ฐ์ฒด๊ฐ ํน์ ์กํฐ๋นํฐ๋ฅผ ๋ช ์์ ์ผ๋ก ์ง์ ํ ๊ฒฝ์ฐ. ์ฑ์ ํจํค์ง ์ด๋ฆ ๋๋ ๊ตฌ์ฑ ์์ ํด๋์ค ์ด๋ฆ ์ ๋ณด๋ฅผ ๋ฃ์ : ๋ช ์์ ์ธํ ํธ. ์ผ๋ฐ์ ์ผ๋ก ์ฑ ์์์ ๊ตฌ์ฑ์์๋ฅผ ์คํํ ๋(๋ถ๋ฅผ ๋... ๊ฐ ๋ง์ ์๋) ๋ช ์์ ์ธํ ํธ๋ฅผ ์ฌ์ฉํ๋ค. > Intent ๊ฐ์ฒด๊ฐ ๋ช ์์ ์ผ๋ก ๊ตฌ์ฑ ์์๋ฅผ ์ง์ ํ๋ฉด ์์คํ ์ด ํด๋น ๊ตฌ์ฑ ์์๋ฅผ ์ฆ์ ์์ํ๋ค. 3 - 2 Intent ๊ฐ์ฒด๊ฐ ์ํํ ์ผ๋ฐ์ ์ธ ์์ ์ ์ ์ธํ ๊ฒฝ์ฐ : ์์์ ์ธํ ํธ.. [Android][Firebase]FIS_AUTH_ERROR FirebaseInstanceId๋ฅผ ํตํด FCM ํ ํฐ์ ๋ฐ๊ธ๋ฐ๋ ์ฝ๋๋ฅผ FirebaseMessaging์ ์ฌ์ฉํ๋ ๊ฒ์ผ๋ก ๋ฐ๊พธ์๋๋ฐ ์ด์๊ฐ ๋ฐ์ํ๋ค. ์ด์ ๋ถ์ FirebaseMessaging ์ ํตํด FCM ํ ํฐ ํธ์ถ ์ ๊ฐํ์ ์ผ๋ก RuntimeExecutionException ๋ฐ์ํ๋ค. ๊ฐํ์ ์ผ๋ก ๋ฐ์ํ๋ ์ด์ ๋, ๋คํธ์ํฌ ์ฐ๊ฒฐ์ ๋ฌธ์ ๊ฐ ์์ ๊ฒฝ์ฐ์ ํด๋น ์ด์๊ฐ ๋ฐ์ํ๋ค๋ ๊ฒ์ ํ ์คํธ๋ฅผ ํตํด ๋ฐ๊ฒฌํ๋ค. FIS_AUTH_ERROR ๋ก ์๋ฌ ๋ฉ์์ง๊ฐ ๋ ธ์ถ๋๋ค. FIS ๋ Firebase Installations Service๋ก, Firebase ์๋น์ค๋ค(์ : Firebase ํด๋ผ์ฐ๋ ๋ฉ์์ง, Firebase์ฉ Google ์ ๋๋ฆฌํฑ์ค ๋ฑ)์ ๋ด๋ถ์ ์ผ๋ก ์ฌ์ฉ๋๋ Firebase ์ค์น ID๋ฅผ ์ ๊ณตํ๋ค. FI.. [Android][Google Play Console]๋ค์ดํฐ๋ธ ๋๋ฒ๊ทธ ๊ธฐํธ ํ์ผ ์๋ ์ ๋ก๋ ๊ตฌ๊ธ ํ๋ ์ด ์ฝ์์์ ์ฑ ๋ฐฐํฌ๋ฅผ ์ํด aab ํ์ผ์ ์ ๋ก๋ํ ๋๋ง๋ค ๋ค์ดํฐ๋ธ ๋๋ฒ๊ทธ ๊ธฐํธ ํ์ผ์ด ์๋ค๊ณ ๊ฒฝ๊ณ ๊ฐ ๋ด์๋ค. ๊ทธ ๊ฒฝ๊ณ ๋ฅผ ๋ฌด์ํ๊ณ ์ฑ์ ์๋ง ์ ๋ฐ์ดํธ ํ์๊ณ ์ด์ ๋ชจ๋ํฐ๋ง์ ํ์ด์ด๋ฒ ์ด์ค์ ํฌ๋์๋ฆฌํฑ์ค๋ฅผ ์ด์ฉํด์ ํฌ๊ฒ ๋ถํธํ ์ ์ ์์๋ค. ํ์ง๋ง ๊ฒฝ๊ณ ๊ฐ ์๊พธ ๋จ๋ ๊ฒ์ด ๋์ ๊ฑฐ์ฌ๋ฆฌ๊ณ ๊ตฌ๊ธ ํ๋ ์ด ์ฝ์์ด ๊ถ์ ํ๋๋ฐ์๋ ์ด์ ๊ฐ ์๋ค๋ ๊ฒ์ ์๋ ์ด ๊ฒฝ๊ณ ๋ฅผ ํด๊ฒฐํ๊ณ ์ ํ๋ค. ๊ทธ๋ฐ๋ฐ Android Developers์ ๊ณต์ ๋ฌธ์๋๋ก app์ build.gradle์ ์ค์ ์ ์ถ๊ฐํด๋ ์ค์ aab ํ์ผ์ ๋๋ฒ๊ทธ ์ ๋ณด๊ฐ ๋ค์ด๊ฐ ์์ง ์์๋ค. ์ด๊ฑด Android Studio ์ชฝ ๋ฒ๊ทธ์ธ ๋ฏ ํ๋ค. https://issuetracker.google.com/issues/187734554 https://issuetra.. [Android][Retrofit] onFailure: java.io.IOException: unexpected end of stream on ... https://stackoverflow.com/a/53179102 java.io.IOException: unexpected end of stream on Connection? Calling one of our in-house web services seems to be giving the following error: java.io.IOException: unexpected end of stream on Connection{webservicessandbox.xxx.com:443, proxy=DIRECT@ hostAddre... stackoverflow.com [Android][Retrofit] HTML Response ์ด์ ๊ป ์น๋ทฐ์์ url์ ๋ก๋ํ๋ฉด ๋น์ฐํ 200์ด ๋จ์ด์ง๋๊น html ํ์ผ์ด ํ๋ฉด์ ๋ ธ์ถ๋๋ ์๋๋ฆฌ์ค๋ง ์์ ํ๋ค๊ฐ, ์ด๋ฒ์๋ api๋ฅผ ์ฐ๋ฌ์ 200 ์ฝ๋๋ฅผ ๋ฐ์์ผ์ง๋ง ์น๋ทฐ๋ฅผ ๋ ธ์ถ์์ผ html ํ์ผ์ ๋ก๋ํ๋ ์๋๋ฆฌ์ค๋ฅผ ์์ ํ๊ฒ ๋์๋ค. ๊ธฐ์กด ์ฑ์์ ์ฌ์ฉํด ์จ Retrofit2๋ก ์์ ํ๊ธฐ๋ก ํ๋ค. ๊ณ ๋ฏผํ ์ฌํญ๋ค์ด๋ค. 1. Call ๋๋ Response ๋ ์ค์ ์ด๋ ๊ฒ์ ์ธ ๊ฒ์ธ๊ฐ? > Response Coroutine์ ์ฐ๊ณ ์์ด์, Response๊ฐ ๋ ์ ํฉํ๋ค๊ณ ์๊ฐํ๋ค. ๋น๋๊ธฐ ์์ ์ Response๊ฐ Call๋ณด๋ค ์ฌ์ฉํ๊ธฐ ์ข๋ค๊ณ ํ๋ค. https://jeongupark-study-house.tistory.com/208 Retrofit call ๊ณผ Response ์ฐจ์ด Android ๊ฐ๋ฐ ์ ๋คํธ์.. [Android]์ด๋ฉ์ผ validation ์ ํจํ ์ด๋ฉ์ผ ์ฃผ์ ๊ธธ์ด๋ ์ด๋ ํ๊ฐ ๊ณ ๋ฏผํ๋ค๊ฐ ์ฐพ๊ฒ๋์๋ค. https://www.geeksforgeeks.org/implement-email-validator-in-android/ Implement Email Validator in Android - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions. www.geeksforgeeks.org https://de.. [Android][Java] SharedPreference object ์ Context๋ก memory leak ๊ฒฝ๊ณ SharedPreferences๋ฅผ ํธํ๊ฒ ์จ๋ณด๊ฒ ๋ค๊ณ Object๋ก ๋ฉํํ์๋ค. Application ํด๋์ค์ onCreate()์์ ์ด๊ธฐํ ์ application context๋ฅผ ๋ฐ์ SharedPreferences ๊ธฐ๋ฅ์ ์ฌ์ฉํ ๋๋ง๋ค context๋ฅผ ํ๋ผ๋ฏธํฐ๋ก ๋ฐ์์ค์ง ์๋๋ก ํด์ ์ ๋ง ํธํ๊ฒ ์ฐ๊ณ ์์๋๋ฐ, ์๋๋ก์ด๋ ์คํ๋์ค์์ memory leak ๊ฒฝ๊ณ ๋ฅผ ๋์์คฌ๋ค. Do not place Android context classes in static fields (static reference to 'Pref' which has field 'context' pointing to 'Context'); this is a memory leak ์ด๊ธฐํ ์์ ๋ฐ์์ค๋ context๋ฅผ WeakReferen.. [Android][ADB] ๋นํ๊ธฐ ๋ชจ๋ on/off, ๋นํ๊ธฐ ๋ชจ๋ ํ์ธ ๋นํ๊ธฐ ๋ชจ๋ on adb shell settings put global airplane_mode_on 1 ๋นํ๊ธฐ ๋ชจ๋ off adb shell settings put global airplane_mode_on 0 ๋นํ๊ธฐ ๋ชจ๋ ์ฌ๋ถ ํ์ธ adb shell settings get global airplane_mode_on ๊ฒฐ๊ณผ 0 > off 1 > on ์ด์ 1 ยทยทยท 36 37 38 39 40 41 42 ยทยทยท 49 ๋ค์