package Ġpy x is . uz uki . live . media res izers ample . activity Ċ Ċ import Ġandroid . Manifest Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . support . v 7 . app . AppCompatActivity Ċ import Ġkotlinx . android . synt hetic . main . activity _ main .* Ċ import Ġpy x is . uz uki . live . media res izers ample . R Ċ import Ġpy x is . uz uki . live . rich util sk t . utils . R Permission Ċ Ċ class ĠMainActivity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĊĠĠĠĠĠĠĠ Ġval Ġarrays Ġ= ĠarrayOf ( Manifest . permission . WRITE _ EXTERNAL _ STORAGE , ĠManifest . permission . READ _ EXTERNAL _ STORAGE , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠManifest . permission . CAMERA ) ĊĊĠĠĠĠĠĠĠ ĠR Permission . instance . check Permission ( this , Ġarrays ) ĊĊĠĠĠĠĠĠĠ Ġbtn Kotlin . setOnClickListener Ġ{ ĠstartActivity ( Intent ( this , ĠKotlin Activity :: class . java )) Ġ} ĊĊĠĠĠĠĠĠĠ Ġbtn Java . setOnClickListener Ġ{ ĠstartActivity ( Intent ( this , ĠJava Activity :: class . java )) Ġ} ĊĠĠĠ Ġ} Ċ } Ċ