What I am trying to achieve is sounds very familiar, it has been posted many times here and there in Stack Overflow as well, but I'm unable to get it done.
The scenario is, I receive a mail with attachment having custom extension in it. The extension is recognized by my app and it needs the FilePath to process it.
Currently, when I get the attachment in my app using getIntent().getData()
all I get is path of the form content://
I have seen methods to convert media content of the type content://
to FilePath like /sdcard/file.ext
but I was unable to convert the attachment using that. May be its obvious.
Is there any way that I can process the content://
type without actually downloading it.
Currently from the k9 mail app, when I get the custom extension, it shows my app in the list and opens it through it, but I need FilePath like /sdcard/file.ext
and I'm only able to get content://
type.
I hope I made the question clear.
Please Help.
Regards.