Added notes about how to comment out anything that might possibly lead to JSR-234 problems.

git-svn-id: https://zxing.googlecode.com/svn/trunk@597 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2008-10-04 10:11:19 +00:00
parent f0a2d5778e
commit 6f8a5f49ca

View file

@ -36,6 +36,7 @@ class DefaultMultimediaManager implements MultimediaManager {
private MultimediaManager advancedMultimediaManager; private MultimediaManager advancedMultimediaManager;
DefaultMultimediaManager() { DefaultMultimediaManager() {
// Having issues with non-JSR-234 phones not accepting the build? then try commenting out from here:
try { try {
advancedMultimediaManager = (MultimediaManager) advancedMultimediaManager = (MultimediaManager)
Class.forName("com.google.zxing.client.j2me.AdvancedMultimediaManager").newInstance(); Class.forName("com.google.zxing.client.j2me.AdvancedMultimediaManager").newInstance();
@ -48,6 +49,10 @@ class DefaultMultimediaManager implements MultimediaManager {
} catch (NoClassDefFoundError ncdfe) { } catch (NoClassDefFoundError ncdfe) {
// continue // continue
} }
// to here. Then add this line:
// advancedMultimediaManager = null;
// You may also need to delete the class AdvancedMultimediaManager in this package to be completely free
// of JSR-234 references.
} }
public void setFocus(Controllable player) { public void setFocus(Controllable player) {