Android Question How to start WhatsAPP call

BenKhederSoftware

Member
Licensed User
Hello :)
I would like to know how to start a WhatsAPP call using a code?
I have already asked in the German forum but unfortunately have not yet received an answer.
I thank you for the help.
 

amorosik

Expert
Licensed User
Ahhhh, forget the German
To get quick answers you have to write on the Italian forum ???
Or, a little slower, on the English forum

Dim pm As PackageManager, in As Intent
in.Initialize("","")
If in.IsInitialized Then StartActivity(pm.GetApplicationIntent(nome_package))
 
Upvote 0

BenKhederSoftware

Member
Licensed User
@an all
I have now found this code, unfortunately the code is written in Java.
Can someone please rewrite this in B4A?
thanks


B4X:
Uri uri = Uri.parse("callto:" + phoneNUmber);
Intent i = new Intent(Intent.ACTION_CALL, uri);
i.setPackage("com.whatsapp");
startActivity(i);

Quelle:
 
Upvote 0
Top