Issue
In J2ME, I've do this like that:
getClass().getResourceAsStream("/raw_resources.dat");
But in android, I always get null on this, why?
Solution
InputStream raw = context.getAssets().open("filename.ext");
Reader is = new BufferedReader(new InputStreamReader(raw, "UTF8"));
Answered By - Adrian Vintu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.