package Ġcom . just ai . aim y box . components . extensions Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġandroid . content . pm . PackageManager Ċ import Ġandroidx . core . content . Context Compat Ċ Ċ fun ĠContext . is Permission Granted ( permission : ĠString ) Ġ= ĊĠĠĠ ĠContext Compat . check Self Permission ( this , Ġpermission ) Ġ== ĠPackage Manager . PERMISSION _ GRAN TED Ċ Ċ fun ĠContext . startActivity If Exist ( intent : ĠIntent ) Ġ= Ġ( intent . resolve Activity ( package Manager ) Ġ!= Ġnull ) ĊĠĠĠ Ġ. also Ġ{ Ġis Activity Exist Ġ-> Ġif Ġ( is Activity Exist ) ĠstartActivity ( intent ) Ġ}