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

java.lang.IllegalArgumentException: Unknown URL content://downloads/my_downloads #82

Closed
2 tasks done
dashika opened this issue Apr 10, 2018 · 9 comments
Closed
2 tasks done
Labels

Comments

@dashika
Copy link

dashika commented Apr 10, 2018

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:

  • Android 4.3

Device:

  • Real device (Samsung S4)
@dashika
Copy link
Author

dashika commented Apr 10, 2018

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

@SimonSimCity
Copy link
Owner

@dashika this is nothing related to the code I wrote, do I understand that correctly ..?

@SimonSimCity SimonSimCity added feedback-needed The author needs to provide feedback because it's not clear what to do or how to reproduce the bug. Android labels Apr 14, 2018
@dashika
Copy link
Author

dashika commented Apr 15, 2018

Yes, you can add my fix in code, if you want, but in not neccesary. It need if download manager turn off.
If download manager turn off - and I try download something using your demo - happened java.lang.IllegalArgumentException.

@SimonSimCity
Copy link
Owner

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.

@SimonSimCity
Copy link
Owner

@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?

@dashika
Copy link
Author

dashika commented Jun 4, 2018

Turn off Download Manager on Android - and run your demo after it.

@SimonSimCity
Copy link
Owner

SimonSimCity commented Jun 4, 2018

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.

@dashika
Copy link
Author

dashika commented Jun 4, 2018

It unusual situation - if you want you can decide it, no - close question =))
On my phone happened this situation - so I described you about it.

I wrote code upper - Open setting for turn on download manager.

@SimonSimCity
Copy link
Owner

@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.

@SimonSimCity SimonSimCity removed the feedback-needed The author needs to provide feedback because it's not clear what to do or how to reproduce the bug. label Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants