Android Question Pdfviewer Example apk not working

junaidahmed

Well-Known Member
Licensed User
Longtime User
I have downloaded pdfviewer example from below link,For this link I have found library,source code and apk file.The Size of apk file is 4.74 MB,When I install this apk in my device its working fine, but the size of apk file which I build from source code is 1.47 MB and when I install this apk in my device its not working and showing an error message as "Unfortunately,B4A Example has stopped". Please advise how to solve the problem....

https://www.dropbox.com/sh/0h45a9v0bphxsz8/AADqUqsEhF9qY94HS1j0wppua?dl=0
 

junaidahmed

Well-Known Member
Licensed User
Longtime User
Please check the below log for device and advise how to solve the problem....

Installing file.
PackageAdded: package:b4a.example.pdfviewer
Copying updated assets files (1)
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
CopyFile()
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/b4a.example.pdfviewer-2/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]] couldn't find "libpdfview2.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:988)
at de.donmanfred.pdfviewerwrapper.init(pdfviewerwrapper.java:104)
at b4a.example.pdfviewer.main._activity_create(main.java:396)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:708)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:340)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:247)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:134)
at b4a.example.pdfviewer.main.afterFirstLayout(main.java:102)
at b4a.example.pdfviewer.main.access$000(main.java:17)
at b4a.example.pdfviewer.main$WaitForLayout.run(main.java:80)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5624)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
 
Upvote 0

junaidahmed

Well-Known Member
Licensed User
Longtime User
Ya,I have run above code in B4a 6.30 Trial Version for testing purpose.Once it solved will upgrade 6+.....
 
Upvote 0

KMatle

Expert
Licensed User
Longtime User
I have to inform to my director........

B4A 2.3 -> too old -> no solution

B4a 6.30 Trial -> TRIAL -> no libs! -> no PDF

Director -> I don't know him but I assume he does not care about your old sw or you are using a trial version. You need to buy the new version (as we all did that for to be up to date and to support Anywhere Software for the excellent work).

Generally: ONE post is enough. No posts like "please", etc. The people here help for free. Forcing anything will let them ignore you.
 
Upvote 0

junaidahmed

Well-Known Member
Licensed User
Longtime User
ok sorry.....

Hereafter I will not ask such question.................

Now I have 100% clear,I will discuss with my director to upgrade 6+
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…