How to change ImageView source in android
ImageView whoamiwith = (ImageView)findViewById(R.id.whoamiwith) Drawable new_image= getResources().getDrawable(R.drawable.loginbtn); whoamiwith.setBackgroundDrawable(new_image);
Just try
ImageView whoamiwith = (ImageView)findViewById(R.id.whoamiwith) whoamiwith.setImageResource(R.id.new_image);