title: Toast: Difference between "this" and "getApplicationContext()"?
body: <p>My device runs Android 5.1.1 and I found out that if I use</p>
  
  <pre><code>Toast.makeText(this, "This is a toast", Toast.LENGTH_SHORT).show();
  </code></pre>
  
  <p>I got this:</p>
  
  <p><a href="https://i.stack.imgur.com/r0hCKm.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/r0hCKm.jpg" alt="&quot;round&quot; toast"></a></p>
  
  <p>But if I use <code>getApplicationContext()</code> instead of <code>this</code>,</p>
  
  <pre><code>Toast.makeText(getApplicationContext(), "This is a toast", Toast.LENGTH_SHORT).show();
  </code></pre>
  
  <p>I got this:</p>
  
  <p><a href="https://i.stack.imgur.com/zZKAjm.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/zZKAjm.jpg" alt="rectangle toast"></a></p>
  
  <p>Both are called directly from the activity.</p>
  
  <p>Why is this?</p>