On Tue, Oct 30, 2012 at 6:47 PM, Carlos A. M. dos Santos <
[email protected]> wrote:

> > What we tried :
> >
> > If we copy file from assets to sd card and then try to open using intent
> it
> > is working.
>
> What are you using to "open" the PDF files? Do you mean "view/display"
> or "read the file". Android does not support PDF natively so I suppose
> that you use either an external application or a PDF rendering
> library.
>
> > But we directly want to open it from assets folder.
>
> Doesn't <some-context-instance>.getAssets().open(assetName) work for you?


As you said, reading PDFs is not a native feature and requires an external
app, which would not have permission to read the PDF from another app's
Assets folder.

I believe the OP would have to write his own PDF viewer imbedded in his
app, or stick with the "copy to SDcard then open" strategy.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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

Reply via email to