๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’š ๊ฐœ๋ฐœ/์•ˆ๋“œ๋กœ์ด๋“œ58

[์•ˆ๋“œ๋กœ์ด๋“œ] Splash Screen ์˜ˆ์ œ ๋ชจ๋ฐ”์ผ ์•ฑ์—์„œ Splash Screen ์ด๋ž€? - ์–ด๋–ค ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์ด ์‹คํ–‰๋˜๋ฉด์„œ ๊ฐ€์žฅ ์ฒ˜์Œ์— ๋œจ๋Š” ํ™”๋ฉด์ด๋‹ค. - ํ•œ๊ตญ์ธ์ด ๋ชจ๋‘ ์‚ฌ์šฉํ•˜๋Š” ์นด์นด์˜คํ†ก์„ ์˜ˆ๋กœ ๋“ค์ž๋ฉด, ์นด์นด์˜คํ†ก ์–ดํ”Œ์„ ์ผค ๋•Œ ๊ฐ€์žฅ ์ฒ˜์Œ์— ๋œจ๋Š” ๋…ธ๋ž‘์ƒ‰ ํ™”๋ฉด์„ ๋งํ•œ๋‹ค. - ๋ณดํ†ต ์ดˆ๊ธฐํ™” ์ž‘์—…์„ ํ•˜๊ฑฐ๋‚˜ ๋ฒ„์ „ ์ •๋ณด ํ‘œ๊ธฐ ๋“ฑ์— ์‚ฌ์šฉํ•œ๋‹ค. 1. activity_main.xml 2. activity_splash.xml 3. AndroidManifest.xml 4. MainActivity.java package com.devshin93.splashexample; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; public class MainActivity extends App.. 2021. 10. 20.
[์•ˆ๋“œ๋กœ์ด๋“œ] ์›์ธ์„ ์ฐพ๋Š” ์ค‘... ^^ ๊ฐ€๋” ์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค์—์„œ ์• ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ์‹คํ–‰ ํ•  ๋•Œ, "ํ˜„์žฌ ์—ฐ๊ฒฐ์€ ์‚ฌ์šฉ์ž์˜ ํ˜ธ์ŠคํŠธ ์‹œ์Šคํ…œ์˜ ์†Œํ”„ํŠธ์›จ์–ด์˜ ์˜ํ•ด ์ค‘๋‹จ๋˜์—ˆ์Šต๋‹ˆ๋‹ค" ๋ผ๋Š” ์˜ค๋ฅ˜ ๋ฉ”์„ธ์ง€๊ฐ€ ๋œจ๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค. (์•„๋ž˜ 1, 2๋ฒˆ) 1. build... 2. ํ˜„์žฌ ์—ฐ๊ฒฐ์€ ์‚ฌ์šฉ์ž์˜ ํ˜ธ์ŠคํŠธ ์‹œ์Šคํ…œ์˜ ์†Œํ”„ํŠธ์›จ์–ด์˜ ์˜ํ•ด ์ค‘๋‹จ๋˜์—ˆ์Šต๋‹ˆ๋‹ค 3. windows + R -> cmd 4. > adb kill-server 5. build... 6. ํ˜„์žฌ ์—ฐ๊ฒฐ์€ ์›๊ฒฉ ํ˜ธ์ŠคํŠธ์— ์˜ํ•ด ๊ฐ•์ œ๋กœ ๋Š๊ฒผ์Šต๋‹ˆ๋‹ค 7. > adb start-server 8. build... 9. ํ˜„์žฌ ์—ฐ๊ฒฐ์€ ์›๊ฒฉ ํ˜ธ์ŠคํŠธ์— ์˜ํ•ด ๊ฐ•์ œ๋กœ ๋Š๊ฒผ์Šต๋‹ˆ๋‹ค 10. > adb connect 127.0.0.1 11. cannot connect to 127.0.0.1:5555: ๋Œ€์ƒ ์ปดํ“จํ„ฐ์—์„œ ์—ฐ๊ฒฐ์„ ๊ฑฐ๋ถ€ํ–ˆ์œผ๋ฏ€๋กœ ์—ฐ๊ฒฐ.. 2021. 9. 14.
[์•ˆ๋“œ๋กœ์ด๋“œ] java.net.SocketException: socket failed: EACCES (Permission denied) java.net.SocketException: socket failed: EACCES (Permission denied) ์ด์ „ ๊ธ€์—์„œ HttpURLConnection ์ƒ˜ํ”Œ ์ฝ”๋“œ๋ฅผ ์งœ๋Š”๋ฐ ์œ„์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ๊ถŒํ•œ์ด ๊ฑฐ๋ถ€๋˜์—ˆ๋‹ค๊ณ  ํ•ด ๋ฌธ์ œ์˜ ์›์ธ์„ ๊ตฌ๊ธ€๋ง ํ•ด ๋ณด๋‹ˆ, AndroidManifest.xml ์— uses-permission ์„ ๋นผ ๋จน์—ˆ์—ˆ๊ตฐ... AndroidManifest.xml ์ด ๋ถ€๋ถ„! ์ด๋‹ค 2021. 9. 14.
[์•ˆ๋“œ๋กœ์ด๋“œ] AsyncTask ์™€ HttpURLConnection ...(1) Android Sample Code AsyncTask ๋ž€ ๋น„๋™๊ธฐ ์ž‘์—…์„ ํ•  ์ˆ˜ ์žˆ๋„๋ก ์ œ๊ณตํ•˜๋Š” ํด๋ž˜์Šค์ด๋‹ค. ๋น„๋™๊ธฐ๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ์ด์œ ๋Š”, ๋™๊ธฐ์‹์œผ๋กœ ์ž‘์—…์„ ํ•˜๊ฒŒ ๋˜๋ฉด main thread ์—์„œ A thread ๋กœ ๊ฐ€์„œ ์ž‘์—…์„ ํ•˜๋‹ค๊ฐ€.. A thread ๊ฐ€ ๋๋‚˜์•ผ๋งŒ ๋‹ค์‹œ main thread ๋กœ ๋Œ์•„ ์˜ฌ ์ˆ˜ ์žˆ๋‹ค. ๋งŒ์•ฝ A thread ๊ฐ€ ์ž‘์—…์„ ๋๋‚ด์ง€ ๋ชป ํ•˜๋ฉด,,, main thread ๋Š” ๋‹ค์Œ ์ž‘์—…์„ ํ•  ์ˆ˜ ์—†๋Š” ๊ฒƒ์ด๋‹ค. ๋น„๋™๊ธฐ์‹์œผ๋กœ ์ž‘์—…์„ ํ•˜๊ฒŒ ๋˜๋ฉด main thread ๋Š” main thread ๋Œ€๋กœ.. A thread ๋Š” A thread ๋Œ€๋กœ... ์ž‘์—…์„ ์ง„ํ–‰ํ•  ์ˆ˜ ์žˆ๊ฒŒ ๋œ๋‹ค. HttpURLConnection ์„ ์ด์šฉํ•ด jsp ์„œ๋ฒ„๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด๋‚ด๊ณ , jsp ์„œ๋ฒ„๋กœ๋ถ€ํ„ฐ ๋ฐ์ดํ„ฐ๋ฅผ ๋ฐ›๋Š” ๊ฐ„๋‹จํ•œ ์ƒ˜ํ”Œ์„ ๋งŒ๋“ค์–ด ๋ณด์ž. ๋ฐ์ดํ„ฐ๋Š” JSONObjec.. 2021. 8. 26.