title: getDrawable(int) from the type Resources is deprecated in Eclipse Android
body: <p>I am following some tutorials in android about how to create an app that can toggle the silent mode. Everything is fine until I got this errors:</p>
  
  <p><a href="https://i.stack.imgur.com/yuMVB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yuMVB.png" alt="enter image description here"></a></p>
  
  <pre><code>The method getDrawable(int) from the type Resources is deprecated
  </code></pre>
  
  <p>Can you help me with this? I am new in Android. By the way I am using API 23 for this.</p>