How to assign different color codes in android?
<p>I have to draw a pie chart in my project and for that I have found a very good <a href="http://tutorials-android.blogspot.in/2011/05/how-create-pie-chart-in-android.html" rel="nofollow">example</a>.
Now I want to change the colors of the pie-chart. For that I have found <a href="http://developer.android.com/reference/android/R.color.html" rel="nofollow">this</a> and <a href="http://developer.android.com/reference/android/graphics/Color.html" rel="nofollow">this</a>. But when I keep those colors it is not effecting. How can I change my constants(colors) in the below line </p>

<pre><code>int colors[] = { -6777216, -16776961, -16711681, -12303292, -7829368 };
</code></pre>

<p>I want to keep forest green and red color. How can I keep those colors? Please help me regarding this. 
Thanks in advance  </p>
