I am using this code to call WhatsApp directly from my Call Logs app. This works well, but only if the phone number includes a valid country code. For example calling WhatsApp with 919789006685 wo...
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "content://com.android.contacts/data/" & dataId)
in.SetType("vnd.android.cursor.item/vnd.com.whatsapp.profile")
in.SetPackage("com.whatsapp")
Try
StartActivity(in)
Catch
Log("whatsapp not installed")
End Try
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "content://com.android.contacts/data/" & dataId)
in.SetType("vnd.android.cursor.item/vnd.com.whatsapp.profile")
in.SetPackage("com.whatsapp")
Try
StartActivity(in)
Catch
Log("whatsapp not installed")
End Try
Dim in As Intent
in.Initialize(in.ACTION_VIEW, "content://com.android.contacts/data/" & dataId)
in.SetType("vnd.android.cursor.item/vnd.com.whatsapp.profile")
in.SetPackage("com.whatsapp")
Try
StartActivity(in)
Catch
Log("whatsapp not installed")
End Try
Dim in As Intent
Dim tc As Technis
Dim dataid As String=tc.GetContactIDbyPhone("62xxxxxx")
Log(dataid)
Dim name As String = tc.GetContactNamebyPhone("62xxxxxx")
'Log(name)
in.Initialize(in.ACTION_VIEW, "content://com.android.contacts/data/" & dataid)
in.SetType("vnd.android.cursor.item/vnd.com.whatsapp.profile")
in.SetPackage("com.whatsapp")
Try
StartActivity(in)
Catch
Log("whatsapp not installed")
End Try
I am using this code to call WhatsApp directly from my Call Logs app. This works well, but only if the phone number includes a valid country code. For example calling WhatsApp with 919789006685 wo...
Hello
Can you help me to correct a code?
I need to make an app that through INTENT sends information to another app on a payment device. I have part of the code but I still do not receive a response from the other app and I do not know why. Attached code. Thanks