I have issue to retrieve image path from assets folder.
I have an image folder in assets folder. Within the folder i have three different folders.
Here is the code that i used:
String IntroImage1= "" + languageSelected + "/" + Intro1ImagePath + ".png" ; try{ AssetManager mngr =getAssets(); InputStream BulletImgInput = mngr.open(IntroImage1); //InputStream BulletImgInput = mngr.open("image/Malay/bullet.png"); Bitmap bitmapBullet = BitmapFactory.decodeStream(BulletImgInput); BulletImage.setImageBitmap(bitmapBullet); }catch(final IOException e){ e.printStackTrace(); } I am wondering why can't i display the image? Because I have try to retrieve it through this code:
InputStream BulletImgInput = mngr.open("image/Malay/bullet.png"); It did retrieve the file, but with the string that i replaced in mngr.open it doesn't show up.
Really need you guys to help up.Thanks.