Linked Questions

0 votes
1 answer
3k views

I am trying to display "NEFT.pdf" file stored in the asset folder of my android app. The following code works absolutely fine till API 25 private void CopyReadAssets(String filename) { ...
pamo's user avatar
  • 111
934 votes
24 answers
673k views

The app is crashing when I'm trying to open a file. It works below Android Nougat, but on Android Nougat it crashes. It only crashes when I try to open a file from the SD card, not from the system ...
Thomas Vos's user avatar
  • 12.6k
50 votes
3 answers
92k views

I am making an application which require to open pdf. I also have some pdf in asset folder so i am not able to open it in webview directly. By default android does not support pdf. Is there any API ...
MAC's user avatar
  • 15.9k
25 votes
4 answers
108k views

I want to create a program, that open documents without external app. I need this, because i want to scroll the document with the phones orientation(Pitch and Roll). I create a button on the bottom of ...
KhalDrogo's user avatar
  • 315
8 votes
3 answers
14k views

I am trying to read a pdf file from my assets folder but I do not know how to get the path of pdf file. I right click on pdf file and select "copy Path" and paste it Here is the another screen shot ...
Zulqarnain Mustafa's user avatar
9 votes
1 answer
17k views

Does any one has an idea on how to open a PDF file in Android? My code looks this this: public class SampleActivity extends Activity { @Override protected void onCreate(Bundle ...
YMNLRao's user avatar
  • 2,562
0 votes
2 answers
9k views

I need to save PDF file when my app installs and then open it when a user clicks on a button. I found many solutions but was not able to integrate them into one.
Rahul Kumar's user avatar
0 votes
2 answers
9k views

I placed a pdf file (bang.pdf) in assets folder, i need to open and display the pdf from assets folder when a button is clicked. The code is : package com.example.pdfviewer; import java.io.File; ...
user2837117's user avatar
0 votes
1 answer
10k views

I would like to use PdfRenderer to display the myDoc.pdf within the application: File file = new File("/sdcard/Download/myDoc.pdf"); PdfRenderer renderer = new PdfRenderer(ParcelFileDescriptor.open(...
PolGraphic's user avatar
  • 3,384
1 vote
3 answers
1k views

I am developing an app in that I wanted to display a pdf file from asset. I did so much google and also tried number of permutations and combinations but not working. CODE: private void ...
Mitesh Shah's user avatar
  • 1,739
4 votes
1 answer
4k views

I need to show a local pdf in my android app, this pdf needs to be included in my app package, I have this but I dont know how to build a File class. public void loadreglamento(View v){ //Im ...
Karlo A. López's user avatar
0 votes
1 answer
5k views

I'm trying to make an app in Android Studio that opens a PDF file saved in the assets folder of the app when I tap a button. It opens the PDF through a 3rd-party app via intents. I'm getting this ...
Ali Pardawala's user avatar
0 votes
1 answer
2k views

I have to open pdf file stored in asset folder. When I am trying to open the file in Android 6, it shows error. But, no problem with other android versions. I think its the problem with permission. ...
Shemil's user avatar
  • 387
1 vote
1 answer
2k views

I want to make a android mobile app which have a list view as a book list and when i tap on a list view cell it's open that book as a pdf. I need to store all pdf file in my app as local file, as a ...
Shuvo Karmakar's user avatar
1 vote
2 answers
3k views

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 ...
Ranjith Kumar's user avatar

15 30 50 per page