Android is going to support 64-bit, but there are so many android devices, how do developer know current device is 32-bit or 64-bit ?
Let's begin from this command:
adb shell getprop ro.product.cpu.abi
for adb command, you can check Android official website for more detail: ADB (Android Debug Bridge)
getprop is an android utility to retrieve a property via the android property service.
ro.product.cpu.abi is android property, this property could help you confirm this device is ARM or Intel x86
you can check all the property by use the command
adb shell getprop
you will find some related property for check the device is 32bit or 64bit
ro.product.cpu.abilist32 shows an ordered list of 32 bit ABIs supported by this device.
We may need to detect the device information in app, check this page: Build (android.os.build)
and get the information about CPU and ABIs
Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserverd for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.
Notice revision #20110804