title: Android: How check if a image exists in a IF clause?
body: <p>I need to know how check if an image exists in R.drawable, It has to be dynamic so I have to use a string that gives me the name of the image.
  I've tried with '!=null' or exist but it hasn't worked.... Help please!!!!!!!!!</p>
  
  <pre><code>titulo=bundle.getString("titulo");
  textView = (TextView) findViewById( R.id.textView1);
  textView.setText(titulo);
  foto="f"+bundle.getString("numero")+"a";
  System.out.println(foto);
  flipper =(ViewFlipper) findViewById(R.id.vfFlipper);
  </code></pre>
  
  <p>this gives me the name of the image a need...</p>
  
  <pre><code>image = new ImageView(this);
  image= new ImageView(this);
  image.setImageResource(R.drawable.f00a1);
  image.setScaleType(ScaleType.FIT_CENTER);
  flipper.addView(image);
  </code></pre>
  
  <p>Whith this I can use the image but i need to use the variable "foto" so it can be dynamic
  Thanks!</p>