android - Send email with attachment from internal storage -


i create file on internal storage suggested android docs. accurate file created under specific directory in internal storage. using mode world_readable mode. later on try attach file using email program. able file attached, sending email failed (does not seem to load file) sure internal storage/permission thingy.

anyone knows how fix or working example? suck have convert on external storage.

thank you

ps:i checked other threads , don't seem have solutions (old threads)

i'm assuming trying send file email attachment using intents.

the reason why file empty email app not have access file in /data/data/package_name/myfile_name, due androids security model (the /data/data/package_name directory private app).

in order add file attachment, need write public storage (such sd card) email app can access it.


Comments