im using this sample code for signal info http://code.google.com/p/krvarma-android-samples/source/browse/trunk/PhoneStateSample/src/com/varma/samples/phonestatesample/PhoneStateSample.java which show signal strength in progressbar below is my code which piece of cdoe i took from that sample class my question is how i will change color of progressbar which create programiclaly?
private void setSignalLevel(int id,int infoid,int level){
int progress = (int) ((((float)level)/31.0) * 100);
String signalLevelString = getSignalLevelString(progress);
((ProgressBar)findViewById(id)).setProgress(progress);
((TextView)findViewById(infoid)).setText(signalLevelString);
Log.i("signalLevel ","" + progress);
}