In J2ME, I've do this like that: getClass().getResourceAsStream("/raw_resources.dat");
getClass().getResourceAsStream("/raw_resources.dat");
But in android, I always get null on this, why?
For raw files, you should consider creating a raw folder inside res directory and then call getResources().openRawResource(resourceName) from your activity.
getResources().openRawResource(resourceName)
1.4m articles
1.4m replys
5 comments
56.9k users