title: Porting Card.IO to C# Xamarin Studio
body: <p>I'm having trouble trying to port Card.IO to Xamarin Android.  Since I am using C# instead of Java, I don't know what to do with the .so files and the .jar files.</p>
  
  <p>I tried to follow some of the steps posted here : <a href="https://stackoverflow.com/questions/16027260/card-io-mono-for-android-xamarin-studio/20437775#20437775">card.io Mono for Android (Xamarin Studio)</a> but I am getting the following two build errors that I don't know how to solve.</p>
  
  <p><strong>Here's What I've done so far</strong></p>
  
  <ol>
  <li><p>Create a new Android Java Bindings Library Project</p></li>
  <li><p>Add the .jar and .so files from Card.IO project, with the existing folder structure. So there is four subfolders under the /libs folder, and then a single jar under /libs.</p></li>
  <li><p>Add the following to Transforms/EnumMethods.xml to resolve a compiler error:</p>
  
  <pre><code>&lt;mapping jni-class="io/card/payment/CardIOActivity"&gt;
      &lt;method jni-name="onActivityResult" parameter="p1" clr-enum-type="Android.App.Result" /&gt;
  &lt;/mapping&gt;
  </code></pre></li>
  <li><p>Add a reference to the above Library in my main application.</p></li>
  </ol>
  
  <p>And then I am faced with these build errors : </p>
  
  <blockquote>
    <p>The type or namespace name 'IN' does not exist in the namespace
    'IO.Card.Payment' (are you missing an assembly reference?)</p>
    
    <p>'A': member names cannot be the same as their enclosing type</p>
  </blockquote>
  
  <p><strong>Update</strong></p>
  
  <p>The first error is on this line :</p>
  
  <pre><code>public sealed partial class CardIOActivity : global::Android.App.Activity, global::IO.Card.Payment.IN {
  </code></pre>
  
  <p>The second error seems to be on this line : </p>
  
  <pre><code>public static global::System.Collections.IList A {
  </code></pre>
  
  <p>Any help is useful, thanks!</p>