This section discusses XBinder's support for Android, an open source operating system, found on mobile devices, which leverages the Java platform. This section explains what is needed in order to run XBinder-based applications (that is, code generated by XBinder, together with the XBinder Java runtime) on an Android device.
Using XBinder with Android is simple:
Use the -android option with XBinder. This changes the generated code slightly. Rather than using classes that are not present in Android, it uses replacement classes we have provided. For example, it uses com.objsys.javax.xml.datatype rather than javax.xml.datatype.
Use the xbrt_android.jar file. This is the XBinder runtime for Android. It contains replacement classes for classes that are not present in Android.
The XBinder generated code will accept an XmlPullParser for use in parsing XML. Be sure to use a namespace aware parser.