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. "IllegalArgumentException: parameter must be a descendant of this view" related issue

Hi All, while I'm testing my app with Monkey test tool, I ran into the
following exception:
"IllegalArgumentException: parameter must be a descendant of this
view"

I don't really understand why this exception happens, so I did some
research about this and found the following post:

2. Paging om anto sby

Permisi mau manggil seseorang nih 

As subject um anto tlg gtalknya di lirik yah......

Thk u buat jalumnya
gila original
plasa marina lt 2 h 267
031-91555898 sby
ym :gilaoriginal

-- 
"Indonesian Android Community [id-android]" 

3. Communicate with device connected to USB port

4. OOT: Share foto biar pada kenal antar. anggota milist ID-Android

5. Code Coverage Report for Android Project shows 0% coverage

6. issue of android linker

7. Salam Kenal ;)