public void showProgressDialog() {
   pDlg = new ProgressDialog(mContext);
   pDlg.setMessage(processMessage);
   pDlg.setProgressDrawable(mContext.getWallpaper());
   pDlg.setProgressStyle(ProgressDialog.STYLE_SPINNER);
   pDlg.setCancelable(false);
   pDlg.show();
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    // Setting up spinner
    spinner = (ProgressBar) findViewById(R.id.progressBar1);
    spinner.setVisibility(View.GONE);

    // Set up UI Components
    title_box = (TextView) findViewById(R.id.title);
    status_box = (TextView) findViewById(R.id.status);
    downloadsize_box = (TextView) findViewById(R.id.downloadsize);
    mp3_butt = (Button) findViewById(R.id.downmp3);

    oldColors = status_box.getTextColors(); // Save default color

    Typeface font_title = Typeface.createFromAsset(c.getAssets(), "fonts/JosefinSlab-Bold.ttf");
    title_box.setTypeface(font_title);
    status_box.setTypeface(font_title);
    downloadsize_box.setTypeface(font_title);

    // Set up ProgressDialog
    mProgressDialog = new CustomProgressDialog(MainActivity.this);
    mProgressDialog.setIndeterminate(true);
    mProgressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    mProgressDialog.setCancelable(true);
    mProgressDialog.setProgressDrawable(
        getResources().getDrawable(R.drawable.apptheme_progress_horizontal_holo_dark));
    mProgressDialog.setIndeterminateDrawable(
        getResources()
            .getDrawable(R.drawable.apptheme_progress_indeterminate_horizontal_holo_dark));

    syncpref();

    /* Check First Time Launch */
    if (sharedPrefs.getBoolean(
        "firststart", true)) { // Check if it's the first time you run the application
      // Show a disclaimer.
      showdialog(
          0,
          getResources().getString(R.string.disclaimer_title),
          getResources().getString(R.string.disclaimer_text));
    } else {
      checkandstart();
    }
  }