@Override public OwnCloudClient getClientFor(OwnCloudAccount account, Context context) throws AccountUtils.AccountNotFoundException, OperationCanceledException, AuthenticatorException, IOException { OwnCloudVersion ownCloudVersion = null; if (account.getSavedAccount() != null) { ownCloudVersion = AccountUtils.getServerVersionForAccount( account.getSavedAccount(), context ); } if (ownCloudVersion != null && ownCloudVersion.isSessionMonitoringSupported()) { return mSingleSessionManager.getClientFor(account, context); } else { return mSimpleFactoryManager.getClientFor(account, context); } }
OwnCloudVersion version = AccountUtils.getServerVersionForAccount(account, appContext); client.setCredentials( OwnCloudCredentialsFactory.newBasicCredentials(
false); OwnCloudVersion version = AccountUtils.getServerVersionForAccount(account, appContext);