and do you hv an example how to send private file content through contentprovider ?
On Wednesday, June 13, 2012 11:46:23 PM UTC+5:30, Jags wrote: > > Thanks mark, i do have my file created with mode_world_readable. Hence I > am able to read it using pdf reader ! but email attachment is a problem ! > > > > On Wednesday, June 13, 2012 11:14:13 PM UTC+5:30, Mark Murphy (a Commons > Guy) wrote: >> >> 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 <[email protected]> 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 >> [email protected] >> > To unsubscribe from this group, send email to >> > [email protected] >> > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

