Third party apps cannot read the contents of your internal storage, by
default. Either:

- put the file on external storage, or

- create the file with MODE_WORLD_READABLE, or

- create a ContentProvider to serve up the file(s) and use content://
for your attachments

On Wed, Jun 13, 2012 at 1:41 PM, Jags <jag...@gmail.com> wrote:
> i am creating some files in my /data/data/com.mypackage.org/files/ using
> openFileForOutput method. I am able to read that file using 3rd party
> activity from my app, now when i send this file as attachment i see the
> attachment being attached in the mail and sent, but when the email reaches,
> there is no attachment ! interestingly, it does not happen in simulator, it
> only hapens in the device, in simulator i get the file pretty perfectly.
>
> what could be the problem ?
>
> regds
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to