As the title says the app crashes when encounters the progress dialog create instruction. The context is passed to async class through constructor.
public class
The problem was found in the passage of the ApplicationContext instead at Activity.
ApplicationContext
Activity