title: Comparing with equals() method in Android
body: <p>I'm using the .equals method to compare a passed string (from another activity) with an int to show a certain image and I'm not sure if the .equals method is suitable. This is the code I'm using now. Unfortunately it doesn't work and shows the first image all the time!</p>
  
  <p>Get passedID of chosen listitem:</p>
  
  <pre><code>passedID = getIntent().getStringExtra("ID");
  </code></pre>
  
  <p>Show image part:</p>
  
  <pre><code>if(passedID.equals('1')){
          image.setImageResource(R.drawable.image01);
  }
  else if(passedID.equals('2')){
          image.setImageResource(R.drawbale.image02);
  }
  </code></pre>
  
  <p>Thanks for the help!</p>