How To Open An Attachment With My Application From Within The Email App? (mime Type, Intent Filter ...)
this may look as a duplicate, but I think I have tried most of the solutions posted with no success. I am writing an application that at some point sends files by email with a cus
Solution 1:
Just in case, someone has the same issue I had, I was able to finally make it work. The problem I had was that when sending the email with the attachment I was using the mime type "message/rfc822". Changing it to "image/xyz" did the trick, and of course using the intent filter with mime type set to "*/*".
There's a slgiht different behaviour when sending the email and is that you get a chooser with every app that can SEND, not only mail apps (MMS, WhatsApp, Bluetooth,...) , but in my case it is fine.
Post a Comment for "How To Open An Attachment With My Application From Within The Email App? (mime Type, Intent Filter ...)"