I woke up at around 5:30 AM in morning. I was feeling very sleepy as I slept late at night. But it was no time for laziness as I had to get ready for traveling. I made tea and ate some bread as quick breakfast, got shower, locked my home and called Uber. Uber took me to a bus stop where I booked a seat in a bus. The bus was late about 20 minutes, but I left Karachi — the city of lights — at 7:20 AM.

Continue reading

In my current project at work, I had to setup a private maven repository hosted at Artifactory. I was assigned login credentials to access the libraries (or artifacts) from the repository. But, when I was fetching it from Android Studio project through build.gradle file, I was getting this exception on syncing the project. org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'MY_MAVEN_ARTIFACT_URL_GOES_HERE'. Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) at java.

Continue reading

The Road to 1000 Followers on Medium Since the childhood, I have remained a silent but talkative person. Now you must be thinking about how someone can be silent as well as talkative both at same time. There’s no middle ground in those two attributes. Well, my answer to that is at start I am a shy and silent person to any new person. But when I become comfortable to him/her, then I think (s)he can’t stop my on talking.

Continue reading

Welcome to Flutter Pub

The Pub(lication) for all about the Flutter and its magic. Since in late June 2018 when Flutter moved from beta phase to the release phase, I have been trying to find time to explore this amazing mobile development framework and learn a few things about it. And believing in the ***“Knowledge for free, knowledge for all” ***philosophy, I have always tried to share my knowledge with others through writing on my blog, Medium, AndroidPub, books, or public speaking.

Continue reading

Encrypt Strings Please copy the AESUtils class in your project first and then you can use it like this. String encrypted = ""; String sourceStr = "This is any source string"; try { encrypted = AESUtils.encrypt(sourceStr); Log.d("TEST", "encrypted:" + encrypted); } catch (Exception e) { e.printStackTrace(); } Decrypt Strings Please copy the AESUtils class in your project first and then you can use it like this. String encrypted = "ANY_ENCRYPTED_STRING_HERE"; String decrypted = ""; try { decrypted = AESUtils.

Continue reading

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

Author's picture

Wajahat Karim

Android Developer. Open Source Contributor. Writer. Speaker

Senior Android Developer

Karachi, Pakistan