Search code examples
androidandroid-resourcesappdata

How to copy res/raw folders files to data/data/package in android


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?


Solution

  • 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());
           }