title: Simple XML is not working from android device works fine with emulator
body: <p>So I am using simple xml in my android project and it works fine with emulator but when I use on my device I get this exception</p>
  
  <pre><code>07-25 11:52:17.351: I/dalvikvm(2934): Could not find method javax.xml.stream.XMLInputFactory.newInstance, referenced from method org.simpleframework.xml.stream.StreamProvider.&lt;init&gt;
  07-25 11:52:17.351: W/dalvikvm(2934): VFY: unable to resolve static method 6849: Ljavax/xml/stream/XMLInputFactory;.newInstance ()Ljavax/xml/stream/XMLInputFactory;
  </code></pre>
  
  <p>I tried adding the stax api jar and others in dependency but then dalvik wouldn't compile. The funny thing is it all works with emulator with only my simple-xml-2.7.jar in classpath.</p>
  
  <p>Any pointers are greatly appreciated. My android device has Android 4.1.1 on it.</p>
  
  <p>I am converting a java object to xml Here is the object. <strong>Please note</strong> that The code works fine in emulator the error is reported only on actual device with android 4.1.1.</p>
  
  <pre><code>@Default
  @Namespace(reference="http://bo.myobject")
  public class Header implements Serializable
  {
  
      private final static long serialVersionUID = 1L;
      @Element(required = false)
      protected String xyz;
  
      public Header() {
          super();
      }
  
      public Header(final String xyz) {
          this.xyz = xyz;
      }
  
     getters/setters
  }
  </code></pre>