<android fails to open file using intent ACTION_VI...
# stackoverflow
u
android fails to open file using intent ACTION_VIEW. On failure, it makes a toast saying couldn't find item. No error thrown into the logs either here is my current code - /** * takes list of keys and the file to open. decrypts the file and opens it using context it * received as a parameter * @param keyList takes list of keys used for encryption and decryption. * @param safeFile the file to open from safe */ fun openFile( keyList: List, safeFile: SafeFiles, context: Context, layoutInflater: LayoutInflater ) { //FILE TO BE OPENED val decryptedFile = File( Environment.getExternalStorageDirectory(),...