package Ġcom . flow nav . second action Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . widget . Button Ċ import Ġandroid . widget . TextView Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġcom . flow nav . annotation . Entry Flow Nav Ċ import Ġcom . flow nav . navigation . Navigation Keys . FEATURE _ 2 Ċ import Ġcom . flow nav . navigation . Navigation Keys . FEATURE _ 3 Ċ import Ġcom . flow nav . navigation . Second Action Arg Keys Ċ import Ġcom . flow nav . router . start For Result Ċ Ċ @ Entry Flow Nav ( FEATURE _ 2 ) Ċ class ĠSecond Action Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . second _ action _ activity ) ĊĠĠĠĠĠĠĠ Ġval Ġtext Ġ= Ġ" SECOND : Ġ${ intent . extras ?. getString ( Second Action Arg Keys . arg 1 )}" ĊĠĠĠĠĠĠĠ ĠfindViewById < TextView >( R . id . txt Second ). text Ġ= Ġtext ĊĊĠĠĠĠĠĠĠ ĠfindViewById < Button >( R . id . button Open Third ). setOnClickListener Ġ{ ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġ// Ġcall Ġactivity Ġfor Ġresult ĊĠĠĠĠĠĠĠĠĠĠĠ Ġstart For Result ( FEATURE _ 3 , Ġ 1 ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ