getApplicationContext() not working for asynchronous event
<p>I want to toast text entered into a texbox using an asynchronous event eg. press button. It compiles without error but nothing happens when the button is pressed. From what I have been able to gather on the forum, my context is wrong. Can someone help me? Below is the code:</p>

<pre><code>mSendButton = (Button)findViewById(R.id.button_send);
mSendButton.setOnClickListener(new OnClickListener() {
    public void onClick(View v) {
        TextView view = (TextView)findViewById(R.id.edit_text_out);
        String message = view.getText().toString();
        if (message == "bla") {
            Toast.makeText(getApplicationContext(), "Bla was entered", Toast.LENGTH_LONG).show();
        }
        else {
            Toast.makeText(getApplicationContext(), "Bye ", Toast.LENGTH_SHORT).show();
        }
    }
});
</code></pre>
