You have an error in your code

Posted in General by Jesus Martinez diaz Wed Nov 11 2015 12:22:30 GMT+0000 (UTC)·2·Viewed 522 times

In MOCAConfig.class on Android SDK, this method is wrong: private static Long getLong(Bundle bundle, String key, long defaultValue) { String value = bundle.getString(key, (String)null); if(value != null && !"auto".equalsIgnoreCase(value)) { try { return Long.valueOf(Long.parseLong(key)); } catch (Exception var6) { return Long.valueOf(defaultValue); } } else { return Long.valueOf(defaultValue); } } It must be Long.valueOf(Long.parseLong(value)); instead of Long.valueOf(Long.parseLong(key)); Could you fix it and notify me? Thanks. Jesus Martinez
Ivan Gonzalez
Nov 16, 2015
Hi Jesus, Thank you for your post. Your corrections have been added to the latest version of the SDK. Best, Ivan

Ivan Gonzalez marked this as solved
Markdown is allowed