Skip to content

add realisation activity A, B, C, D#31

Open
DariaMandzyuk wants to merge 2 commits intoOtus-Android:homeworks/activities_01from
DariaMandzyuk:homeworks/activities_01
Open

add realisation activity A, B, C, D#31
DariaMandzyuk wants to merge 2 commits intoOtus-Android:homeworks/activities_01from
DariaMandzyuk:homeworks/activities_01

Conversation

@DariaMandzyuk
Copy link

No description provided.


val button = findViewById<Button>(R.id.act_a_button_open_to_act_B)
button.setOnClickListener {
val intent = Intent(applicationContext, ActivityB::class.java)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@DariaMandzyuk , так не получится открыть новый таск.
Нужно или в манифесте установить таск аффинити отличный от А или использовать флаги:
Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_MULTIPLE_TASK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments