I am learning android. I never used Bit flags in my life. So I bit explored to understand better. And I came across this article.
http://eddmann.com/posts/using-bit-flags-and-enumsets-in-java/
As the author suggests EnumSet is way more helpful than bit flags. But still why android framework used lot of Bit flags instead of EnumSets. Is there any specific reason to chose this hard way?