release background drawable in onpause
<p>What is the proper way to release a drawable and manage it's lifecycle in an activity?  I'm trying to clear my bitmap because i see some memory related crashes.</p>

<p>I do:</p>

<pre><code>private static bitmap;

    public void onResume() {

            view.setBackgroundDrawable( new BitmapDrawable(getResources(),bitmap));

    }

    public void onPause() {
            view.setBackgroundDrawable(null); // What is the best way to do this?
            bitmap.recycle();
            bitmap=null;

    }
</code></pre>
