I'm confused with the async task. What do I have to do when my activity restarts? In my activity, onCreate() starts an async task. I know that the activity restarts when android requires it (i.e. orientation change or other). I've no problem with this... and I think restarting a new async task is acceptable.
Nevertheless I don't know what's happening with my previous async task. Do I have destroy it ?
My second question: what if I have a progressDialog in my previous task. Do I have to dismiss this dialog (and how)?