Button button= (Button) findViewById(R.id.button);
button.setOnClickListener(new
OnClickListener() {
public void onClick(View v)
{
// TODO
Auto-generated method stub
Toast.makeText(getApplicationContext(),
"Button
Clicked",
Toast.LENGTH_LONG).show();
}
});
No comments:
Post a Comment