Prior to the Android Froyo version , the official document performance tips had "Avoid Enums Where you are only need Ints" and later that part was removed , see Per Formance Tips
Android VM Team Elliott Hughes clarified the issue on StackOverflow , details
He pointed out that "the original document has been updated based on the actual evaluation of the virtual machine (Benchmark) , leaving only the results of the evaluation, and with the update of the Froyo version of the virtual machine , the document has also been updated .
Moreover , Avoid Enums Where you are only need ints is intended to refer to an event where an int should be used , you should avoid using enumerations . When you find that you often call the ordinal () method , Consider whether you should use Int. "
So , in Android app Development , it is possible to use enumerations .
However , from the memory point of view, it is important to note that the enumeration brings advantages, and it does use more memory than int .
In another website document on memory optimization ( details ) , there is still a saying to avoid using enumerations .
Should Android app development avoid using enumerations?