Adding scanned vCard to Contacts

binhtquang

Member
Licensed User
Longtime User
Hi all,

I'm currently using ABBarcode in my little app to scan QR codes. I would like to be able to add a vCard data from the scanned QR code on button click. I've tried:

B4X:
i.Initialize(i.ACTION_VIEW, "")
i.Settype("text/vcard")
StartActivity(i)

But it only asks me to view the vCard. Anyone know how to ADD it to contacts?

Thanks :)
 

binhtquang

Member
Licensed User
Longtime User
Hi Erel,

Thanks for your reply! I changed it to "text/x-vcard" but am still getting the same result.

Can you briefly explain what you meant by "The file is missing from the intent"?

I do get an error similar to what you say are saying when i choose "View vCard" from the content chooser box:

"Error reading vCard file. Not able to view or save vCard."


I am very new to B4A so I am always stuck and curious to know how things work. Thank you for bearing with me :).
 
Upvote 0
Top