如何在不使用外部应用程序的情况下恢复vcf文件?

RAH*_*DHI 5 android uri vcf android-intent android-file

在我的应用程序中,我将一个特定的联系人项目备份为.vcf文件,它工作正常,但我需要在不使用外部应用程序的情况下恢复联系人

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(storage_path+vfile)),"text/x-vcard"); //storage 
startActivity(intent);
Run Code Online (Sandbox Code Playgroud)