title: Transparent Background to an android activity class
body: <p>I am creating an activity and adding views to it dynamically. This activity contains an imageview and a close button. I want the background of the image which is in fact the relative layout background to be transparent so that the icons on the home screen of the device could be visible.</p>
  
  <p>I have tried </p>
  
  <pre><code>    Window window = this.getWindow();
   window.setBackgroundDrawable(newColorDrawable(android.graphics.Color.TRANSPARENT));
  </code></pre>
  
  <p>and also </p>
  
  <pre><code>relativeLayout.setBackgroundColor(Color.parseColor("#00000000")); 
  </code></pre>
  
  <p>and this as well </p>
  
  <pre><code>relativeLayout.setBackgroundColor(0x00000000);
  </code></pre>
  
  <p>Nothing seems to work. Any pointers will be appreciated. Thanks. </p>