This project shows how to handle progress dialog when switching orientations and recreate activity