Search code examples
androidnotificationsmp3android-sdcard

Android- intent to SDCARD


I created a status bar notification to let my users know that a song is downloading to their Sd Card. My question is, how can I get it so that when the user click on the notification, it sends them to where the file is stored, in this case the download folder? Thanks.


Solution

  • Android doesn't have a default file browser, so there's no official intent for being sent to a file system location.

    You can send an intent (as a guess action view) for the file, and have it opened in the default music player or pop up a menu of choices if there are various things that can handle that.

    You can install something like the open intents file browser, and send whatever it defines as the intent for viewing a filesystem location.