1. Intent(+Serializable, Parcelable) 이용하는 방법 2. startActivityForResult 이용하는 방법 1. Intent(+Serializable, Parcelable) 이용하는 방법 SerializablePrivacy.kt package com.jwsoft.kotlinproject import java.io.Serializable class SerializablePrivacy( var height: Int, var weight: Int ) : Serializable ParcelableDetail.kt package com.jwsoft.kotlinproject import android.os.Parcel import android.os.Parcelable class ..
Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK activity_main.xml activity_sub.xml SubActivity.java package com.jwsoft.javaproject; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; public class SubActivity extends AppCompatActivity { private Button btnSub; @Override p..
Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK activity_main.xml activity_sub.xml SubActivity.kt package com.jwsoft.kotlinproject import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import kotlinx.android.synthetic.main.activity_main.* class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?)..
activity_main.xml activity_sub.xml Privacy.java package com.jwsoft.javaproject; import java.io.Serializable; public class Privacy implements Serializable { private String height; private String weight; public Privacy(String height, String weight) { this.height = height; this.weight = weight; } public void setHeight(String height) { this.height = height; } public void setWeight(String weight) { t..
activity_main.xml acitvity_sub.xml Privacy.kt package com.jwsoft.kotlinproject import java.io.Serializable data class Privacy ( val height: Int, val weight: Int ): Serializable MainActivity.kt package com.jwsoft.kotlinproject import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import kotlinx.android.synthetic.main.activity_main.* class MainActiv..
- Total
- Today
- Yesterday
- XML
- ArrayList
- Architecture Pattern
- Design Pattern
- coroutine
- activity
- Android
- JSONArray
- CoordinatorLayout
- JSONObject
- 안드로이드 #코틀린 #Android #Kotlin
- 자바
- Kotlin
- handler
- Livedata
- MVVM
- Vue.js #Vue.js + javascript
- Intent
- View
- java
- DataBinding
- ViewModel
- 혀가 길지 않은 개발자
- fragment
- James Kim
- ViewPager2
- 코틀린
- TabLayout
- 안드로이드
- recyclerview
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |