Tuesday, July 19, 2011

Re: [android-developers] displaying internal PDF assets

On Tue, Jul 19, 2011 at 9:39 AM, Ryan Bastic <rbastic@gmail.com> wrote:
> How can I reference these assets then using a file:// or similar syntax, so
> that when starting them as an intent it will safely expose it to a PDF
> viewer already installed on the device?

I'm not sure that you can. Readable does not necessarily mean
accessible via a Uri. You can try the android.resource Uri syntax:

http://stackoverflow.com/questions/4896223/how-to-get-an-uri-of-an-image-resource-in-android

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment