EDIT. I try to load variable image but somehow its not working. I think i have wrong xml imageview setup.
ImageView lblPic = new ImageView(this);
int resID = getResources().getIdentifier(pic, "drawable", getPackageName());
lblPic.setImageResource(resID);
xml imageview Using xml like this i hoped that code in Java will replace android:src defined image but it doesnt. If im not using android:src it cause error. Any suggestions?