Android Tutorial [B4X] Documentation Booklets

klaus

Expert
Licensed User
Longtime User
The first post has been updated!
Erel has converted the B4X Booklets into html format to be shown in a web page.
The different links allow you to display the booklets directly in your browser.
For the example project codes, you still need to download the booklets zip file.
 

mjcoon

Well-Known Member
Licensed User
Can I make plea for the booklets to have informative titles? These show in the tabs in Acrobat Reader (and maybe other readers). At the moment many just show as "Beginners Guide" which does not help with switching between them. The SQL booklet has no title at all.

I have tried to edit titles myself but failed...
 

klaus

Expert
Licensed User
Longtime User
I had seen this too, but haven't yet found the solution to change these.
The original files are Word files and I export them as pdf files.
For these booklets, I used the Beginner's Guide Word file and adapted it.
But I don't know why this name is still in there.
Will look deeper into it.

EDIT:
Found it.
In Word files there exist a Title field, this was set to Beginner's Guide.
The booklets will be updated quite soon!
 
Last edited:

mjcoon

Well-Known Member
Licensed User
...
In Word files there exist a Title field, this was set to Beginner's Guide.
The booklets will be updated quite soon!

Thanks Klaus, I look forward to that. BTW, another small (?) update: in the SQL booklet it says: "Note: DBUtils is a code module and not a library!". But I am using it as a library. If there are any other differences between the versions the update might not be so small...

Best regards, Mike.
 

mjcoon

Well-Known Member
Licensed User
There are, I find; in the booklet it says: "The style of the table can be changed by modifying the HtmlCSS variable."

This is not (I assume) available with the library. Although an extra method to set the variable could fill the gap...

Mike.
 

klaus

Expert
Licensed User
Longtime User
Thank you for reporting these points.

The original booklets have been updated for the next edition not yet published.

There are, I find; in the booklet it says: "The style of the table can be changed by modifying the HtmlCSS variable."
Look HERE.
 

Acuario

Member
Licensed User
Longtime User
I've created a flow chart for the Android program flow, primarily so I understood the program flow myself - I hope it's correct. The booklet is very good but a picture saves 1000 words..
I've attached it in case anyone else (particularly newcomers like me) finds it useful.
 

Attachments

  • AndroidProgramFlow.pdf
    185.9 KB · Views: 441

Roger Daley

Well-Known Member
Licensed User
Longtime User

Acuario,
Looks great. Perhaps this or something similar could be included in the Intro Booklet.

Regards Roger
 

Acuario

Member
Licensed User
Longtime User
That's fine by me - anything to help. It was created using the online tools at Diagrams.net
I've attached the saved file that can be re-loaded from the site so it can be modified if needed.
 

Attachments

  • AndroidFlow.zip
    3.7 KB · Views: 358

klaus

Expert
Licensed User
Longtime User
The B4X Booklets have been updated to version 1.8.

New !
Two new booklets have been added.
B4X Cross-platform projects, which explains how to make cross-platform projects.
B4X Help tools, which shows different tool to help working with B4X.
The content of this booklet was a chapter in four booklets in the previous editions. I took them out and made a separate booklet.
 

mangojack

Well-Known Member
Licensed User
Longtime User
Many Thanks .., Was just starting to undertake the proccess of re-coding b4j / b4a projects to cross platform.

ps: a small typo ... Page 12 B4X Cross-Platform projects.

5 Project with 2 β€˜screenss
 

mangojack

Well-Known Member
Licensed User
Longtime User
@klaus ... Something else has come to light ,

In both Documentation & Source Code for the B4X_TwoScreens project the folowing errors...

xMain - 56: Unknown member: selecteditem
xScreen1 - 44: Unknown member: selecteditem

B4X:
Private Sub xcbxMain_SelectedIndexChanged (Index As Int)
    Main.SelectedIndex = Index    'We memorize the index in the variable
    Main.SelectedItem = xcbxMain.SelectedItem 'We memorize the index in the variable

I think this should this be .SelectedIndex

Cheers
 

mangojack

Well-Known Member
Licensed User
Longtime User
Sounds strange, it works OK on my devices. SelecteItem does exist:

And so it should ...

Updating B4X XUI Views library to latest version (2.30) , threw this issue out the window.
 

Peter Simpson

Expert
Licensed User
Longtime User
Good morning @klaus,
I've just quickly gone through your cross platform booklet (I read it for a quick refresher), it has some great points that I had not considered. Your booklet also jogged my memory on a couple of things that I had completely forgotten about, these will definitely improve my cross platform development techniques.

Thank you...
 

JagiChan

Member
Nicely documented . I am from the embedded world where there is only a while(1) { ; } loop which runs forever calling functions and executing sequentially.
This document helped me understand how the program flow in an Android app works. No wonder @Erel mentioned in a few posts NOT to use loops, but wait for events to fire up and then take action.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…