How can I change icon in android app. located at custom location. for example: I created new package in drawable i.e drawable/pre_paid_ico , But I can't access any icon from this location in programmatically way. here is my code
iconView = (ImageView) findViewById(R.id.icon);
int imageId = getResources().getIdentifier(array_ico[0], //icon name from array e.g[bg_icon]
"drawable/pre_paid_ico",//location of icons
"package.name.here"); //package Name
iconView.setImageResource(imageId);