noob Question button functions

by MarQuel Middleton » Sun, 13 Sep 2009 04:59:50 GMT


Sponsored Links
 Hey im a new developer ans im having trouble with button functions i
have a menu created but how do i give them functions so when there
pressed they can actually do something?

--~--~---------~--~----~------------~-------~--~----~



noob Question button functions

by Mark Murphy » Sun, 13 Sep 2009 05:02:37 GMT


 


If you implemented an options menu, override onOptionItemSelected() in
your activity.

If you implemented a context menu, override onContextItemSelected() in
your activity.

If you implemented one or more Button widgets, not a menu, call
setOnClickListener() on the widget and supply a listener object to be
notified when the button is clicked.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android Training in Germany, 18-22 January 2010:  http://bignerdranch.com 

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


noob Question button functions

by MarQuel Middleton » Sun, 13 Sep 2009 06:09:39 GMT


 Thank You!!





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. : How to stops the activity from getting restarted when mode changes from LandScape to Portrait or vice-versa

Hiiii Alllll

    Is there any way to stop the activity from getting  restarted
when the mode changes from LandScape to Portrait or vice-versa

Please help me Out Guysssssss...!!!!

Thanks in Advance for any Replays..!!!!

Cheers
Imran



--~--~---------~--~----~------------~-------~--~----~

2. Does anyone know Puppet Master?

Hi All,

Is there any Python Test Suite for testing in Android?

Thanks in advance,
--Marcus

--~--~---------~--~----~------------~-------~--~----~

3. how to listen callee hangup call event?

4. My application doesn't work...

5. How to do JUnit testing for database access?

6. Need Help..... To install android package (.apk) on HTC Touch Mobile

7. Got problem while building the core of Android source