Catch weird Error 136 from Nokia N70 and continue when opening capture://image
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 14 Feb 2008 18:58:41 +0000 (18:58 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 14 Feb 2008 18:58:41 +0000 (18:58 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@183 59b500cc-1b3d-0410-9834-0bbf25fbcc57

javame/src/com/google/zxing/client/j2me/ZXingMIDlet.java

index a934825..50b5c6d 100644 (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");