This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

JavaRanch » Java Forums » Mobile » Android
Bookmark "Handling clicks" Watch "Handling clicks" New topic

Handling clicks

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 639

Hi ,

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


Author @
Moody blogger who do not like to behave like target setting machines work.
Mark L. Murphy
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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Handling clicks
It's not a secret anymore!