title: Android map opening from intent and call dialing from intent not working after updating target version to 30 on Android 11 devices
body: <p>This seems like a package visibility issue as mentioned by Android
  <a href="https://developer.android.com/about/versions/11/privacy/package-visibility" rel="nofollow noreferrer">https://developer.android.com/about/versions/11/privacy/package-visibility</a></p>
  <pre><code>fun Activity.callPlayStoreIntent() {
      val appPackageName = this.packageName
      try {
          val uri = Uri.parse(&quot;market://details?id=$appPackageName&quot;)
          val intent = Intent(ACTION_VIEW, uri)
          startActivity(intent)
      } catch (exception: ActivityNotFoundException) {
          try {
              val uri = Uri.parse(&quot;https://play.google.com/store/apps/details?id=$appPackageName&quot;)
              val intent = Intent(ACTION_VIEW, uri)
              startActivity(intent)
          } catch (e: Exception) {
              e.printStackTrace()
          }
      }
  }
  
  
  fun Context.callFromDialer(number: String) {
      try {
          val callIntent = Intent(Intent.ACTION_DIAL)
          callIntent.data = Uri.parse(&quot;tel:$number&quot;)
          if (callIntent.resolveActivity(packageManager) != null) {
              startActivity(callIntent)
          }
      } catch (e: Exception) {
          e.printStackTrace()
          Toast.makeText(this, &quot;No SIM Found&quot;, Toast.LENGTH_LONG).show()
      }
  }
  
  
  fun Context.intentOpenMap(
      latitude: Double,
      longitude: Double,
      label: String,
  ) {
      try {
          val uriBegin = &quot;geo:$latitude,$longitude&quot;
          val query = &quot;$latitude,$longitude($label)&quot;
          val encodedQuery = Uri.encode(query)
          val uriString = &quot;$uriBegin?q=$encodedQuery&amp;z=20&quot;
          val uri = Uri.parse(uriString)
          val intent = Intent(Intent.ACTION_VIEW, uri)
          if (intent.resolveActivity(packageManager) != null) {
              startActivity(intent)
          }
      } catch (ex: Exception) {
          ex.printStackTrace()
          Toast.makeText(this, &quot;Unable to open Map&quot;, Toast.LENGTH_LONG).show()
      }
  
  }
  </code></pre>