How can I get the average colour of an image
<p>I want to be able to take an image and find out what is the average colour. meaning if the image is half black half white, I would get something in between... some shade of gray. It could be the most frequent single colour  or median. Any average will do.</p>

<p>How can I do this in android.</p>
