Intent<Android>

컴공 복학생Young이·2021년 5월 30일

Intent()객체를 생성한다

Intent(from Acticcity , to Activity)

기본 형식 (send)


val intent = Intent(this@Intent1, Intent2::class.java)
         
intent.putExtra("number1", 1)
intent.putExtra("number2", 2)

startActivity(intent)

(give)

Intent객체 생성
intent.getIntExtra("number1",0)
profile
반드시 해낸다

0개의 댓글