1. Are you ready for the Galaxy S20? Here is everything we know so far!

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

Discussion in 'Android Development' started by huynq0911, Jan 11, 2020.

  1. huynq0911

    huynq0911 Lurker
    Thread Starter

    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?
     


    #1 huynq0911, Jan 11, 2020
    Last edited: Jan 12, 2020
Loading...

Share This Page

Loading...