Android Question How to run the PDFWriter sample app

wdegler

Active Member
Licensed User
Longtime User
I would like to run the sample given by the author of the PDFWriter library. I obtained the needed files to compile it but I don't have the required designer .bal file to run it. Can someone let me know how to get the .bal file?

Walter Degler
 

ronell

Well-Known Member
Licensed User
Longtime User
i guess your using the sample code here
you dont need the .bal file
1. remove this line
B4X:
Activity.LoadLayout("Main.bal")
2. initialize then add the label view in at runtime
 
Upvote 0

wdegler

Active Member
Licensed User
Longtime User
Thank you for your response, Ronell.

The LoadLayout Line is removed and Label1 is initialized and added to Activity.
I am attaching the zip file with my 6 additional lines following the comment 'I added these:'.
When I compile and run now, it shows my label but nothing else happens.
Do you see anything that explains this?

Walter
 
Upvote 0

ronell

Well-Known Member
Licensed User
Longtime User
Thank you for your response, Ronell.

The LoadLayout Line is removed and Label1 is initialized and added to Activity.
I am attaching the zip file with my 6 additional lines following the comment 'I added these:'.
When I compile and run now, it shows my label but nothing else happens.
Do you see anything that explains this?

Walter
did you see the menus? in the activity title bar
 
Upvote 0

ronell

Well-Known Member
Licensed User
Longtime User
its working fine on my device,

pdf.png

can you post a screenshot that shows the problem?
 
Upvote 0

wdegler

Active Member
Licensed User
Longtime User
Thank you for your screenshot. Now I know what it should look like.

Here is my screenshot using the same code I sent you.
 

Attachments

  • PDFSampleMyScreenshot.png
    PDFSampleMyScreenshot.png
    13.9 KB · Views: 149
Upvote 0

wdegler

Active Member
Licensed User
Longtime User
Upvote 0
Top