title: Invoke Toast in an external class
body: <p>I have an external class and I want to use Toast in this class.
  I tried to implement this but I get an error.</p>
  
  <p>How can I do this in easy way without any error?</p>
  
  <pre><code>public class ElevenActivity extends AppCompatActivity {
    @
    Override
    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_eleven);
    }
  
    public class MyToast {
      public MyToast(String message) {
        Toast.makeText(ElevenActivity.this, message, Toast.LENGTH_SHORT).show();
      }
    }
  }
  
  public class externalClass extends SQLiteOpenHelper {
    public void CreateDB() {
      ElevenActivity.MyToast t = new ElevenActivity.MyToast("Here");
    }
  }
  </code></pre>