title: Android - How can I load an image to a ImageView?
body: <p>I want to make a simple image viewing program, that just takes the images from a certain folder, and loads them from it.</p>
  
  <p>I did some coding with less thinking, so I did stumble upon this:</p>
  
  <pre><code>Button btn = (Button) this.findViewById(R.id.buttonNext);
          btn.setOnClickListener(new OnClickListener() {
  
     public void onClick(View v) 
     {
      View rootView = (View)v.getParent();
      ImageView im = (ImageView) rootView.findViewById(R.id.imageView);
      //and here comes the problem...
  
  
     }
  </code></pre>
  
  <p>I have all my images from the folder loaded and have a collection, containg of all their absolute paths. Now, I want my imageView to switch its picture src with one from my collection. But how can I do that ? </p>