👩💻 Join our community of thousands of amazing developers!
If you want to just get plainly the architecture of system like "arm" or "x86" in your apps, then this post is just for you. So with this function that I’m gonna present, you will get 3 values, "arm", "mips" or "x86" whether or not the system is 32 bit or 64 bit. Here is the function : public static String getArch() { String arch = System.getProperty("os.arch").substring(0, 3).toLowerCase(); if (arch.equals("aar") || arch....