On Fri, Feb 17, 2012 at 3:45 PM, John Goche <johngoch...@googlemail.com> wrote: > I've found the following code which would allow the user to select an > email client from a list fired as an intent. The email client on the phone > would have the pdf as an attachment. Here the pdf is called shortcuts.pdf. > However I don't know how to save it so that it becomes accessible as > R.raw.shortcuts . How is this magic achieved? What is R.raw?
R.raw refers to raw resources, stored in res/raw/ in your project (or other resource sets, such as res/raw-es/ for Spanish-language raw resources). > Does it reside on external storage? No. > Do I really need to use "content://" and a content provider or can I do > away with using "android:resource://" as below? Only if your PDF is a raw resource. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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