• Post Reply Bookmark Topic Watch Topic
  • New Topic

Handling clicks

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

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

Thanks
Chetan
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!