Today marks the Pakistan’s 71 Independence Day As the title says, today’s is the 71st Independence Day of my country Pakistan 🇵🇰. As any citizen, I love my country and celebrate this day with happiness and pride. As August starts every year, Pakistan and its people starts preparation. Everywhere you will see the Pakistan flags, badges, shoes, shirts, and what nots in green and white colors with flags and designs.

Continue reading

In this data-driven era of technology, almost all websites and apps have one thing in common. That’s text validation for their data input forms and pages. This task of validating input and text before calling web services and APIs have become a routine for developers. In Android, this sometimes become too complex and tedious to perform validations and checks on multiple EditText and TextInputLayout views. Specially, when it comes to perform multiple checks to make sure that your user’s password is unbreakable and complex.

Continue reading

In the recent Google IO 2018 event held in May 2018, Google recommended developers to update to latest Android APIs after August 1, 2018. So, this article is a big big reminder for this announcement. > # August 1 has passed and all the new android apps on Google Play should target API Level 26 (Android Oreo) in order to be published. But Why? Why should I update it? Well simple answer is: boss’s orders.

Continue reading

Kotlin supports a technique called conventions, everyone should be familiar with. For example, if you define a special method plus in your class, you can use the + operator by convention: That’s called Kotlin Operator Overloading. In this article, I want to show you which conventions you can use and I will also provide a few Kotlin code examples that demonstrate the concepts. Kotlin defines conventions that we can apply by implementing methods that comply with predefined names like plus.

Continue reading

When we use Fragment in our app, we often time need access to Context or Activity. We do it by calling methods such as getContext() and getActivity() methods. But, in kotlin, these methods return nullables and we end up using code like this. fun myTempMethod() { context?.let { // Do something here regarding context } // Or we do it like this var myNonNullActivity = activity!! } For example, we need Activity in asking permissions.

Continue reading

100 Days Of Code in Open Source What I got in 100 days and what you can get from Open Source? Let me start by saying this. ***Open Source is just great. ***You will never know what kind of surprise is coming next and how? In this article, I’m going to tell you a story of 100 days and what kind of surprises I got. So, without further delay, let’s get started.

Continue reading

At my current project at work, I have a situation to add a third-party library locally instead of fetching it from jCenter or JitPack.io. So, my first task is to download AAR or JAR file of the library. The reason of using AAR/JAR is to avoid compiling of library on each build of the project to decrease build time. Here’s how First, you need to include it in your project using traditional way of implementation as you do with Android Studio.

Continue reading

Author's picture

Wajahat Karim

Android Developer. Open Source Contributor. Writer. Speaker

Senior Android Developer

Karachi, Pakistan