Android how to get access to raw resources that i put in res folder?
In J2ME, I've do this like that: getClass().getResourceAsStream("/raw_resources.dat"); But in android, I always get null on this, why? Adrian Vintu InputStream raw = context.getAssets().open("filename.ext"); Reader is = new BufferedReader(new InputStreamReader(raw, "UTF8")); For raw files, you should consider creating a raw folder inside res directory and then call getResources().openRawResource(resourceName) from your activity. sravan In some situations we have to get image from drawable or raw folder using image name instead if generated id // Image View Object mIv = (ImageView) findViewById