I have a .vcf
file and I want to put it in Android so I can read it from my code. The problem is that I cannot put it into assets folder, because I want to overwrite/edit this file later. How should I do this?
Asked
Active
Viewed 114 times
2

TN888
- 7,659
- 9
- 48
- 84

filipp.kowalski
- 5,495
- 7
- 27
- 45
2 Answers
1
First since you might want to load it via code, you may need to include the .vcf
file in /assets
folder just for loading.
Then you can copy the .vcf
file to the device's internal or external storage for doing overwrite/edit operation on the fly.
For more information about the internal and external storage, please refer to Android Developers: Storage Options

dumbfingers
- 7,001
- 5
- 54
- 80
-
I thought about it and hoped that there is other way. I guess not. Thanks than – filipp.kowalski Jul 25 '13 at 10:44
0
You can save it in the phone's internal memory using FileOutputStream and next edit it using FileOutputStream too. If you only want to read it, you can use FileInputStrem instead.
You can save the file in the assets folder and when you open the app, save it as I have just said.

Gonzalo Solera
- 1,182
- 12
- 26