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
那麼,什麼是處理這種推薦的方式案件?