title: Changing an ImageResource (drawable) programmatically
body: <p>I am currently using the <code>@android:drawable/presence_online</code> as the srcCompat for a ImageView.</p>
  
  <p>I would like to change it programmatically to <code>@android:drawable/presence_offline</code>.</p>
  
  <p>I tried the code below but it didn't work.</p>
  
  <pre><code>    final ImageView imgPresence = (ImageView) findViewById(R.id.imgPresence);
      imgPresence.setImageResource(R.drawable.presence_offline);
  </code></pre>
  
  <p>Any ideas?</p>