Better Programming

Advice for programmers.

Follow publication

Member-only story

8 Common Mistakes in Android Development

Siva Ganesh Kantamani
Better Programming
Published in
6 min readNov 30, 2020

Hand holding phone
Photo by Masakaze Kawakami on Unsplash.

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.

2. Not Using Fragments

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in