/**
* Check snapshot permission
*/
protected void checkPermission() {
try {
Scheduler scheduler = Scheduler.getScheduler();
MIDletSuite midletSuite = scheduler.getMIDletSuite();
midletSuite.checkForPermission(Permissions.MM_IMAGE_CAPTURING, null);
} catch (InterruptedException e) {
throw new SecurityException(
"Interrupted while trying to ask the user permission");
}