-
Notifications
You must be signed in to change notification settings - Fork 68
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
java.lang.IllegalArgumentException: Unknown URL content://downloads/my_downloads #82
Comments
It was fail on my phone, was off download manager, this solution help me: try
{
//Open the specific App Info page:
Intent intent = new Intent(Android.Provider.Settings.ActionApplicationDetailsSettings);
intent.SetData(Android.Net.Uri.Parse("package:" + "com.android.providers.downloads"));
StartActivity(intent);
}
catch (ActivityNotFoundException e)
{
//Open the generic Apps page:
Intent intent = new Intent(Android.Provider.Settings.ActionManageApplicationsSettings );
StartActivity(intent);
} Fixes #82 |
@dashika this is nothing related to the code I wrote, do I understand that correctly ..? |
Yes, you can add my fix in code, if you want, but in not neccesary. It need if download manager turn off. |
Currently I don't really know where to put these lines ... It would be a great help to me if you would have the chance to fork this repository, fix the bug in my sample project and create a pull request so I can have a closer look at where exactly this library needs the improvement and fix it for everyone. |
@dashika You said that it also happens using my demo project. Could you please tell me more and provide me with an instruction to reproduce it? |
Turn off Download Manager on Android - and run your demo after it. |
You mean force-stop it, right? Why would you stop a system-app and expect everything to work fine 😨 And what should I do against it? I could document it and the developers then have themselves to decide how to proceed - this is something I would accept ... Please tell me what your solution is doing in detail. As far as I can see, you're just trying it once more without uri, which doesn't really help because the native donwload manager has no idea of what to do. |
It unusual situation - if you want you can decide it, no - close question =)) I wrote code upper - Open setting for turn on download manager. |
@dashika thanks for reporting. The only possibility I could reproduce this was by disabling the download-manager, which clearly is an intention that you want to stop using it. I'll add it to the documentation and let the developers handle it. This library will not be affected by this after implementing #34. So if anyone has time and feels compelled, feel free to work on it after dropping a mail to me. I'll provide you with all the info I have. |
To help us fix your issue, please provide the information in the below template.
Steps to reproduce
I have problem with Android 4.3 Samsung S4 when try download file:
java.lang.IllegalArgumentException: Unknown URL content://downloads/my_downloads
Configuration
Platform:
Device:
The text was updated successfully, but these errors were encountered: