Cannot execute task: the task has already been executed (a task can be executed only once)
Programming/Exception 2013. 6. 11. 11:37반응형
AsyncTask(비동기 테스크)는 한번 executeOnExecutor 하면 다시 새로운 객체를 생성해야만, executeOnExecutor가 가능하다.
Cannot execute task: the task has already been executed (a task can be executed only once)
위 에러는 하나의 객체를 두 번 이상 executeOnExecutor 호출되었을때 발생되는 에러이므로, 새로운 객체를 생성해 주도록 하자.
아래와 같이 매번 객체를 생성해주도록 하자.
반응형
'Programming > Exception' 카테고리의 다른 글
Android Unable to execute dex: Multiple dex files define (0) | 2013.05.05 |
---|---|
Android Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED (0) | 2013.05.05 |
Android this message is already in use (0) | 2013.04.30 |
Native Library intelbth_x64 not available (0) | 2013.04.25 |
Android setpixel java.lang.IllegalStateException (0) | 2013.04.24 |