Re: [android-developers] How to check which button is clicked

2012-05-21 Thread ravi saini
hii just implement your class activity from onclickListener and implement its method onclick and in that method you can use switch to get which button is pressed like switch (v.getId()) { case R.id.im1: { button1.setImageResource(R.drawable.p1o); break

[android-developers] How to check which button is clicked

2009-02-23 Thread gganesh
hi friends, I have 3 buttons on the screen and i have to perform different task according to the button clicked ,how can i check which button is clicked Thanks in Advance ganesh --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google