I`m porting s40 JAVA ME apps to asha platform, i got this problem when invoking getSnapshot to take picture,
the getSnapshot method throw security exception 'Failed to check user permission',
this exception is throwed before the platform asking user permission.
So the result my app cannot capture the picture although i choose allow to get snapshot.
When i try to change the security domain in emulator to "operator" or "manufacturer", the app work perfectly.
Is there new behavior in the new asha platform for getSnapshot method ?
here is my code:
private void takeSnapshot()
if (player != null)
byte pngImage = videoControl.getSnapshot(null);
catch (MediaException me)
catch (SecurityException se)
System.out.println("SecurityException:" + se.getMessage());