Android downloading file through DownloadManager not working correctly
I'm trying to download files thru DownloadManager, it works perfectly on most of the phones (Nexus family, S3, etc) but on Galaxy S2 for some reason the download works, but the name of the file is set wrong and when I try to open it (either from notification, either downloads app) it says that the file cannot be opened, even for files like jpeg, gif, png, etc. Here is the code: DownloadManager downloadManager = (DownloadManager) service .getSystemService(Context.DOWNLOAD_SERVICE); DownloadManager.Request downloadReq = new DownloadManager.Request( Uri.parse(URL)); downloadReq .setAllowedNetwork
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.