Assuming you're asking about android.widget.ProgressBar, try progressBar.getProgressDrawable().setColorFilter(...). If it's an indeterminate bar, call getIndeterminateDrawable() instead of getProgressDrawable().
It's exactly the same and completely different as this tiny ad:
The Low Tech Laboratory Movie Kickstarter is LIVE NOW!