Access to assets android -


i'd access access in android class.

i know can use getassets i'm working on util class not activity can't access context.

i can add param in constructor or setter not proper

il there solution access assets in util class ?

thanks

edit:

file file = new file("file:///"); string[] list = file.list(); for(int = 0; i<list.length; i++){     system.out.println(list[i]); } 

but list null

you can use file:///android_asset/assetname.extension refers asset. create file path above asset.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -