How do I check to see if a resource exists in Android
<p>Is there a built in way to check to see if a resource exists or am I left doing something like this.</p>

<pre><code>    boolean result;
    try {
        int test = mContext.getResources().getIdentifier("my_resource_name", "drawable", mContext.getPackageName());
        if (test != 0) result = true;
    }
    finally {
        result = false;
    }
</code></pre>

<p>Also, do I even need the try/finally?</p>
