• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Create file object for each assets item.

Hi friends,

I have specific requirement I have few files in assets folder. I want that file in File object. (This is the requirement and I need to follow them STRICTLY,InputStream or any other is not allowed).

How to convert that ? SO far I have tried
Code:
new File("file://android_asset/fonts/xyz.ttf");

but this does not work.

Any Help..

If I can achieve the same using raw folder,that is also fine for me.
 
Back
Top Bottom