Handler.post() vs runOnUiThread() vs AsyncTask.execute() activity_main.xml MainActivity.java package com.jwsoft.javaproject; import androidx.appcompat.app.AppCompatActivity; import android.os.AsyncTask; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.widget.Button; import android.widget.TextView; public class MainActivity extends AppCompatActivity { ..
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(..
- Total
- Today
- Yesterday
- 안드로이드
- Architecture Pattern
- fragment
- JSONArray
- 자바
- View
- ArrayList
- handler
- 코틀린
- XML
- JSONObject
- James Kim
- MVVM
- activity
- Kotlin
- Livedata
- ViewPager2
- Design Pattern
- ViewModel
- Vue.js #Vue.js + javascript
- Intent
- 안드로이드 #코틀린 #Android #Kotlin
- 혀가 길지 않은 개발자
- CoordinatorLayout
- coroutine
- java
- TabLayout
- DataBinding
- recyclerview
- Android
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |