Resources$NotFoundException when Resource exists
<p>I'm trying to set a drawable to an <code>ImageView</code> from inside a custom <code>SimpleCursorAdapter</code>. This is the code I'm using.</p>

<pre><code>@Override
public void bindView(View view, Context context, Cursor cursor) {
    super.bindView(view, context, cursor);
    ImageView i = (ImageView) view.findViewById(R.id.icon);
    switch(Integer.parseInt(cursor.getString(4))){
    case 0:
        Drawable drawable = null;
        try {
            drawable = Resources.getSystem().getDrawable(R.drawable.andro_icon);
        } catch (NotFoundException e) {
            e.printStackTrace();
        }
        i.setImageDrawable(drawable);
</code></pre>

<p>But this catches a <code>Resources$NotFoundException</code> :</p>

<pre><code>02-29 06:39:48.467: W/System.err(13511): android.content.res.Resources$NotFoundException: Resource ID #0x7f02000c
</code></pre>

<p>The resource <code>R.drawable.andro_icon</code> exists, the code compiles without any problem, I tried cleaning and rebuilding the project and restarting eclipse. What's happening here?</p>
