Android Question Phonecall issue

tigrot

Well-Known Member
Licensed User
Longtime User
Hi Everybody,
my testers told me that my APP (using StartActivity(pc.Call(ntel))) asks to chose between Whatsapp and the Dialer. Is there a way to instruct the phone to use the standard Dialer, instead of showing the selection screen and bypass it?

Thank you
Mauro
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
This code will print the component names of all dialers:
B4X:
Dim pm As PackageManager
Dim in As Intent
in.Initialize(in.ACTION_CALL, "tel:")
Dim dialers As List = pm.QueryIntentActivities(in)
Log(dialers)

The first one is considered the best match, so there is no guarantee that it is the stock dialer.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…