cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco and android

rahmanibilel
Champ in-the-making
Champ in-the-making
Hello,
I have installed alfresco community  4.2.e and i want to connect it with android, so i used cmis for android but when i run my appliation in emulator i find the error message : "the application has stopped unecpectedly please try agin"

i my configuration file i add this line <uses-permission android:name="android.permission.INTERNET" /> but i alwas have the problem


my code :

SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
      
        Map<String, String> parameter = new HashMap<String, String>();
        parameter.put(SessionParameter.USER, "admin");
        parameter.put(SessionParameter.PASSWORD, "admin");
       parameter.put(SessionParameter.ATOMPUB_URL, "http://192.168.1.36:8080/alfresco/cmisatom");
      
        parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
        Repository repository = sessionFactory.getRepositories(parameter).get(0);
        parameter.put(SessionParameter.REPOSITORY_ID, repository.getId());
       
        Session session = sessionFactory.createSession(parameter);
      
//————————————————


jar files :

chemistry-opencmis-android-client-0.11.0.jar
slf4j-android-1.6.1-RC1.jar


help me please, thank you
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
That's not the appropriate service URL for Alfresco 4.2. The correct URL is: /alfresco/api/-default-/public/cmis/versions/1.0/atom

Please change the URL and try again.

Jeff

rahmanibilel
Champ in-the-making
Champ in-the-making
Thank you verry much Smiley Happy