Prashant_611


Hi All,

I am facing problem intracking call key ta initiate call and call end key to terminate.

I need code sample for traping events of call button. ior any windows API available for same>




Re: How to trap call and call end keys inwm5 smartphone

prashant_611


Hi All,

I am facing problem in tracking call key to initiate call and call end key to terminate.

I need code sample for traping events of call button. ior any windows API available for same.






Re: How to trap call and call end keys inwm5 smartphone

Zero Dai - MSFT

Please don't cross posting. Merging...







Re: How to trap call and call end keys inwm5 smartphone

Zero Dai - MSFT

Hi Prashant,

Since Answer key and Hangup key have special functionality in smartphone, it's not recommended to catch the event of them and assign our own code logic to them. E.G. In particular, Hangup key (Known as CALL End key) is usually used to close the current displayed application.

But if you do want to catch their event, you may need to treat them as hardware key and register hot key for them. Sorry for I have no more experience on that, so just provide some ideas here. The following topic in OpenNetCF may what you want:

http://www.opennetcf.org/forums/topic.asp TOPIC_ID=283&SearchTerms=registerhotkey

Furthermore, in you application, when you press Answer key (call button), you application will be deactivated, so you can do a trick to catch the event of Deactivated event of the form of you application. For Hangup key (call end button), you can also catch the event of Closing.

Hope this can help,

Zero Dai - MSFT