You've successfully subscribed to Nicholas Workshop
Great! Next, complete checkout for full access to Nicholas Workshop
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.

Should IntDef and StringDef Still Be Used In 2018?

Nicholas Wong
Nicholas Wong

For years from google doc (ref):

You should strictly avoid using enums on Android.

Today, I checked the Google website, this message disappeared!

And after i read this discussion, I think we should use enum more lol

Android Dev

Nicholas Wong

Fullstack software engineer with strong background in computer science and extensive experience in software engineering and architecture. Studied in NYU, worked in Yahoo, Rakuten and Manulife.