07-15-2009 03:07 PM
I followed this knowdge base article exactly to create an app with an embedded camera field:
It works perfectly in the 4.6+ simulators. But when I build & sign using the 4.6 JDE and install on a real 4.6 device, I get a ControlledAccessException when calling the getSnapshot() method when taking the picture. Here's what ends up in the event log:
Name: ControlledAccessException
GUID: 9c3cd62e3320b498
Time: Jul 15, 2009 14:49:55
No detail message
net_rim_bb_camera-2
CameraPlayer
getSnapshot
0x8F0
This is the line of code from the article that throws that exception:
byte[] imageBytes = vc.getSnapshot(imageType);
Does anyone know why we'd be getting a ControlledAccessException here? We sign our app and use lots of other restricted parts of the API that require signing, and they all work fine.
07-15-2009 03:45 PM
07-15-2009 04:34 PM
07-15-2009 05:28 PM