07-03-2014 06:00 AM
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
07-03-2014 11:23 AM
getLoaderManager().initLoader(DocumentCreateLoader.ID, null, this);
getLoaderManager().getLoader(DocumentCreateLoader.ID).forceLoad();
07-04-2014 01:36 AM
protected void onHandleIntent(Intent intent) {
…
…
Map<String,Serializable> props = new HashMap<String, Serializable>();
props.put(ContentModel.PROP_NAME, "testpdf.pdf");
DocumentCreateLoader dc = new DocumentCreateLoader(getApplicationContext(), session, destination, "TestDocByLoader.pdf", props, contentFile);
dc.loadInBackground(); // works fine
Log.e("myApp", "isStarted: " +dc.isStarted()); // return false
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.