Win a copy of The Java Performance Companion this week in the Performance forum!
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic