I have 15-20 xsl files in res/raw folder.When 1st application is gets installed on device at that time I want to just copy that res/raw folder all xsl files to applications data/data/package/raw folder.How can I do this?
Asked
Active
Viewed 1,255 times
1
-
getResources().openRawResource() ... – njzk2 Sep 24 '13 at 12:38
3 Answers
1
in Activity class there is method. If there is no file it will creates the file and returns the outputstram and it won't take file separator just have to give the filename it will directly creates a file in /data/data/packagename/ only i think u can't create a folder but u can create a file here using this method.
openFileOutput(name, mode)

android_dev
- 1,477
- 12
- 18
1
I got the solution and its working good.
Field[] fields=R.raw.class.getFields();
for(int count=0; count < fields.length; count++){
Log.i("Raw Asset: ", fields[count].getName());
}

Nitish Patel
- 1,026
- 2
- 19
- 36