I have few images in assets folder i want to retrieve the path of the each image file and copy them into array and finally set to image view with some condition. i have used the below code.But it did not workout for me. may i know where i am going wrong.
final Uri ASSETS_URI = Uri.parse("file:///android_asset");
final String[] IMAGE_IDS =new String[] {ASSETS_URI+"/"+"one.png",ASSETS_URI+"/"+"two.png",ASSETS_URI+"/"+"three.png"};
iv=(ImageView)findViewById(R.id.iv);
if(i>=0 & i< IMAGE_IDS.length-1)
i=i+1;
else if(i==IMAGE_IDS.length-1)
i=0;
iv.setImageURI(Uri.parse(IMAGE_IDS[i]));