14 декабря, 2021

Android Permission | ActivityResultLauncher

https://youtu.be/_o33f1SugGE MainActivity import android.Manifestimport android.content.pm.PackageManagerimport androidx.appcompat.app.AppCompatActivityimport android.os.Bundleimport android.widget.Toastimport androidx.activity.result.ActivityResultLauncherimport androidx.activity.result.contract.ActivityResultContractsimport androidx.core.content.ContextCompatclass MainActivity : AppCompatActivity() { private lateinit var pLauncher: ActivityResultLauncher<Array<String>> override fun onCreate(savedInstanceState: Bundle?) {… Подробнее »Android Permission | ActivityResultLauncher