Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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)
 
PREVIOUS NEXT
Tagged: #android #start #Activity #activity #child
ADD COMMENT
Topic
Name
6+8 =