title: How do I check to see if a resource exists in Android
body: <p>Is there a built in way to check to see if a resource exists or am I left doing something like the following:</p>
  
  <pre><code>boolean result;
  int test = mContext.getResources().getIdentifier("my_resource_name", "drawable", mContext.getPackageName());
  result = test != 0;
  </code></pre>