Hello Chemistry,

      As new employee of Alfresco Mobile team, I just start a project to port OpenCMIS into Android devices.
      Indeed, OpenCMIS as is doesn't work on android device due to the fact that Android SDK is different than JDK. They share some common package but clearly not all and clearly not all for using OpenCMIS in android.

      So after few days of work, I created a "partial/draft" client version of OpenCMIS called chemistry-opencmis-android.

      What's chemistry-opencmis-android ?
      It's a maven project that create an android opencmis client into a single jar file : chemistry-opencmis-android.jar
      This library is a merge of opencmis-client-* and opencmis-commons-* dependencies into one jar. Some of them have been modified (More informations below).
      The project has 2 external dependencies : android.jar (for specific android dependencies) and simple-json (browser binding)
      I tested this project into Ice Cream Sandwich and Honeycomb android device. Major part of opencmis services (repository, navigation, object...) works pretty well but there are still some "functional holes" (extension parameters, ACL, versionning...). Yes it's draft version

      What I did...
      In general,

      • Merged opencmis-client-* and opencmis-commons-* package into one.
      • removed all webservices binding references
      • removed jaxb dependency (replaced it by opencmis data object)
      • modified atompubparser to use xmlpullparser provided by android.
      • commented or deleted all external dependencies that was not provided by android like commons-logging, osgi...

      In details,

      • chemistry-opencmis-commons-api :
          • add a file :
      • chemistry-opencmis-commons-impl :
          • remove converter, JaxbHelper files and tube packges
          • add AtomPubConverter
      • chemistry-opencmis-client-api : nothing
      • chemistry-opencmis-client-impl
          • remove osgi package
      • chemistry-opencmis-client-bindings
          • deleted webservices + local package
          • removed commons-logging and jaxb dependencies
          • rewrite atompubparser and atomentrywriter to use xmlpullparser
          • rewrite all services to use only opencmis object
          • create an atompubconverter : to create opencmis object after a parsing phase

      So my final questions :
      What do you think about this approach ?
      and if it's correct could I share, contribute and improve this version into chemistry and have some extra dev hands to help me in this task ?

      And the last How to build my project ?
      You need

      • maven 3.x +
      • android.jar as artifact in your maven repository. I used to deploy android sdk into my local repository
        then simply run a mvn install. You will have a single jar that you can incorporate to any android application as any dependency.

      Thanks for all.

      1. OpenCmisAndroid.png
        9 kB
        Jean Marie PASCAL
      2. chemistry-opencmis-android-0.1.0-SNAPSHOT.jar
        574 kB
        Jean Marie PASCAL
        524 kB
        Jean Marie PASCAL
      4. AndroidOpenCMISApplication.png
        108 kB
        Jean Marie PASCAL

        Issue Links


          No work has yet been logged on this issue.


            • Assignee:
              Florian Müller
              Jean Marie PASCAL
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created: