i.putExtra(FileDownloader.EXTRA_REMOTE_PATH, mFile.getRemotePath());\r
i.putExtra(FileDownloader.EXTRA_FILE_PATH, mFile.getURLDecodedRemotePath());\r
i.putExtra(FileDownloader.EXTRA_FILE_SIZE, mFile.getFileLength());\r
i.putExtra(FileDownloader.EXTRA_REMOTE_PATH, mFile.getRemotePath());\r
i.putExtra(FileDownloader.EXTRA_FILE_PATH, mFile.getURLDecodedRemotePath());\r
i.putExtra(FileDownloader.EXTRA_FILE_SIZE, mFile.getFileLength());\r
* the time that the file was created. There is a chance that this will\r
* be fixed in future versions. Use this method to check if this version of\r
* ownCloud has this fix.\r
* the time that the file was created. There is a chance that this will\r
* be fixed in future versions. Use this method to check if this version of\r
* ownCloud has this fix.\r
Account ocAccount = mIntent.getParcelableExtra(FileDownloader.EXTRA_ACCOUNT);\r
if(ocAccount != null){\r
AccountManager accManager = (AccountManager) getActivity().getSystemService(Context.ACCOUNT_SERVICE);\r
OwnCloudVersion ocVersion = new OwnCloudVersion(accManager\r
.getUserData(ocAccount, AccountAuthenticator.KEY_OC_VERSION));\r
Account ocAccount = mIntent.getParcelableExtra(FileDownloader.EXTRA_ACCOUNT);\r
if(ocAccount != null){\r
AccountManager accManager = (AccountManager) getActivity().getSystemService(Context.ACCOUNT_SERVICE);\r
OwnCloudVersion ocVersion = new OwnCloudVersion(accManager\r
.getUserData(ocAccount, AccountAuthenticator.KEY_OC_VERSION));\r
private class DownloadFinishReceiver extends BroadcastReceiver {\r
@Override\r
public void onReceive(Context context, Intent intent) {\r
private class DownloadFinishReceiver extends BroadcastReceiver {\r
@Override\r
public void onReceive(Context context, Intent intent) {\r
if (intent.getAction().equals(FileDownloader.BAD_DOWNLOAD_MESSAGE)) {\r
Toast.makeText(context, R.string.downloader_download_failed , Toast.LENGTH_SHORT).show();\r
\r
if (intent.getAction().equals(FileDownloader.BAD_DOWNLOAD_MESSAGE)) {\r
Toast.makeText(context, R.string.downloader_download_failed , Toast.LENGTH_SHORT).show();\r
\r