Journey to become Android Developer

Published by pharid on

I still remember that day back in 2016 when I decided to start Android development, and that was one of the best decisions I took in my life. It has been around two and a half years now and I had the chance to learn and un-learn a lot of things in Android.

Initially when I started, I didn’t have a mentor or someone who could guide me to do things the right way. I did a LOT of mistakes and also wasted a lot of time doing and later rectifying them.

Later, after one and a half years, I got the chance to work with Envato Market, who approve my first project “ABC Mobile Security” after 3times hard rejection and 1 time soft rejection. I was fighting with my own mind at that time to sell my first app to Envato Market. I was depressed by the bad comments towards my product by the Envato Officials but I never gaveup to them and that is the reason I’m working with them from the past 1 year. This single year, I’ve developed 15 apps and they are at Envato Market. I learned what TO DO and most importantly what NOT TO DO.

It has been quite some time that I have been trying to help other developers in ways possible to me, directly and indirectly.

In this article, I will be sharing some of the gems that I have collected in these years. It might help someone to get started faster and not repeat the mistakes that I once did.

DisclaimerI will mainly be focussing on Android and some concepts of programming and product development in this article, so if you are not familiar with any of these, you might not want to read any further. Others, just dive in. đź™‚

1. Don’t Reinvent the Wheel

Initially, I had a bad idea of not using open-source libraries. Whatever I needed, I just wanted to make it myself. It’s was seriously a terrible idea.

If you have a problem while developing your app, and if that problem has been solved by someone else before and in a good way, why not use that? You can save yourself a lot of time.

2. Choose Libraries Wisely

There are lots and lots of open-source libraries available in Github for you to use for FREE. But don’t get too excited and start using libraries blindly.

Check the number of stars that particular library has, the more the better. Check if the author of that library have also created some other popular libraries as well. Check the issues (both open and closed), which can give you a better idea of how robust and stable the library is in production.

If you can afford the time, you should dive into the code of that library and check yourself if its really worth it.

You just want to ensure that the code you are going to use is reliable, bug-free and high-quality.

3. Sit, Take a Cup of Coffee and Read More Code

We spent most of our time reading others code than writing ourselves. If you are not doing that, START today.

Whatever code you are able to write today is only because you have read and learned something, somewhere, someday. It’s just a reflection of what you already know. You can only grow and improve yourself by reading and learning from other’s work.

The great thing about Android is that it is a completely open-source platform. Dive into the code and check how they have implemented the framework. There are thousands of open-source libraries in Github. Just pick a library and see how the developer have implemented it.

4. For God’s Sake, Maintain Proper Coding Standards

If you compare coding with writing, then coding standards is like your handwriting.

As you would be reading more of others code, other people will also be reading a lot of your code and you don’t want to scare the shit out of them, do you? And if you are working in an organization and collaborating with other developers heavily, do take special care about it.

Write short, clean and readable code that YOU and people reading your code would enjoy thoroughly. Your code should read like a story.

Code is Poetry.

Don’t complain if you write a piece of code and your colleagues don’t talk to you for a few days.

BonusTo start with, you must thoroughly go through this and this.

5. You Need ProGuard, Yes, You Need It!

Never ever, ever make the mistake of releasing your app on the Play Store without using ProGuard. ProGuard not only minifies your code, but it obfuscates your code making it harder for reverse-engineers to understand, replicate and manipulate it.

Its absolutely free and comes bundled with the Android SDK, and there is absolutely no reason for you not to use it.

I have seen several developers releasing their app on the market without ProGuard. It should not take more than a few hours for a not-so-skilled hacker to manipulate an the app released without Proguard.

Pro TipBut if you want top-notch security, then ProGuard is like a cardboard while you need a safe, and here it is, DexGuard.

6. Analytics Is Your Best Friend

If you want to create a truly amazing app, you need to heavily rely on analytics tools to analyze the performance and usage of different parts of your app.

By analytics, I refer to both crash reporting and app usage tracking and you need both of them.

Whatever you do, you can never make something perfect. When real users will start using your app on a variety of Android devices and on various Android versions available, you will even see some of your best written code to fall flat on the ground.

Crash reporting tools can help you to track and fix them, one crash at a time.

You also need to start thinking like a marketer and analyze the usage of various portions of your app. This is what will help you bridge the gap between what you made and what your users’ actually want.

Pro Tip: Here is an affordable market analysis tool, I love to use.

7. It’s Time to Optimize Your App

This is something that most of us generally don’t do, but you should and you need to.

There is a big difference between writing code and writing “optimized” code. Write code that runs quickly, takes less memory and consumes less device storage.

An unoptimized app works well under normal circumstances, but when put to different stressful situations, it can show you its true colors.

Check the amount of memory used by your app and look for memory leaks. Remember, a tiny leak can sink a big ship. Spend time on understanding how the Garbage Collector works in Java, create heap dumps and analyze your live objects.

Pro Tip: Use Leak Canary to detect your memory leaks. It can save you a lot of time by automating this task for you.

8. Test, Test and When You Are Done, Test Again!

There is nothing more important than testing. This is something that should be at the top of your list.

Test your app as thoroughly as possible. Spend time for writing automated test cases. Create various stressful situations for your app and see if it can survive.

I had once made the mistake of releasing my app out of hurry and didn’t spend proper time testing it. I was waiting for my users to face bugs, report it and then I would go and fix them.

Never, ever, ever do that. You might save a day, or two, or a week by cutting down time from testing, but will probably have to spend more than twice later.

Don’t do anything out of hurry, take your time and think long term. Be a visionary. Sow now, reap later.

9. Make it Difficult for the Hackers

The open-source nature of Android is what makes it vulnerable to attacks. Every Android app can be decompiled, reverse-engineered, ripped open, analyzed and manipulated with ease.

You don’t want that to happen to your app, right?

You should know how to securely store API keys locally in your app. If you are dealing with sensitive data of the users, then you must know how to encrypt them, what algorithm to choose (secure yet fast).

You should also store the encryption keys securely either in the server or locally (if needed). You should prevent your app data from being backed up using the ADB (Android Debug Bridge). If you are storing sensitive data in the database, consider obfuscating it.

If your app has a premium version which gets cracked and gets released for free. You would incur a serious loss in business, right?

There are several things you can do to prevent your app from getting tampered. There is nothing like 100% security. Any skilled and determined hacker with the right resources, tools and patience can crack your app.

All you want to do is make it difficult, rather very difficult for the hacker to crack it.


I have tried to share some of the lessons that I have learned in this short journey with Android development. I will continue my journey, learn more and share even more. I hope it helps someone and makes their life a bit easier.

If you like this article, do give it a thumbs up, comment on it and share with with your friends.


2 Comments

Prabesh thapa magar · December 27, 2018 at 4:53 am

Your journey really motivates us.
Keep progressing in your field.
Happy to see some phase of your success bro.

mero paper · December 27, 2018 at 5:48 am

great pharid we are always wid ew

Leave a Reply

Your email address will not be published. Required fields are marked *