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;
          }
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to