In android, I have the following error thrown:
java.lang.NoSuchFieldError: android.os.Build.SERIAL
It happens only on certain devices, for instance: "sec_smdk6410" or "sdkDemo".
I have tried to catch the exception but it ignores the try/catch block.
try {
return android.os.Build.SERIAL;
} catch (Exception e) {
return null;
}
Is there anyway I can detect if this error will be thrown in order to adapt my code ?
Thanks.