
activity_main.xml MyAsyncTask.java package com.jwsoft.javaproject; import android.os.AsyncTask; import android.widget.TextView; public class MyAsyncTask extends AsyncTask { TextView tvText; public MyAsyncTask(TextView tvText) { this.tvText = tvText; } @Override protected void onPreExecute() { super.onPreExecute(); } @Override protected Boolean doInBackground(Void... voids) { for (int i=1; i

activity_main.xml MainActivity.java package com.jwsoft.javaproject; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class MainActivity extends AppCompatActivity { TextView tvText; Button btnChange; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(..

build.gradle (Module: app) dependencies { // Retrofit2 implementation 'com.squareup.retrofit2:retrofit:2.7.1' implementation 'com.squareup.retrofit2:converter-gson:2.7.1' implementation 'com.squareup.okhttp3:logging-interceptor:4.3.1' } AndroidManifast.xml 인터넷 권한 추가. RetrofitAPI.java package com.jwsoft.javaproject; import com.google.gson.JsonObject; import java.util.List; import retrofit2.Call; ..

activity_main.xml MainActivity.java package com.jwsoft.javaproject; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; public class MainActivity extends AppCompatActivity { TextView tvText; Button btnChange; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(..

UI 작업은 Main Thread에서 해야 하는데 만약 Worker Thread에서 UI 변경을 해야 한다면 Handler를 이용하여 Main Thread와 연결해 주어야 한다. 단, Handler는 Main Thread에서 생성이 되어야 한다. activity_main.xml MainActivity.java package com.jwsoft.javaproject; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.View; i..
- Total
- Today
- Yesterday
- Intent
- View
- 안드로이드 #코틀린 #Android #Kotlin
- CoordinatorLayout
- JSONArray
- DataBinding
- Kotlin
- Android
- ViewModel
- 안드로이드
- JSONObject
- MVVM
- handler
- fragment
- java
- Vue.js #Vue.js + javascript
- activity
- Design Pattern
- Livedata
- ViewPager2
- recyclerview
- 혀가 길지 않은 개발자
- 코틀린
- ArrayList
- 자바
- coroutine
- James Kim
- XML
- Architecture Pattern
- TabLayout
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |