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

DonManfred

Expert
Licensed User
Longtime User
Is There a way to set the default one instead of asking the customer?
No. It´s the users device and HE may asked. And he need to set another one if he prefer. Or even not.
It is a Android decision.
 
Upvote 0
Top