I am making an app with a ListView. That ListView needs a separate class where you can set the action that happens when you touch an item in the ListView. I programmed it do download a file and show a ProgressDialog.
The error is at this line of code:
myDialog = new ProgressDialog(MainActivity.this);
At MainActivity.this.
Could someone help me to fix the problem?
The whole class is at http://pastebin.com/3rWEKz4r