React-native-fetch-blob: Getting No Activity found to handle Intent error opening files on Android

Created on 26 Feb 2017  路  2Comments  路  Source: wkh237/react-native-fetch-blob

When opening images on Android, everything works fine.

When however I try to open .pdf, word, or excel documents, I get the following error:

Unhandled promise rejection Error: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///storage/emulated/0/Android/data/com.twmobile/files/1475.pdf typ=application/pdf flg=0x10000000

  • please provide the version of installed library and RN project.
    0.10.2

  • a sample code snippet/repository is very helpful to spotting the problem.
    android.actionViewIntent(path, mimeType);

  • issues which have been tagged as 'needs feedback', will be closed after 2 weeks if receive no feedbacks.

Most helpful comment

Looks like the question already been answered in SO, close this issue.

All 2 comments

Also posted this on Stack Overflow here.

Looks like the question already been answered in SO, close this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Jason0112 picture Jason0112  路  3Comments

aouaki picture aouaki  路  3Comments

nicholasstephan picture nicholasstephan  路  3Comments

Sam1301 picture Sam1301  路  3Comments

gonglong picture gonglong  路  3Comments