I download a file and send a notification to notification bar. When the user clicks it, the system will open the file. But sometimes, there’s no application for the downloaded file to open it, so I want to toast a message to user to tell them the file can not opened.
I want to know is there a broadcast sent by Android system to tell me that can not open the
file.
As I see from your question, you want to toast a message when NotFoundActivityException occurs. So, you can do the code as follow :