λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°

Android39

[μ•ˆλ“œλ‘œμ΄λ“œ] 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.
[μ•ˆλ“œλ‘œμ΄λ“œ] 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 ...(2) Web Sample Code (jsp) 2021.08.26 - [개발/μ•ˆλ“œλ‘œμ΄λ“œ] - [μ•ˆλ“œλ‘œμ΄λ“œ] AsyncTask 와 HttpURLConnection ...(1) Android Sample Code [μ•ˆλ“œλ‘œμ΄λ“œ] AsyncTask 와 HttpURLConnection ...(1) Android Sample Code AsyncTask λž€ 비동기 μž‘μ—…μ„ ν•  수 μžˆλ„λ‘ μ œκ³΅ν•˜λŠ” ν΄λž˜μŠ€μ΄λ‹€. 비동기λ₯Ό μ‚¬μš©ν•˜λŠ” μ΄μœ λŠ”, λ™κΈ°μ‹μœΌλ‘œ μž‘μ—…μ„ ν•˜κ²Œ 되면 main thread μ—μ„œ A thread 둜 κ°€μ„œ μž‘μ—…μ„ ν•˜λ‹€κ°€.. A thread κ°€ λλ‚˜μ•Όλ§Œ λ‹€μ‹œ mai devshin93.tistory.com 1. μ•ˆλ“œλ‘œμ΄λ“œμ™€ HttpURLConnection ν…ŒμŠ€νŠΈλ₯Ό μ§„ν–‰ν•˜κΈ° μœ„ν•΄ μ›Ή ν”„λ‘œμ νŠΈλ₯Ό μƒμ„±ν–ˆλ‹€. (μ•„λž˜ 글을 μ°Έκ³ ν•΄μ„œ μƒˆλ‘œμš΄ ν”„λ‘œμ νŠΈλ₯Ό 생성) 2021.0.. 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.