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
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.