Share Share
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1

TOPIC:

how to view the pdf file of sdcard path 10 years 3 weeks ago #10006

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
Hi guys ,please help me . I am using pdfviewer demo by radaeepdf . in sample gridview have onitemclicklistener untill the finding of pdf files .. but i directly want to open the file just passing the path of file . please reply me as soon as possible

Please Log in or Create an account to join the conversation.

how to view the pdf file of sdcard path 10 years 3 weeks ago #10007

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
you should use:
m_doc.Open( pdf_path, password );

You can find an example in onCreate method of PDFReaderAct.

Please Log in or Create an account to join the conversation.

how to view the pdf file of sdcard path 10 years 2 weeks ago #10008

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
Thank you so much Davide . i use this code only doc.Open( getIntent().getStringExtra("path"), null );
m_view.PDFOpen(doc, this);
but i got following error stack
java.lang.NoClassDefFoundError: com.radaee.viewlib.R$raw
at com.radaee.pdf.Global.Init(Global.java:366)
at com.radaee.reader.PDFNavAct.onCreate(PDFNavAct.java:37)
at android.app.Activity.performCreate(Activity.java:5133)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)

basically its terminate at Global.Init( this );
please help me..

Please Log in or Create an account to join the conversation.

how to view the pdf file of sdcard path 10 years 2 weeks ago #10010

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
Hi,
it seems that you missed to import some classes.

Can you reproduce it with the demo project?
I suggest you to check this guide: www.radaeepdf.com/support/knowledge-base...component&kbartid=41

Please Log in or Create an account to join the conversation.

how to view the pdf file of sdcard path 10 years 2 weeks ago #10011

  • support
  • support's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 700
  • Thank you received: 59
The KB page was broken.
We fixed it some hours ago.
The following user(s) said Thank You: ankur123987

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum