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

Crash on FileDownload #202

Closed
indication opened this issue May 23, 2017 · 3 comments
Closed

Crash on FileDownload #202

indication opened this issue May 23, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@indication
Copy link
Owner

java.lang.SecurityException:
at android.os.Parcel.readException(Parcel.java:1620)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:183)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.insert(ContentProviderNative.java:476)
at android.content.ContentResolver.insert(ContentResolver.java:1234)
at android.app.DownloadManager.enqueue(DownloadManager.java:946)
at jp.redmine.redmineclient.fragment.FileDownload$2.onClick(FileDownload.java:114)
at android.view.View.performClick(View.java:5205)
at android.view.View$PerformClick.run(View.java:21164)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method:0)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

@indication indication added the bug label May 23, 2017
@indication indication self-assigned this May 23, 2017
@indication
Copy link
Owner Author

https://stackoverflow.com/questions/25805779/securityexception-downloadmanager-for-android-3-2

https://developer.android.com/reference/android/app/DownloadManager.Request.html
DownloadManager.Request setNotificationVisibility (int visibility):
If set to VISIBILITY_HIDDEN, this requires the permission android.permission.DOWNLOAD_WITHOUT_NOTIFICATION.

@indication
Copy link
Owner Author

Set VISIBILITY_VISIBLE_NOTIFY_COMPLETED.
Is this kind of DOWNLOAD_WITHOUT_NOTIFICATION?
Default is VISIBILITY_VISIBLE

indication pushed a commit that referenced this issue May 29, 2017
@indication indication mentioned this issue May 29, 2017
indication pushed a commit that referenced this issue May 29, 2017
- Update German translation by Atalanttore
- Update Portuguese(BR) translation by etcho
- Fix crash on FileDownload (#202)
- Try to fix infrator exception
@indication indication added this to the Version 3.21 milestone May 31, 2017
@indication
Copy link
Owner Author

Fix.

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

1 participant