title: How do I set the background of an image button to a picture the user took?
body: <p>I want to be able to set the background of an image button in an xml file to be the picture the user took on the phone.</p>
  
  <p>I have the picture set as cameraBitmap.</p>
  
  <pre><code>cameraBitmap = (Bitmap) intent.getExtras().get("data");
  </code></pre>
  
  <p>and I want to pass that picture to be the bakground of the imagebutton.  The problem is, the method:  <code>setBackgroundDrawable()</code> only can pass in a drawable.  How do I go about changing that Bitmap to a drawable picture and making it the background?</p>
  
  <p>I currently have:</p>
  
  <pre><code>private ImageButton theImageButton;
  
  
  theImageButton.setBackgroundDrawable(cameraBitmap);
  </code></pre>