Try putting this line
mProgress = (ProgressBar) findViewById(R.id.prog);
Before this line
mProgress.setProgress(0);
You need to initialise mProgress before you can start calling its methods.
P.s. If you're getting errors its always useful to include the stack trace alongside your code.