Find out which is the current background Drawable
<p>inside my code, a View gets a new background:</p>

<pre><code>myView.setBackgroundResource(R.drawable.foo);
</code></pre>

<p>OK, it mustn't be "foo", there are a dozen different Drawables possible. That's causing my problem: Later I need to know, which of these Drawables is shown actually. But I'm not able to find out the resId neither the name of the background, and also I didn't find a way to compare these drawables:</p>

<pre><code>Drawable myDraw = myView.getBackground();
Drawable compareDraw = getResources().getDrawable(R.drawable.foo);
</code></pre>

<p>They aren't equal. Hm. How can I find the current backgrund image?</p>

<p>Thanks in advance</p>

<p>TIA
Jo</p>
