0
我发现,我不得不抛出异常在后台线程:在后台处理异常?
@Background
void bootstrap() throws IOException {
mProgressBar.setVisibility(View.VISIBLE);
restClient.setBearerAuth(Auth.token);
UserID userIdJsonn = restClient.getUserId();
Auth.user_id= userIdJsonn.getUser_id();
PhoenixPlug.getInstance().ini();
mProgressBar.setVisibility(View.GONE);
}
当然,我得到这个错误:
Error:(619, 5) error: org.androidannotations.annotations.Background annotated methods should not declare throwing any exception
那么,什么是处理这种推荐的方式案件?