Capturing Camera Keypress

J

jonfroehlich

Is there a known method of intercepting or sniffing when the user
presses the "camera button" on the SmartPhone? I've used the
CameraCaptureDialog class within my application--and it works
great--but the user is still able to open the default camera app via
the camera button and circumvent my app all together:-(

So, I suppose there might be two possible solutions:

1. Figure out a way to receive a message when the camera button is
pressed. I tried using OpenNetCF SDF 2.0 for this but no
Microsoft.WindowsCE.Forms.Message is sent when the camera key is
selected. Is there an alternative method I might try?

2. Have a watchdog process that looks for the camera app, then close it
and open it within my application.

Thanks in advance.

j
 
P

Peter Foot [MVP]

You can probably catch it with the Microsoft.WindowsCE.Forms.HardwareButton
control in .NETCF v2.0. You'll need to experiment to determine the ID
(HardwareKeys enum) of the camera button (not the same on all devices).

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top