Catch weird Error 136 from Nokia N70 and continue when opening capture://image

git-svn-id: https://zxing.googlecode.com/svn/trunk@183 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-02-14 18:58:41 +00:00
parent ea00e20d22
commit f3c5cc6b52

View file

@ -89,7 +89,10 @@ public final class ZXingMIDlet extends MIDlet {
player = Manager.createPlayer("capture://image");
} catch (MediaException me) {
// if this fails, just continue with capture://video
}
} catch (Error e) {
// Ugly, but, it seems the Nokia N70 throws "java.lang.Error: 136" here
// We should still try to continue
}
}
if (player == null) {
player = Manager.createPlayer("capture://video");