Yes, originally, i planned to return false if any exception happens, but lately i found for core shell/runtime usage, here exceptions will happen to keep the resource ids from being changed, which is exactly what we want when not using core as Android library project.
So i will just set the function type to void and print error in logcat when exception happens.