Why setOnclick Button not working?
<p>I use android 2.3.3 
my code: </p>

<pre><code>    read=(Button)findViewById(R.id.bt_read);
    write=(Button)findViewById(R.id.bt_write);
    text=(EditText)findViewById(R.id.editText1);

    // write file
    write.setOnClickListener(new OnClickListener() {

        public void onClick(View arg0) {
            // TODO Auto-generated method stub
            Toast.makeText(getApplicationContext(), "Write", Toast.LENGTH_SHORT);
        }
    });
</code></pre>

<p>but when i click button Toast not show. can anybody tell me why? thanks</p>
