Error parsing libraries

Brendon

Member
Licensed User
Longtime User
Hi All,
I'm developing a library to show pdf natively in my app. I've found source code for doing this, but when I try to import this library into B4A it gives me an error
Error parsing library
Object reference not set to an instance of an object.

Maybe I'm doing something wrong with my library

Can someone give me a hint on how to solve this?

Kind regards
 

Brendon

Member
Licensed User
Longtime User
As it's a LGPL suorce code, I was trying to post all of it, but I cannot as it's bigger than limits. By the way I've seen it creates an activity inside it's code. Maybe that B4A doesn't allow it.
 
Upvote 0

Brendon

Member
Licensed User
Longtime User
Thank you Erel.
Another question is can I derive an activity in B4A? I need it as library specs says to create activity from the one in library itself.

Kind regards
 
Upvote 0

Brendon

Member
Licensed User
Longtime User
Now I've solved my previous problem, but now when I import it shows me messaga of attched bitmap. Can someone give me a hint about causes of this behaviour?

Kind regards
 

Attachments

  • ImportLib.bmp
    10.5 KB · Views: 326
Upvote 0

Brendon

Member
Licensed User
Longtime User
Hi Erel,
I've made another library to manage this, and according to library tutorial, I've made a Java project, not and android one. As I've developed other libs working well, I've decided to do same thing. According to me, going on this way, I don't need a wrapper, but I don't have so many skill in B4A to be sure I don't need it, so I'd like to know if I can send you my code to have your opinion about it.

Regards
Riccardo
 
Upvote 0

Brendon

Member
Licensed User
Longtime User
Hi Erel,
I cannot post my code because is a large amount of file and it excedes max size for attachments.
I've found that i've forgotten to specify ShortName and Version declaration.
I've put thos declarations and now IDE links my library, but when i try to start my app it gives me an error:

Compiling code. 0.11
Generating R file. 0.00
Compiling generated Java code. Error
B4A line: 25
Dim a As PdfViewer
javac 1.6.0_24
src\com\palmosoft\market\main.java:221: net.sf.andpdf.pdfviewer.PdfViewerActivity is abstract; cannot be instantiated
_a = new net.sf.andpdf.pdfviewer.PdfViewerActivity();Debug.locals.put("a", _a);
^
1 error

Kind regards
Riccardo
 
Upvote 0
Top