Another Forum area for B4X?

  1. Many things in B4X (not talking about B4R here) are executed in the background with background threads. With the exception of server solutions, the B4X code always runs on the main thread. Libraries can easily run tasks on background threads, there is a built-in thread pool in the framework.
    Stuff like communication, database operations, file operations and others include async APIs.

It is not exactly related but it is very important for B4X developers to become familiar with resumable subs.
It allows developers to run async code in almost the same way you run regular synchronous code.
For example:

HttpJob.Download(link)
Wait For JobDone 'not the exact syntax
'Work with result

Overall the performance of B4X is very good. Tip: never test performance in debug mode. It will be much slower.

  1. Not really. You can create 2d games with XUI2D: https://www.b4x.com/android/forum/threads/96454/#content
  2. No.
  3. True.
  4. B4A and B4i can of course do many things with the cameras. It is quite simple to access native libraries (Java in the case of B4J) so if you find a Java library for this, it will not be too complicated to use it from B4J. A quick search revealed this library: https://www.b4x.com/android/forum/threads/class-webcam-capture.53211/#content
    I never tried it myself.
  5. Creating a standalone executable with B4J, is very simple. Don’t use the old Launch4j tool. Use the built-in packager: https://www.b4x.com/android/forum/threads/integrated-b4jpackager11-the-simple-way-to-distribute-standalone-ui-apps.117880/#content
    The result package size will be about 35mb without WebView or 50mb with it. The size comes from the embedded JRE.
    Note that the sizes of B4i IPA or B4A APK are very small. The framework will add about 400kb.
  6. Yes. Search for Pi4J.
3 Likes