Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please Tell Where is the downloaded file located #72

Closed
2 tasks done
cse1sp14cs109 opened this issue Oct 15, 2017 · 3 comments
Closed
2 tasks done

Please Tell Where is the downloaded file located #72

cse1sp14cs109 opened this issue Oct 15, 2017 · 3 comments

Comments

@cse1sp14cs109
Copy link

cse1sp14cs109 commented Oct 15, 2017

I was able to run you project and download was successful

But when i searched my file inside my mobile it is not save

Steps to reproduce

Looked at your issues #10 and #17

  1. I installed plugin for all project even enabled write, Network Access , Internet permission for android
  2. I installed PCl storage too, but did not find file inside my phone storage

Platform:

  • Xamarin forms Android

Device:

  • Real device: Samsung GT-N700(Android 4.4 ApI level 19)
@cse1sp14cs109
Copy link
Author

cse1sp14cs109 commented Oct 15, 2017

Sorry I was a Beginner. At last i enabled

CrossDownloadManager.Current.PathNameForDownloadedFile = new Func<IDownloadFile, string>(file =>
{
  string fileName = Android.Net.Uri.Parse(file.Url).Path.Split('/').Last();
  return Path.Combine(ApplicationContext.GetExternalFilesDir(Android.OS.Environment.DirectoryDownloads).AbsolutePath, fileName);
});

And My file was inside This PC\GT-N7100\Phone\Android\data\com.example.download_example\files\Download. Is this the correct solution?

@SimonSimCity
Copy link
Owner

@cse1sp14cs109 Please keep in mind that you need to set the file destination immediately after starting your app. This is because the different OS have quite different implementations in their native download-manager.

Did this already solve this issue?

Edit: I've taken advantage of the possibility and updated your markdown to make it easier readable ...

@SimonSimCity
Copy link
Owner

Closed due to lack of feedback ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants