Dear all,In one requirement I am trying to upload photo that is just captured by camera.My code is as below.
ContentFile contentFile= new ContentFileImpl(finalFile);
Log.e("myApp", "cf.getLength() " + cf.getLength());// print 12232
Map<String, Serializable> props = new HashMap<String, Serializable>();
props.put(ContentModel.PROP_NAME, finalFile.getName());
DocumentCreateLoader dcl = new DocumentCreateLoader(this, session, parentFolder, finalFile.getName(), props, contentFile);
dcl.loadInBackground();
Log.e("myApp", "1 = " + dcl.isStarted()); // return false
dcl.forceLoad();
Log.e("myApp", "2 = " + dcl.isStarted()); // return false
As the loadInBackground is not getting called the file is not getting uploaded on the server.Please help.