In my app I need to open a file which I choose by Intent
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("*/*");
startActivityForResult(Intent.createChooser(intent, "Complete action using"), 1);
it's a .docx file and to parse it I need to open a FileInputStream, but I can't get a proper path from URI I get
Logs
content://com.android.externalstorage.documents/document/primary%3Adata.docx
content:/com.android.externalstorage.documents/document/primary%3Adata.docx (No such file or directory)
I tried a few methods, but they didn't help me. So how I can do it?
Thanks for advance