package Ġmar ian . vas il ca . vide op layer . utilities Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . pm . PackageManager Ċ import Ġandroid . net . Uri Ċ import Ġandroid . support . v 4 . content . Context Compat ĊĊ Ċ fun ĠString . has Permission ( context : ĠContext ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ ĠContext Compat . check Self Permission ( context , Ġthis ) Ġ== ĠPackage Manager . PERMISSION _ GRAN TED Ċ Ċ fun ĠString . to Uri (): ĠUri Ġ= ĠUri . parse ( this )