This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes Handling clicks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Handling clicks" Watch "Handling clicks" New topic
Author

Handling clicks

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 629

Hi ,

how to handle clicks of a T-Mobile emulator.
I want to handle back button (not on the QWERTY keyboard)

Thanks
Chetan


http://www.androcid.com/
Mark L. Murphy
Author
Ranch Hand

Joined: Feb 11, 2009
Posts: 131
Override onKeyDown() in your activity, and you can intercept any hardware button press except HOME. Just return true for any keys you handle yourself and let the superclass implementation of onKeyDown() handle the rest.

Mark Murphy (a Commons Guy)
Author of The Busy Coder's Guide to Android Development http://commonsware.com/Android/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling clicks
 
Similar Threads
Jtable Event Handling
more than one click on a button
How to ignore more than one ActionEvents
Custom CheckBox
If JavaScript is disabled, how to listen events?