Android Question PageTurner lib missing?

Beja

Expert
Licensed User
Longtime User
`Hi,
tried to run the pageturner example by agraham, but got the following:
please see the picture.
 

Attachments

  • pageturner.png
    pageturner.png
    26 KB · Views: 227

Beja

Expert
Licensed User
Longtime User
Do you have PageTurnView lib version 1.3?

Yes NJDude,
Just made sure the version is 1.3. downloaded it, unzipped and ran the example immediately.
Same result. The lib is checked normally.

This is the error when tried to compile the project:

Parsing code. Error
Error parsing program.
Error description: Unknown type: textpaginator
Are you missing a library reference?
Occurred on line: 29
Dim Pager As TextPaginator
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Thanks Erel,
yesterday I downloaded the lib and added the two files to lib folder. So I am pretty sure, unless I downloaded
an outdated lib.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
These are the lib files I used...
 

Attachments

  • PageTurnView1.3.zip
    42.8 KB · Views: 229
Upvote 0

NJDude

Expert
Licensed User
Longtime User
If you are using the files in the ZIP you posted then you should not have any problems, if you are, then you are referencing an older version, check your system.
 
Last edited:
Upvote 0

Beja

Expert
Licensed User
Longtime User
Screenshot of the lib
 

Attachments

  • pageturnview.png
    pageturnview.png
    26.7 KB · Views: 213
Upvote 0

Beja

Expert
Licensed User
Longtime User
it's almost ok now..
Thanks NJDude and I give you a credit for being patient.

Thanks to Erel for spotting the problem too

I had 2 libs, I installed b4a3.0 in a new directory with own lib.. but the IDE went to the old lib.

now have another issue.
B4X:
Sub PTException()
    Dim Ex As ExceptionEx
    Dim where As String
    Ex = LastException
    Dim args(2) As Object
    args(0) = LastException.Message
    where = Ex.StackTraceElement(2) ' get Java line of error
    args(1) = where
    PageTurner.RunOnGuiThread("ShowPTError", args)
End Sub
I can't compile.

Parsing code. Error
Error parsing program.
Error description: Unknown type: exceptionex
Are you missing a library reference?
Occurred on line: 123
Dim Ex As ExceptionEx
 
Last edited:
Upvote 0

Beja

Expert
Licensed User
Longtime User
Thank you NJDude, now it is working good.
Can you please tell me how to add text and images? I couldn't see the source of the displayed text.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Got it!
Thanks NJDude, I owe you one!

The string variable was clear I don't know how did I passed over it.. but still don't know how to add images.
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Hi NJDude,
Looking into the samples, they displayed text and didn't find an example that displayed images.
There are textual hints but no clear simple example. I hope someone can help with a working example.
 
Upvote 0
Top