5 Mistakes Rookie Android Developers Commonly Make

 

There’s no questioning the fact that Android is a brilliantly designed open source platform as it is pretty easy to use and develop for, the latter being true for the developers of course. However, when rookie developers create apps for it, they make mistakes that really should be avoided. These mistakes aren’t that big of a deal because the app works just fine. However, these minor mistakes can ruin the experience of the users, which is something no developer wants. We’ve outlined some of the most common Android development mistakes below.

Developing for Specific Android Device Only

Android is popular in the community because of its versatility, and as a developer, you need to keep that in mind. You cannot make an app that only works on particular devices because that will put it out of reach for thousands of users. One major mistake developers make in this area is of locking the dimensions. For example, you create an app that’s compatible on both smartphones and tablets, but you lock the dimensions only for smartphones. By doing this, you will completely eliminate the possibility of success on tablets. Whenever someone downloads your app on to their tab, it will not show up properly, hence putting them off.

Not Using Intents

Intents are regarded as one of the key elements of Android as it is a way of passing data between different portions of one or more apps. However, relatively new developers tend to completely ignore them. For example, you have created a gallery app that has the ability to share a download link to pictures through SMS. Then it is very likely that you will use the following coding:

<uses-permission android:name="android.permission.SEND_SMS" />

However, instead of using the above coding, you need to further add the following option and let the app designed for SMS do all the work for you:

Intent sendIntent = new Intent(Intent.ACTION_VIEW);

sendIntent.setData(Uri.parse("sms:" + telephoneNumber));

sendIntent.putExtra("sms_body", x);

startActivity(sendIntent);

This approach is not limited to SMS or gallery apps only as you can also use it with all the other types of apps. It is quite a helpful feature and will certainly save you a whole lot of time and trouble.

No Usage of Fragments

Not too long ago, Android introduced Fragments, which allowed developers to separate building blocks in order to create smoother experience for the users. This process was supposed to help optimize different activities of an app. However, the rookie Android developers often fail to utilize this feature at all. So if you’re creating an app, then do yourself a favor and make use of Fragments as it will make yours and the lives of people using your apps a lot easier.

Don’t Block the Main Thread

Task of the main thread is to hold the user interface. If it doesn’t work, then your whole project becomes completely useless. Some rookie developers don’t pay heed to it and end up blocking the main thread. When it gets blocked, users experience latency in usage as frame rates drop below 20 while the delay goes beyond 100ms. This makes using the app nearly impossible. Knowing that, it is advised that you don’t block the main thread ever.

No Need for Innovation Where It Isn’t Needed

A lot of tools are there for you to use, e.g. Gradle, Retrofit, and Gson. However, some rookie developers still feel tempted to come up with their own version of all these features. We can assure you that there is no need to do that. You don’t need to burden yourself with the unnecessary task of reinventing the wheel. You can spend this same time doing things that can actually prove to be fruitful for you and your app. Just focus on things which can help make your tool run smoothly and stand apart from the rest, and you’ll be just fine.