title: How do I add R drawable android?
body: <p>Basicly my question is that how do I add a drawable resource to the R.java file in android eclipse so I can use it with this code: </p>
  
  <pre><code>ByteArrayOutputStream stream = new ByteArrayOutputStream();
          Bitmap bitmap = BitmapFactory.decodeResource(getBaseContext().getResources(),     R.drawable.kapschlogo);
          bitmap.compress(Bitmap.CompressFormat.JPEG, 100 , stream);
          Image myImg = Image.getInstance(stream.toByteArray());
          myImg.setAlignment(Image.MIDDLE);
  
          doc.add(myImg);
  </code></pre>
  
  <p>The image is stored in the parent project folder but I cant figure out how do I add it tho te R file.</p>