Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
i have an application and because you cant do network operations on the main thread im using AsyncTask, so the question is once i execute() the AsyncTask right after that i finish() the activity, and maybe the user will finish() the whole app, so what im wondering is:
| |||
You will be able to test this. And yes It does. If execute was called you can see Asynctask will still execute UNLESS it does something to the forground or UI related. (it may cause launcher to crash).
| |||
In short, you can not assume that it will keep on and definitely not assume that it will post it's progress or the calling of | |||
default
.
stackoverflow.comm
No comments:
Post a Comment