Activitynotfoundexception: No Activity Found To Handle Intent { Act=android.intent.action.view Dat=file:///mnt/sdcard/testdata5.pdf
Solution 1:
That is because your device or emulator does not have an application capable of viewing a local PDF file.
Solution 2:
I faced the same problem apparently , Android does not have a stock PDF Viewer but as an alternative if you have the pdf up on the cloud then u can open it in a webView which opens up a google docs link pointing to your pdf url .
Look at this post here
Solution 3:
Whenever you start an intent, you would have to have the native app installed on the emulator to handle that intent. Ex. If you invoke an intent with Maps as the action, you would have to use the Google API's based emulator. By default, android emulator does not have a PDF reader. You could test this on a device with a PDF reader and it should work fine.
Pls mark the answer as correct if you think your issue has been resolved.
Post a Comment for "Activitynotfoundexception: No Activity Found To Handle Intent { Act=android.intent.action.view Dat=file:///mnt/sdcard/testdata5.pdf"