In my manifest I have the following query defined :
<!-- Used for packageManager.queryIntentActivities() to work-->
<intent>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="geo" />
</intent>
</queries>
likewise in my code I have this
val uri = String.format(
Locale.ENGLISH,
"geo:0,0?q="
) + android.net.Uri.encode(String.format("%s,%s", latitude, longitude), "UTF-8")
val intentUri = Uri.parse(uri)
// Create an Intent from intentUri. Set the action to ACTION_VIEW
val mapIntent = Intent(Intent.ACTION_VIEW, intentUri)
// Attempt to start an activity that can handle the Intent
if (context.packageManager.queryIntentActivities(mapIntent, 0).isNotEmpty()) startActivity(
context,
mapIntent,
null
)
In short, I cannot seem to figure out why on earth this particular application https://zoom.us/ is showing up. Even if I select it, the application just crashes. So I'm wondering if it's because the developers of this application in their manifest setup accidentally to receive GEO scheme intents? Is there a way to not have it show up?