Member-only story
8 Common Mistakes in Android Development
Pitfalls of building a brilliant app
1. Things Should Be Where They’re Supposed to Be (Strings, Colors)
There is tremendous growth in the Android ecosystem around the globe with a diverse community. People from different backgrounds, people with disabilities, people who wish to have fancy features like night mode, and more use Android apps in their day-to-day life.
Developing apps for such a diverse community is not an easy task. I’m not speaking about high-level architectures here. In contrast, it’s about simple things like strings, colors, dimens, etc. that will considerably affect modern Android development.
People usually feel comfortable using an application in their native language. The vital step is to maintain all the strings in a single file (usually strings.xml
) to add different language-specific string files quickly.
This is also applicable to colors, dimens, and styles, so when you decide to do something like dark mode support or adjusting the layouts to tablet view, it’ll be easy to handle them. The bottom line is this: Maintain the code in a single place to reuse rather than hard-coding them wherever required.