title: Android: Alternative for context.getDrawable()
body: <p>I have used <code>context.getDrawable()</code> like this in my project:</p>
  
  <pre><code>Drawable greenProgressbar = context.getDrawable(R.drawable.custom_progressbargreen);
  </code></pre>
  
  <p>But Eclipse is giving me an error that it needs a <code>Minimum API level of 21</code>. This would mean after a quick google search my APP will only be usable on <code>Android 5.0</code>. Since not all devices are using this version of android I would like to have an alternative for <code>context.getDrawable()</code>.</p>