B4J Tutorials

[B4x]Padding/depadding PKCS7/5 and other

EDIT: If the message length is equal to the pad length, you have to pad to the next multiple. E.g. 16 bytes would be padded to 32 because one would not know how long the message was because the...
 
Last edited:

[B4x]Google Authenticator OTP (others will do, too) complete example with code

Attachments

  • GoogleAuthenticator.zip
    7.6 KB · Views: 464

[B4X]Cloning Class Instances, Semi-Automatic Self-Replication, and a Trick

Disclaimer:
None of the techniques used here are new to our community and you may have seen the 'Trick' used by me before.

The Problem:
We are using classes more frequently, especially with...
 

Attachments

  • cloning.zip
    12 KB · Views: 271
Last edited:

[B4X] [BitmapCreator] Creating a cross platform Tetris game

Edit: XUI2D version of Tetris: https://www.b4x.com/android/forum/threads/xui2d-tetris.107698/

tetris.gif


SS-2018-06-17_16.17.39.png
...
 

Attachments

  • B4A_Tetris.zip
    184.6 KB · Views: 1,049
  • B4i_Tetris.zip
    285.5 KB · Views: 762
  • B4J_Tetris.zip
    177.1 KB · Views: 965
Last edited:

[B4X] Using/running B4A and/or B4J on 64 bit Linux Mint 20.2 Cinnamon with 64 bit Wine

*** Contents ***
Intro
Acknowledgements
Disclaimer
Environment
Conventions used in this post
Making it work
Compiling and running your programs
A semi-automated way to get your B4J UI...
 

Attachments

  • linuxify screenshot.PNG
    linuxify screenshot.PNG
    21.1 KB · Views: 574
  • linuxify screenshot.PNG
    linuxify screenshot.PNG
    21.1 KB · Views: 516
  • CopyFilesForLinuxify.zip
    3.1 KB · Views: 523
  • Linuxify.zip
    26.3 KB · Views: 520
Last edited:

[B4X] Text Along Any Curve

The example here uses a Bezier curve which is one of a lot of possible curves.
But the text drawing routine works on any list of points.
The attached .zip has all the code (140 lines)...
 

Attachments

  • CurvedText.zip
    51.9 KB · Views: 317

[B4X] SQlite with 6 million rows

I've written a tutorial about database modelling and how long queries in a good designed db environment should take. This is a example about using huge databases. What it does:

- creates two...
 

Attachments

  • SQLiteExample.zip
    4.8 KB · Views: 907

[B4x] RSA sign & verify messages (extra: with corresponding php code)

This little tutorial is about signing and verifying data you send/receive between apps (= all "programs", even websites). You can use it in B4A without a change (I don't know how B4i works, but I...
 

[B4x] RSA example (asyncstreams)

- Changed to B4x as the subs can be used in B4A, too
- "Send File" added (new Button to send a file to the other client)



This tutorial is based on Erel's Asyncstreams example...
 

Attachments

  • RSAExample.zip
    5.9 KB · Views: 458
Last edited:

[B4X] Resumable Subs - Sleep / Wait For

New video tutorial:


Resumable subs is a new feature added in B4J v5.50 / B4i v4.00 / B4A v7.00. It dramatically simplifies the handling of asynchronous tasks.
(This feature is a...
 
Last edited:

[B4X] Proxy Server Socks 4 and Proxy Http (Source Code)

Many years ago I needed to sniff a connection and I didn't have a free sniffer available and I didn't know how to create one .... So after a long reflection I decided to create a Proxy Server in...
 

Attachments

  • Sock4.zip
    5.6 KB · Views: 334
Last edited:

[B4X] Modules, Files, Groups and Folders

The latest IDE update adds support for grouping files and modules.

Groups

SS-2017-11-27_12.25.00.png


You can add groups with a right click...
 
Last edited:

[B4X] How Resumable Subs work

This document is intended to add a little understanding as to how Resumable Subs actually work under the bonnet and is intended as a complement to how they are used as Erel explains in his...
 
Last edited:

[B4X] FontAwesome & Material Icons fonts

FontAwesome and Material Icons are two free icon sets including more than 1500 icons.
They are implemented as regular font files which means that each icon is a regular character...
 
Last edited:

[B4X] FirebaseFirestore - Customer Support Chat Demo

Here is a customer support chat demo of FirebaseFirestore for B4J
  • It listens to
    1. Chats
    2. Chat
    3. Products
    4. Sales
    5. Customers


You can further add...
 

Attachments

  • Project.zip
    66.9 KB · Views: 85

[B4X] Faces, Assemblies, Traces, and Points. Standard Classes for creating a story.

Since retiring some time ago, I have been thinking about creating stories that involve
computer operated robots which carry out actions and speech - like actors in a drama.

It would have at least...
 

Attachments

  • Tutor_A.zip
    17.9 KB · Views: 155
Last edited:

[B4X] External Editors

Short one.

You can configure the IDE to show a list of external file editors. The list shows when you right click on a file in the Files tab...
 
Last edited:

[B4x] Exchange Data via OkHttpUtils and php (or other platforms) via lists, maps, arrays, etc.

I made 7 examples how to exchange data between B4x apps and php. I use the POSTSTRING method as it is simple, secure (get-methods will be logged with the data autmatically on the server...
 

Attachments

  • PHPExamples.zip
    6.1 KB · Views: 484
Last edited:

[B4X] Custom Views with Enhanced Designer Support

SS-2016-01-14_16.16.18.png


Custom views are implemented as B4X classes or in a library.
A custom view includes a set of properties that can be set...
 

Attachments

  • B4J_Example.zip
    8.9 KB · Views: 2,020
  • BADoclet.zip
    9.4 KB · Views: 2,025
  • B4A_ViewsEx_Src.zip
    2.5 KB · Views: 2,390
  • B4i_iUI8.zip
    44.2 KB · Views: 1,338
  • B4J_ControlsFX_SRC.zip
    16.2 KB · Views: 1,715
Last edited:

[B4X] Code snippets

B4J v10.00 includes support for "code snippets". This feature will be added to the other tools in the next updates.
A code snippet is a piece of code that can be added to your code in very few...
 
Last edited:
Top