Android Tutorial [B4X] Documentation Booklets

Discussion in 'Tutorials & Examples' started by klaus, Jan 30, 2018.

  1. klaus

    klaus Expert Licensed User

    Several B4X documentation booklets are available, Download Link.

    These booklets cover the four B4X products.
    Some don't cover B4R because the subject is not relevant for B4R like Visual Designer.

    Example projects with source code are included.

    General booklets:
    B4X Getting started
    This booklet explains how to start with each B4x product (B4A, B4i, B4J and B4R).
    B4X Basic Language
    This booklet explains the Basic Language for B4A, B4i, B4J and B4R.
    B4X IDE
    This booklet explains the Integrated Developpment Environment for B4A, B4i, B4J and B4R.
    B4X Visual Designer
    This booklet explains the Visual Designer for B4a, B4i and B4J.

    Specific booklets:
    B4X Custom Views + CustomViews_SourceCode, specific code for this booklet.
    This booklet explains the CustomView subject for B4A, B4i and B4J.
    B4X Graphics
    This boouklet explains Graphics for B4A, B4i, B4J and XUI
    B4X XUI
    This boouklet explains the XUI library which makes it easier to share code between B4A, B4J and B4i projects.
    B4R ExampleProjects
    This booklet explains some B4R example projects.
    B4X SQLiteDatabase
    This booklet explains the use of the SQLite library
    B4X JavaObject-NativeObject
    This booklet explains the use of JavaObjects (B4A and B4J) and NativeObjects (B4i)

    All files are included in the zip file.

    The current editions are 1.5
    All booklets have the same edition number, to avoid confusion.
    They cover:
    B4A version 9.30
    B4i version 5.81
    B4J version 7.51
    B4R version 2.80

    Future booklets:
    none in the pipeline

    These booklets replace the product specific Beginner's Guides.

    Some of these booklets exist in other langauges:

    Español, Spanish.
    Translated by Manuel Martinez.

    Français, French.
    Translated by myself.
    Last edited: Jul 9, 2019
    Watchkido1, JohnC, maXim and 50 others like this.
  2. Cableguy

    Cableguy Expert Licensed User

    May I suggest a booklet on the new B4XUI feature, and available B4XUI controls(!?)
    MarcoRome and Sagenut like this.
  3. klaus

    klaus Expert Licensed User

    It's already in my to do list !
  4. Tadeu Botelho

    Tadeu Botelho Member Licensed User

    would be excellent
  5. @klaus maybe Stock file is missing in IDETabs example.
    Error at file EditStock => Activity.Title = "Stock " & Main.StockEditMode
    Or Main file is breaked

  6. klaus

    klaus Expert Licensed User

    Thank you for reporting this.
    Add the two lines below in the Process_Globals routine in the Main module.
    Sub Process_Globals
    Public StockEditMode = "ADD" As String
    Public StockSelectedRowID As Int
    End Sub
    Is amended for the next edition.

    Best regards.
  7. Klaus,

    The main file is empty in your booklet example.
    Could you, please, add this file here.

  8. klaus

    klaus Expert Licensed User

    The purpose of this example program is to show the Modules Tab in the IDE with several Modules in the main file.
    The content of the new Main module is:
    Sub Process_Globals
    Public StockEditMode = "ADD" As String
    Public StockSelectedRowID As Int
    End Sub

    Sub Globals
    'These global variables will be redeclared each time the activity is created.
        'These variables can only be accessed from this module.

    End Sub

    Sub Activity_Create(FirstTime As Boolean)
    'Do not forget to load the layout file created with the visual designer. For example:

    End Sub

    Sub Activity_Resume

    End Sub

    Sub Activity_Pause (UserClosed As Boolean)

    End Sub
    The only difference are the two lines in post #6.

    This project is a reduced version of the SQLiteLight4 project from the B4A User's Guide.
  9. Perfect.
    Thanks a lot.
  10. @klaus , @Erel ,

    I would like to translate the Booklets to Portuguese (Brazil) language.
    How should I proceed?
    asales and Tadeu Botelho like this.
  11. Tadeu Botelho

    Tadeu Botelho Member Licensed User

    That would be great!
  12. Erel

    Erel Administrator Staff Member Licensed User

  13. klaus

    klaus Expert Licensed User

    Erel was faster than me.
    SparrowhawkMMU likes this.
  14. asales

    asales Well-Known Member Licensed User

    klaus likes this.
  15. John W. Miescher

    John W. Miescher Member Licensed User

  16. klaus

    klaus Expert Licensed User

    You should have posted theses questions in the questions forum as they are not directly related to the B4X Booklets.

    Did you have a look at this: android.jar / targetSdkVersion / minSdkVersion
    You can use the File.DirInternal folder.
    This is a dedicated folder for the program, but it cannot be accessed by other applications.
    If you need to access the files from outsides the application you should ger the folder with the RuntimePermissions library with:
    MyFolder = RuntimePermissions.GetSafeDirDefaultExternal(SubFolder As String)
    If you don't want a subfolder, enter an empty string.
    Don't use File.DirRootExternal nor File.DirDefaultExternal.
    I have never played a mp4 file nor used ExpPlayer, did you have a look at this ExoPlayer - MediaPlayer / VideoView Alternative?
    I have used pdf with B4A, just one time for testing quite some time time ago.
  17. John W. Miescher

    John W. Miescher Member Licensed User

    Thank you, Klaus.
    This does, unfortunately, not help me any further as the directory thus created plus any content is removed again when the user uninstalls or updates the app. I've found some examples using FileProvider and I'll see if I can solve the problem in this way

    john m.
  18. DonManfred

    DonManfred Expert Licensed User

    This is not the right place to further discuss it as you already get told
    It is still valid. Feel free to create a new Thread for any Issues you have.
  19. klaus

    klaus Expert Licensed User

    The B4X Booklets have been updated to edition 1.3, details in post#1.
    Last edited: Aug 16, 2018
    clarionero, Mashiane, Erel and 2 others like this.
  20. miker2069

    miker2069 Active Member Licensed User

    This community is pretty awesome! Surprised you didn't have a donate link - I found the graphics book very useful (even after just a few minutes of browsing).
    Johan Hormaza, jimmyF and Erel like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice