• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

android 10 : android.process.media keeps stopping when invoke downloadmanager

huynq0911

Lurker
Recently I start testing my app in Android 10 (it works fine on the previous version). When I invoke download manager for a file, I got a crash with a message:

android.process.media keeps stopping

This is my snippet code:

String mFilePath = "file://"
+ FileManager.getInstance(getApplicationContext()).getDir()
+ "/"
+ fileName
+ extension;
Uri downloadUri = Uri.parse(fileUrl);
DownloadManager.Request req = new DownloadManager.Request(downloadUri);
DownloadManager dm = (DownloadManager) getSystemService(DOWNLOAD_SERVICE);
dm.enqueue(req);



What's the exact problem?
 
Last edited:
Back
Top Bottom