title: How to identify Processor Architecture in Xamarin.Android?
body: <p>Lets say mostly all android processors are of type ARM but for testing, emulators are mostly of type x86. I native library that only runs on ARM and I just want to put dummy code for x86 in order to create Unit tests. I know simple try/catch will suffice, but problem is I wan to create interface with dummy code for unit tests.</p>
  
  <p>I have tried, </p>
  
  <pre><code>        System.Reflection.PortableExecutableKinds peKind;
          System.Reflection.ImageFileMachine machine;
          typeof(object).Module.GetPEKind(out peKind, out machine);
  </code></pre>
  
  <p>And various answers I found for .net, but while in Android, I get x86 always, though I am running app on device, it does not give me correct answer.</p>
  
  <pre><code>  type(object).Assembly.GetName().ProcessorArchitecture 
  </code></pre>
  
  <p>Always returns x86.</p>