package Ġcom . my l . learn video . camera Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġcom . my l . learn video . databinding . Activity Camera Test Binding Ċ Ċ class ĠCamera Test Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġactivity Camera Test Binding : ĠActivity Camera Test Binding ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġfun Ġstart Camera Test Activity ( context : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcontext . startActivity ( Intent ( context , ĠCamera Test Activity :: class . java )) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġactivity Camera Test Binding Ġ= ĠActivity Camera Test Binding . inflate ( layout Inflater ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( activity Camera Test Binding . root ) ĊĠĠĠĠĠĠĠ Ġinit View () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġinit View () Ġ{ ĊĠĠĠĠĠĠĠ Ġactivity Camera Test Binding . camera 1 Test . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCamera 1 Activity . start Camera 1 Activity ( this ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġactivity Camera Test Binding . camera 2 Test . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCamera 2 Activity . start Camera 2 Activity ( this ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġactivity Camera Test Binding . camera X Test . setOnClickListener Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠCamera X Activity . start Camera X Activity ( this ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }