Laatste onderwerp 4 u geleden

B4X Programming Forum forum

www.b4x.com/android/forum

XenForo-forum in het Engels. 12 rubrieken gevolgd: 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 en Tutorials & Examples.

Discussies per dag
13
Opgehaalde discussies
419
Berichten per dag
27
Rubrieken
12
Gevolgde bronnen
13
Software
XenForo

Laatste discussies

Elke 4 uur opgehaald uit de openbare feed van het forum. Alleen de titel, de link en het begin van het bericht worden weergegeven; elke link wijst terug naar de bron.

[workaround] (B4A/B4J) "The given key was not present in the dictionary"

Today I found a weird situation when I tried to open my MiniORMUtils project. I am getting the error: An error occured. Error loading file. The given key was not present in the dictionary. I am using B4A v13.50 under Windows 11. This error also happens in B4J v10.50. I tried opening the same project under Linux Mint (under VM) but there is no error . If I make a copy of the project file .b4a or .b4j and open it, there is no error! If you are also facing the same issue, my workaround: Make a copy of the project file OR Delete .b4a.meta or .b4j.meta OR Add a # at the first line of .b4a.meta or .b4j.meta Then your project should be opened without errors. I attach my project in this post.

Full blown Query Editor written with the help of ChatGPT

This was done in a day or three with the help of ChatGPT. It does a great job writing B4J REST API programs (even advanced ones) with a html skin. In our company we now have a great Query Editor with even more functionalities than the one in MS Access, but for our MySQL databases If there is enough interest, I will try to make it truly stand-alone (as it is now build-in our complete workflow to make reports)

iOS 27 Edge-to-Edge Background Fix

Just a heads-up for anyone running edge-to-edge in B4i. On iOS 27, when the app is sent to the background, the status bar becomes visible again, which can mess up the UI and functionality, especially if you have controls near the bottom of the screen. An easy fix is to update the Application_Background sub in the Main module using Erel's Full Screen apps code snippet as follows: B4X: Private Sub Application_Background Dim no As NativeObject = App no.RunMethod("setStatusBarHidden:animated:", Array(True, False)) B4XPages.Delegate.Activity_Pause End Sub

[Solved] Download Files from server with progress

Hi all How can I do something like this Download huge files with HttpUtils2 Better to use: https://www.b4x.com/android/forum/threads/simple-progress-http-download.127214/#post-796463 The attached project includes a slightly modified version of HttpUtils2 and a new service named DownloadService. The purpose of DownloadService is to make it simple to download files of... www.b4x.com from B4J?

[Linux] Install GitHub Desktop

This is not a B4J Tutorial but it can be useful if you want to install GitHub Desktop on Linux. GitHub only provide Windows and MacOS installer. There is no official package you can download and install for Linux. However, there is an open source version provided by GitHub username shiftkey. Here is the command to install the open source GitHub Desktop. I already tested on Linux Mint. Bash: wget -qO - https://mirror.mwt.me/shiftkey-desktop/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/mwt-desktop.gpg > /dev/null sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/mwt-desktop.gpg] https://mirror.mwt.me/shiftkey-desktop/deb/ any main" > /etc/apt/sources.list.d/mwt-desktop.list' Bash: sudo apt update sudo apt install github-desktop Quick Alternative If you don't want to deal with adding repositories at all, you can also run this automated installation script provided directly by the mirror maintainer: MWT's Mirror Infrastructure for open source software maintained by Matthew W. Thomas. mirror.mwt.me

Could SFtp expose JSch's Session.setTimeout()?

Could SFtp expose JSch's Session.setTimeout()? I am using the official B4A SFtp library for SFTP uploads over mobile connections. In some cases an upload can remain blocked for around 2 minutes and eventually fail with: ECONNABORTED If I start the same upload again, it can succeed almost immediately, so I would like to use a shorter socket timeout and retry the operation with a fresh SFTP connection. I tried accessing the underlying JSch Session using JavaObject, but SFtpWrapper does not expose a session field. Would it be possible to add a public property or method such as: SetTimeout(30000) or: TimeoutMs = 30000 which internally calls JSch: session.setTimeout(timeout) This would be useful for detecting stalled/broken connections earlier while still allowing normal slow transfers to continue as long as data is being transferred. Thank you.

Designer freezes and layout flickers with DatePicker + AutoScaleAll + hidden navigation bar

Hi, I'm currently using B4i 10.31 with a local Mac Build Server, but this is not a new issue introduced by this version or by the local builder. I first encountered and reported it in 2023, and have experienced it across multiple B4i versions since then. In previous years I used the Hosted Builder and had the same problem. It occurs both on the simulator and on a physical iPhone. I have now identified a reproducible trigger in a newly created layout: a DatePicker combined with AutoScaleAll and Navigation Bar Visible set to False. Steps to reproduce: 1. Create a new layout. Leave Navigation Bar Visible set to True. 2. Add a DatePicker. 3. Put only AutoScaleAll in the All variants script. 4. Preview the layout: everything works correctly. 5. Set Navigation Bar Visible to False and execute the designer script. The layout starts continuously flickering and shaking. B4i on Windows becomes unresponsive. When testing with the simulator, closing it makes the IDE responsive again... Read more

🚀 Magic API Server v2 + MagicAPI Library v8 — Multi-Project, Multi-Database, Secure Tokens & File Management Hello B4X community!

I am very happy to share a major evolution of Magic API . Magic API started with a very simple goal: Turn a database into a REST API that can be easily consumed from B4A, B4J, B4i and B4XPages without having to build the entire backend manually. The first versions were essentially based on a single api.php connected to a database. There was no administration panel, no project manager and no centralized token management. With MagicAPI Library v7 , the library made an important step forward by introducing support for multiple database engines. Now Magic API takes another major step with: Magic API Server v2 and MagicAPI B4X Library v8 These are two different components and therefore have independent version numbers: B4X: Magic API Server → v2 MagicAPI B4X Library → v8 Server v2 refers to the new PHP backend, administration panel, project architecture, security system and file... Read more

Not a tutorial

If you read any of my latest posts you'll realize that I'm a bit of a ChatGPT fan boi. I installed the Windows version of ChatGPT onto my laptop yonks ago then they came out with ChatGPT Work and ChatGPT Codex Suffering a moment of beer induced inspiration I started a project in B4XPages and stuck it in a folder let's call it MyB4XPagesProject Then I started a new Codex project in ChatGPT and pointed it to the same folder. I then talked to ChatGPT in that project and asked it things like 'can you see that project?' and it'd say something like 'Yes I can see that this is a B4XPages basic hello world project' B4XPages because when it goes viral I'd want to make a version for iPhone and Erel's system is way more betterer than having to purchase a MacBook. I'll probably eventually have to buy a used iphone but hey. If nothing else you can ask it to check your code and come up with suggestions but you can also ask it to do stuff for you. Can you make it more snazzier? ... Read more

So I'm not clever enough for B4XPages

But Kev, my ChatGPT buddy seems to love it He (ahem with my guidance) made my app Muscle Massage and I managed to get it published on the play store and I already have about 5 downloads, all of them are me And I made a web shop called GoodFunThings.com of which I am the only customer. Plus I made a browser extension called CommentThe.net where there's me and I do actually have two others who've discovered it so far. Can you use one of your old laptops as a server using an old phone with a cheap SIM card as it's own dedicated internet connection? Yep you use tunnelling with CloudFlare. I won't tell you the URL of it's first website (and it is a private server (notice how I omitted the word 'virtual') because I keep borrowing the phone with the SIM in for my UberEats delivery work but as soon as it's in range again, tadaa the website is up and running, it's very resilient. I've always loved computers but it was all getting away from me and I've really never been that good... Read more

[BANano] LoadingIndicator

By adding the attached file, when using the BANano.Await function, the LoadingIndicator starts automatically. How to use it: From B4J, go to FileManager, then AddFiles → loading-indicator.js B4X: Sub AppStart (Form1 As Form, Args() As String) ' With this little snippet, the new B4J 9.30 logs with jump are activated #if Debug ' MUST be literally this line if you want to use the B4J Logs jump to code feature! Log("BANanoLOGS") #End if ' some general settings like the name of your PWA BANano.Initialize("BANano", ...") BANano.Header.Title=".." BANano.Header.Author =".." BANano.Header.Description = "..." BANano.Header.Keywords = "..." BANano.Header.AddJavascriptFile("loading-indicator.js") ' DateTime.Now is to make sure our app is reloaded on ReBuild BANano.JAVASCRIPT_NAME = "app" & DateTime.Now & ".js" ' a PWA must have a service worker. Will be built automatically caching everything used in your Web App... Read more

MediControl: Medication reminders, health tracking and Google Drive backup with B4X

Hello everyone, I would like to share my app MediControl , developed with B4A and B4X. MediControl helps users manage their personal health information in one place: Medication schedules and reminders. Medication, vitamin and supplement inventory. Stock control and refill alerts. Health measurements such as blood pressure, glucose and weight. Appointment organization. Multiple languages. Backup and restore using the user’s Google Drive. Optional reports and data synchronization. The application is designed as a personal organization tool and does not replace professional medical advice. Publishing the app on Google Play was a much more complicated process than I expected. I had to deal with: Android SDK and target API requirements. App signing and AAB generation. Google Play Data safety forms. Health-app declarations. Foreground-service permissions. Privacy policy requirements. Store listing screenshots and... Read more

419 discussies opgehaald sinds 2 September 2026. Volg dit forum op zoekwoord →