Última discussão há 21 h

Fórum B4X Programming Forum

www.b4x.com/android/forum

Fórum XenForo em inglês. 12 seções acompanhadas: Additional libraries, classes and official updates, Android Questions, B4J Libraries & Classes, B4J Questions, B4J Share Your Creations, Bugs & wishlist, Code Snippets, iOS Questions, Libraries developers questions, Old Libraries Archive, Share Your Creations e Tutorials & Examples.

Discussões por dia
15
Discussões coletadas
374
Mensagens por dia
30
Seções
12
Fontes acompanhadas
13
Motor
XenForo

Últimas discussões

Coletadas a cada 4 horas do feed público do fórum. Reproduzimos apenas o título, o link e o começo da mensagem; cada link leva à fonte.

MySteps - Step Counter App

GitHub: https://github.com/pyhoon/MySteps My girlfriend always complain when I said I have walked a long way on the whole day. She always think I am lazy and don't like to exercise. I don't have proof as I don't have a smart watch or smart band. I asked Gemini to see if I can build an app using B4A. Here is an example using runtimepermission.PERMISSION_ACTIVITY_RECOGNITION (Phone library) and store the value into KeyValueStore. No fancy UI so I made this a B4A example.

Can AI add a function to itself one-day?

Never seen a lick of this show though I’ve heard good things. I wonder if the people behind the big companies in AI have had to do this exact thing BECAUSE they can see that the AI is lying. Credit: onlyforceo “Person of Interest was talking about Never seen a lick of this show though I’ve heard good things. I wonder if the people behind the big companies in AI have had to do this exact thing BECAUSE they can see that the AI is lying.... www.facebook.com

Converting from B4A to B4XPages

I've read the booklet entitled "Converting B4A Projects to B4XPages". But I have some queries, perhaps due to my misunderstanding parts of them: 1. On my apps developed in B4A, if I remember correctly I didn't code anything in Starter.bas but I somehow started an app somewhere else. Thus when I converted my projects (i.e. apps) in 2022, I had a Starter.bas with nothing in it apart from coding supplied as standard and the 'start' coding went into B4XMainPage. I've since found out today that I can remove & delete the Starter.bas module in each app. I've done that and the apps work OK. On some of my projects, I have the various .bas modules in the project folder and on some I have the .bas modules in the B4A sub-folder of the project folder. Which is correct? 2. On one (B4A converted to B4X) project, I have an SQLite database file with a .db extension held on my box.com account and the app copies it to a directory after downloading it (unless the database file already exists in that... Read more

[B4J][B4Xlib] WiLXLayouts - a Cross-platform Layout Conversion Library

Currently, you can do cross-platform layout conversion, for example xyz.bjl to xyz.bal, by: 1. open a new B4J project 2. copy xyz.bjl to its Files folder 3. open the projects .b4j in the B4J IDE 4. use the Files tab to add xyz.bjl 5. go to the internal designer, open the xyz layout file 6. select all views and copy them to the clipboard 7. close the B4J IDE and open the target B4A IDE 8. go to internal designer and open a new empty layout 9. paste the clipboard content to the layout and save as xyz.bal You need to do steps 2, 4, 5, 8 and 9 for every layout and every variant you want to convert. If you forget to check the XUI views and BCEngine libraries in the B4A IDE Library panel you'll find you have to do things over again. The Internal Designer does its conversion magic in a black box, so we can't see what changes it made. This process is cumbersome and invites errors that can remain hidden until some expected event happens. There are ways to convert layout files (.bjl... Read more

[B4X][LOA] ListOfArrays - lightweight, powerful and flexible collection

ListOfArrays (LOA) is a simple list where each item is an array of objects, and each array represents a row. As LOA stores tabular data, all rows have the same length. LOA is lightweight and a list can be converted to a LOA and vice versa, with (almost) no overhead. It is loosely inspired by Python DataFrames. It packs all kinds of useful features, including: Stores arbitrary object types, including UI elements and class instances. Lightweight conversion between List and ListOfArrays with almost no overhead. Useful for datasets ranging from a few rows to hundreds of thousands of rows. Optional header row, allowing columns to be accessed by name or ordinal. Fast row, column, and cell access. Add, insert, replace, and delete rows and columns. Extract, reorder, duplicate, merge, and reshape columns and rows in multiple ways. Sorting by a column. GroupBy support for splitting rows by column values. Row index creation with duplicate-handling options... Read more

[B4X] [ListOfArrays] Sorting by multiple columns

Example of sorting a table by 2 or more columns. Data: B4X: Dim loa As ListOfArrays = LOAUtils.CreateEmpty(Array("Last Name", "First Name", "Age", "Favorite Color")) loa.AddRow(Array("Smith", "John", 32, "Blue")) loa.AddRow(Array("Smith", "Emily", 27, "Green")) loa.AddRow(Array("Smith", "Michael", 41, "Red")) loa.AddRow(Array("Brown", "Sarah", 35, "Purple")) loa.AddRow(Array("Brown", "Daniel", 29, "Orange")) loa.AddRow(Array("Brown", "Laura", 38, "Yellow")) loa.AddRow(Array("Taylor", "James", 24, "Black")) loa.AddRow(Array("Taylor", "Olivia", 31, "Pink")) loa.AddRow(Array("Taylor", "David", 45, "Gray")) loa.AddRow(Array("Taylor", "Emma", 26, "White")) We want it to be sorted by last name and then first name if last names are identical. The super sophisticated trick - we sort the table starting with the least important column and up to the primary column: B4X: loa.Sort("First Name") 'first we sort the secondary column loa.Sort("Last Name") 'and then we sort the primary column... Read more

Starter.bas module's coding incorporation into B4XMainPage

I have an app originally written in B4A with a Starter.bas module which has no coding written by me and its coding is shown below. I have converted the app to B4XPages. The app now has Main (standard coding as supplied by B4X) & B4XMainPage (coded by me) modules. I saw in another thread "In most cases you can simply move everything to B4XMainPage and Service_Create -> B4XPage_Created". I presume that after doing so, the Starter.bas module should be removed and deleted from the app. Could anyone clarify what the B4X MainPage should now look like? PS Apologies if I'm being stupid in not understanding exactly what to do. Starter.bas: #Region Service Attributes #StartAtBoot: False #ExcludeFromLibrary: True #End Region Sub Process_Globals 'These global variables will be declared once when the application starts. 'These variables can be accessed from all modules. End Sub Sub Service_Create 'This is the program entry point. 'This is a good place to load resources that... Read more

File.Exists("","") return true using JRE 26

Hi, I am encountering an issue after upgrading to JRE 26. If I pass an empty string for File.Exists, it returns true. While in previous versions like JRE 23, it returns False. B4X: Dim dc As DirectoryChooser dc.Initialize Dim path As String = dc.Show(MainForm) If File.Exists(path,"") Then 'empty string if no file selected Log("do something") End If

Updates to internal libraries

This thread will be used for updates of libraries that are included in the IDE. You should check the currently installed version before updating an internal library. Installation instructions Each zip file contains three files with the following extensions: .xml, .a and .h. You need to copy the xml file to the internal libraries folder on the Windows computer. If you are using a local Mac builder then you need to copy the .a and .h files to the Mac Libs folder.

OPC UA industrial client library - Connect to servers / devices

Hello everyone, Here is my OPC UA Client library for B4J. I use this library to connect to OPC UA servers for testing, development, and general industrial communication work. It is designed to be simple to use, reliable, and fully compatible with standard OPC UA servers, compatible hardware devices and machinery, including my own B4J OPC UA Server library. OPC UA server library link below OPC UA industrial server library - Connect and test your clients Hello everyone, Here is my OPC UA Server library for B4J. I use this library to host OPC UA endpoints for testing, development, and general industrial communication work. It is designed to be simple to run, reliable, and fully compatible with standard OPC UA clients, including my own B4J OPC UA... www.b4x.com What is OPC UA? OPC UA is a high‑performance industrial communication standard designed for secure, structured, and reliable data exchange. It is widely used in automation, robotics, manufacturing, SCADA systems, and IIoT platforms. The one line takeaway is that OPC UA is a secure, structured, real time industrial protocol that allows devices and software to communicate using a unified information model. Once initialised, this client library can connect to any... Read more

Promoting B4J - What do you think?

While there are many programming language available today, including free tools, there aren't many quality RAD (rapid application development) tools. As I see it, B4J, especially after the latest update which adds an internal designer, is a good candidate to to be a very popular programming language / tool. I think of it as a modern VB6. A tool to get the job done. It can also be a good choice for teaching programming. How can we better promote B4J? What do you think?

374 discussões coletadas desde 2 September 2026. Acompanhe este fórum com uma palavra-chave →