Re: [android-developers] Which button is clicked in my activity

2011-07-05 Thread Ravi Sharma
Hi Rockline Use android:onClick="selfDestruct" in your xml where you have define Buttons, So for each button you can saprate function in java class which will be invoked when you click on it Where button1Click and button2Click are your java functions You can Read more about this here http:/

[android-developers] Which button is clicked in my activity

2011-07-05 Thread Rockline
Hi all, I'm having a beginner issue. Sorry if my issue looks pathetic. I've got a custom button class so that I can declare lots of custom button objects in my Activity. The buttons are declared via an XML file. Each button is identified by a different text inside it ( setText("blabla") ). I'd l