1

I wanted to include some pdf in an app as a built-in pdf, like when I share that app on to other device and open the app, it should contain the pdf. Edit: Actually I want to make an app which should include abc.pdf in it.All I wanted to do is add pdf inside an app and produce the app such that when I install the app on my phone , the app should contain the abc.pdf and it can be accessed by a button.

3
  • 2
    Android does not have a built-in PDF viewing app. Please explain, in detail, what you mean by "I share that app on to other device and open the app,it should contain the pdf". Commented May 4, 2017 at 11:39
  • Can you edit to add more details? Commented May 4, 2017 at 11:55
  • yes I have edited plese respond Commented May 4, 2017 at 15:49

2 Answers 2

0

I think what you are after is the asset folder and putting your file in there and then reading it. An asset is anything an android app may use which is not part of the app-structure itself such as ui components, ui image resources or code.

You need to read your pdf from the assets and then you can make the android system show it by using an appropriate app.

Check out this question:

Read a pdf file from assets folder

Sign up to request clarification or add additional context in comments.

Comments

-1

if those pdf files are static and you have fixed number of pdf files you can add them to the assets but if those pdf files are changing then you need to have a web service in which you have to store those pdf files so that they will be shared to all users

2 Comments

yes those pdf remain the same they don't change.so can u please tell how to access them in my app.and the pdf files shuld be within the app.I mean to say when I install the app on my other device the app shall contain the pdf.
i think this answer will be helpful to you stackoverflow.com/questions/17085574/…

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.