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
You have to pass Activity context to create dialog as
Activity context = null; public URLDataReader(Activity context){ this.context = context; }
Hope this will helps you.