You've stumbled across the archive of the blog posts I wrote back in 2014 and prior. Feel free to peruse, through everything from code snippets that never made it to GitHub, to random ramblings about my passion for technology.

After a long and arduous journey of getting a navigation drawer set up for the redesign of my ChemPal app, I finally completed a wonderful and beautiful hamburger menu that I was greatly happy with.

Continue reading...

Many people use the Date class in Android, and it's really handy. But it's deprecated in later Java versions, and in Android as well. Given the fact that it was once the de facto standard, it's still widely used. So, why not use it? You can just use @SuppressWarnings("deprecated"), right?

Wrong.

Continue reading...

Sometimes, we need to get a resource from the Android resource library without knowing its name. Perhaps we have R.id.data1 through R.id.data9 and want to fetch all 9 of them without hardcoding each one.

This has been possible since API 1, through the use of getIdentifier(). I will start off by saying that this is not as efficient as referencing R, so it should be used ONLY in the event that you cannot be sure of the ID you are fetching.

Continue reading...

Based on a question I answered on StackOverflow, I thought it would be a good idea to put this out in public for everyone to see.

This is an example of PasswordTransformationMethod that, in a password field, would display a paradigmic asterisk *, instead of the generic dot •.

Continue reading...