In my app , I need to use startActivity to see the content of the file , or use the default application to open the certain file , but sometimes the android system may not i
If you want to display error as toast then
try { startActivity(intent); } catch (ActivityNotFoundException e) { // TODO: handle exception //Show Toast... }
The error occurs because the activity not mentioned in the manifest file.