I have an app that will attach a PDF and send it using the email app the user chooses. This seems to work fine on anything, but Marshmallow. When I try this on Marshmallow I get varied results. In Gmail, I get a toast saying "Can't attach empty file" and in Outlook for Android it attaches a file and adds the .eml extension. I have tried the same published code on Marshmallow and Lollipop. Lollipop works fine and Marshmallow (Nexus 6) does not.