title: What does Toast = null mean? (android)
body: <pre><code>Toast mToast;
  
  private void checkName() {
      if (etName.getText().toString().isEmpty()) {
          if (mToast == null) { // Initialize toast if needed
                  mToast = Toast.makeText(this, "", Toast.LENGTH_LONG);
          }
          mToast.setText("Please enter your name"); // Simply set the text of the toast
          mToast.show(); // Show it, or just refresh the duration if it's already shown
      } else {
          submit();
      }
  }
  </code></pre>
  
  <p>The above program shows a toast only when it is needed. If there is a queuing of toasts, it simply ignores the toast. How does that work? What does Toast = null mean exactly?</p>