title: Endianness of Android NDK
body: <p>I'm working with my new app which processed captured image from cellphone camera. My phone is Nexus S, 2.3.4.</p>
  
  <p>I create a ARGB_8888 Bitmap with captured data. I know the ndk image lib, but it's only support 2.2 and above. So I pass the int[] of Bitmap to NDK and found the color byte order is little-endian.</p>
  
  <p>I searched the wiki and found arm architecture is bi-endian.
  <a href="http://en.wikipedia.org/wiki/Endianness#Bi-endian_hardware">http://en.wikipedia.org/wiki/Endianness#Bi-endian_hardware</a></p>
  
  <p>My question is if arm is bi-endian, how to judge the byte order in specific device? Should I test the byte order every time before access the data?</p>