Click here to Skip to main content
15,887,404 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a windows mobiloe application that will be installed on HTC mobile, I want to know how can I write a code so when I click on any button on the mobile itself not in the application; an action will be done ?!!
Posted
Updated 23-Jan-10 23:42pm
v2

1 solution

For the most part, the buttons on the device will act as a keyboard. Any special buttons on the device that you want to get hooked into, you're going to need the keycodes of those keys to be able to get them.

What you could look for is some source code so you could write a small app to hook into all key events and then log out the keys you press so you can intercept them in your code. I don't have an example of that.

I would say check out the HTC developer site, but that is pretty much the most useless developer site I've ever seen. Considering they manufacture the hardware, there doesn't seem to be much readily available.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900