Tag Archives: programming

Android: Spinner Text Is White on White Background

source code

On Android, if you have a Spinner widget inside a Fragment, the Spinner could have white text on a white (or on a Light theme) background. The problem is most often due to an incorrect reference to the Context object.

Swap Two Numbers Without Temporary Variable

If you want to swap two variables, you would normally require a temporary third variable. But how to swap them without using a third variable? This is quite often a popular interview question for programming jobs.

How to Decompile Java Classes

Java class files are compiled bytecode files that could be loaded and run on a JVM or a Java Virtual Machine. To generate a Java source file from a Java class file, you will need a Java decompiler.

Endian Byte Order

In computing, endianness is the byte ordering used to store binary data in memory. When specifically talking about bytes, endianness is also referred to simply as byte order.