- Posts: 97
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
how to view the pdf file of sdcard path
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
10 years 8 months ago #10006
by ankur123987
how to view the pdf file of sdcard path was created by ankur123987
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
10 years 8 months ago #10007
by Davide
Replied by Davide on topic how to view the pdf file of sdcard path
Hi,
you should use:
You can find an example in onCreate method of PDFReaderAct.
you should use:
Code:
m_doc.Open( pdf_path, password );
You can find an example in onCreate method of PDFReaderAct.
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 8 months ago #10008
by ankur123987
Replied by ankur123987 on topic how to view the pdf file of sdcard path
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..
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..
10 years 8 months ago #10010
by Davide
Replied by Davide on topic how to view the pdf file of sdcard path
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
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
Time to create page: 0.412 seconds