Closed Naografix closed 7 years ago
Sorry, but I haven't seen this before ...
Where does the FINISHED
come from you have in the last line?
Could you please check out my repository and check if you also see it failing there? If no, please go on and remove the nuget package in the projects in your solution, include my projects and link them correspondingly. Does it now happen again? If yes you could try debugging from there on ...
Please also include what platform you tested this on.
Hello,
Sorry, FINISHED in the last line is add by me to say "no more line after Thread..."
I tried your solution, it works, but your code is in Android project, not in PCL (Xamarin Forms).
I use Android to deploy my solution
My code is a PCL ... it's just not loaded as a nuget project. Since I haven't worked with Xamarin Forms before, I can only guess how to get you on with debugging.
I guess you have a project containing the shared code and one containing the Android specific stuff, right? Import the project Plugin.DownloadManager.Abstractions
of this repository into your projects, both, where you have the shared code and there were the platform specific code goes. Import Plugin.DownloadManager.Android
in your android specific project and Plugin.DownloadManager
in the project where you have the shared code. Now you should be able to debug it all through.
There's also an introduction about PCL libraries (like this one is) on Xamarin, if you need more info: https://developer.xamarin.com/guides/cross-platform/application_fundamentals/pcl/introduction_to_portable_class_libraries/
I have a Xamarin Forms solution with PCL not Shared project. I tried to switch my code (in my main post) in my Droid project and call it with the DependencyService. And... same... My download never finished.
EDIT : Weird, I do the same thing in a new project, and it works...
@Naografix does this mean you were able to solve this? Can I close the issue?
@SimonSimCity Yes you can, thanks
Hello,
I followed the sample tutorial and I made this code:
But as you can see, I have a problem... (check my debug output)
How can I fix this?