Android Question check if my app is the default app

Erel

B4X founder
Staff member
Licensed User
Longtime User
PackageManager.QueryIntentActivities will return a list of all apps that support the relevant intent.

Try this:
B4X:
Dim pm As PackageManager
Dim in As Intent
in.Initialize("android.intent.action.SENDTO", "smsto:")
Log(pm.QueryIntentActivities(in))

Your app should be the first item if it is the default app.
 
Upvote 0
Top