Answers for "android how to start another activity from a view class"

0

android start new Activity from an activity with a child

val newIntent = Intent(this@Activity1, Activity2::class.java)
newIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK)
newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)

this@Activity1.startActivity(newIntent)
Posted by: Guest on March-17-2021

Code answers related to "android how to start another activity from a view class"

Browse Popular Code Answers by Language