run an asyncTask, show the progress on a progressBar and manage the activity lifecycle when is destroy