About the author
"How can I detect the Android emulator?" is a question a lot of people have asked.
The authoritative way is as below. On the Android emulator, there exists the property ro.kernel.qemu. On an actual Android device, this property doesn't exist.
public static boolean isRunningOnEmulator() { String emulatorProperty = SystemProperties.get("ro.kernel.qemu"); boolean Result = (emulatorProperty!=null) && (emulatorProperty.equals("1")); return Result; }
SystemProperties is a helper class I've created that uses Reflection to call into the public android.os.SystemProperties which is not exposed in the Android SDK.
How to free more space on your home drive by redirecting the location for SDKs in RAD Studio
Learn the command line used to compile System.pas in Delphi
A method to design records so that they're allocated on a specific byte boundary, such as 16 bytes, 512 bytes, 4096 bytes, etc.
Learn why the map is cool in Go!