Alfresco and android
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2014 06:21 PM
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
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
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2014 06:26 PM
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
Please change the URL and try again.
Jeff
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2014 07:24 PM
Thank you verry much

