Generate Vcf File Android Studio Programmatically

Hello, learners. Welcome to generate vcf file android studio programmatically example tutorial. 

We will learn how you can generate vcf file android studio programmatically from string resources.

VCF file also known as Vcard file.

Creating Vcard file in android app is an easy task.

First check output then we will implement tutorial in the android studio.

How to get maximum benefit from generate vcf file android studio programmatically Tutorial

Download Source Code

Try Our App

Download DemoNuts app to learn anytime, anywhere: Click to get Demonuts App

Or search “demonuts” in play store from android mobile device.

Creating generate vcf file android studio programmatically 

If you are using adblocker, then you will not be able to show our site smoothly. For example, you find step 6 after step 1 or similar to this. So please disable adblocker to fully utilize all resources of DemoNuts

Step 1: Create a new project in Android Studio.

Step 2: Updating AndroidManifest.xml file

 add required permissions between <manifest>….</manifest> tag.

Note: If you are targeting SDK version above 22 (Above Lollipop)  then you need to ask a user for granting runtime permissions.  Check marshmallow runtime permission for more information.

Final code for AndroidManifest.xml file


Step 3: Updating activity_main.xml file

Copy below code in activity_main.xml file

Step 4: Preparing class

Add following source code in class

Step 5: Description of

Following code will genereate a folder named “vcf_demonuts” if not existed.

Following line specifies name of the VCF or vCard file

Finally, below code will generate VCF or vCard file

If you want to open this newly generated vcf or vcard file programmatically,  then remove the comment from below snippet.

How to get exact Android example while searching in Google

Click to get Important Google searching tips

So all for generate vcf file android studio programmatically example tutorial. Thank you and keep learning. ?

Hardik Parsania

I am mobile app developer. I am always passionate about solving complex and real world problems.I have developed many apps with great interest and superior logical skills.

You may also like...

1 Response

  1. Saran says:

    how to add an image to v card?

Leave a Reply

Your email address will not be published. Required fields are marked *