Other [new feature] b4xlib - a new type of library - Erel    
Nov 2, 2020   
(69 reactions) compiled.
Starting with B4A (8.80), B4i (v5.50), B4J (v7.00) and B4R (v3.50), a new type of libraries is available - b4x libraries.
A b4x library is a simple zip file with:
- Code modules. All types...
B4A Question ForegroundServiceDidNotStopInTimeException for service type dataSync - Alessandro71    
Oct 1, 2025occasionally, I get a crash report with the following text
android.app.RemoteServiceException$ForegroundServiceDidNotStopInTimeException: A foreground service of type dataSync did not stop within its timeout:
I actually have a foreground service of type dataSync where I've put the following code
Private Sub Service_Timeout(Params As Map)
Service.StopForeground(99)
End Sub
where 99 is the id used for StartForegound, but still getting the crash.
This exception is not even caught...
Share My Creation [Tool] MiniORM Models Code Generator - Convert Type to Code for generating database table - aeric    
Apr 19, 2026   
(6 reactions)
Inside Sub Process_Globals or Sub Class_Globals, add a type e.g Type Users (user_name As String...?file=%ADDITIONAL%\modgen.jar&Args=%STATE1%&codesync=True
Sub Process_Globals
Type Users...))
DB.Columns.Add(CreateMap("Name": "user_image", "Type": DB.BLOB))
DB.Columns.Add(CreateMap("Name": "admin", "Type": DB.INTEGER..., "Type": DB.INTEGER, "Default": "0"))
DB.Create
Wait For...
B4A Code Snippet Starter service and the missing foreground service type crash - Erel    
Jul 30, 2025   
(17 reactions)I recommend adding these two snippets to avoid crashes that happen when the app is somehow started while the screen is turned off:
Add to manifest editor:
SetServiceAttribute(Starter, android:foregroundServiceType, shortService)
Add to starter service:
Private Sub Service_Timeout(Params As Map)
Service.StopForeground(51042) 'this is the id of the automatic foreground notification
End Sub
It will probably be added to the templates in the future....
B4A Library MPAndroidCharts - Various type of graphs / charts (Latest library V1.22 in post #1) - Johan Schoeman    
Aug 5, 2020   
(50 reactions)Edit 6 Sep 2015: Post #3 adds Single Vertical Bar Charts and update for Pie Charts
Edit 8 Sep 2015 Post #6 update for Single Vertical Bar Charts
Edit 11 Sep 2015 Post #7 adds Single Line Charts
Edit 12 Sep 2015 Post #8 update for Single Line Charts
Edit 12 Sep 2015 Post #9 adds Single Horizontal Bar Charts
Edit 12 Sep 2015 Post #11 adds Radar Charts
Edit 13 Sep 2015 Post #12 update for Single Line...
B4J Library [PyBridge] Docling - parse and convert many types of documents - Erel    
Jan 11, 2026   
(10 reactions)This is a small example, that uses the open source Docling project to convert various file types, including OCR features, to html.
https://docling-project.github.io/docling/
Supported formats: https://docling-project.github.io/docling/usage/supported_formats/
https://www.b4x.com/basic4android/images/java_s70Lty3L7u.gif
Docling is a large library. It requires VC++ 14 toolchain to be installed: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Look for the "Desktop development...
Share My Creation [B4J] MAGMA-KEY - Test your typing speed (game, source code included) - Magma    
Oct 25, 2022   
(9 reactions)85927
Hi there...
I ve created a small game (~4hours) with B4J (seems that is extremely easy to do something like that) - i think it is easier than Visual Basic because b4j comes with all libraries you want...
In this game you can test your typing speed - your eyes - your brain
Every time pressing wrong key loosing a life, also loosing life every time key "button keys sprites" go at bottom...
When ... score goes up - speed of falling letters maximized !
- You can resize window...
B4J Tutorial MiniORM example working with custom type - aeric    
Nov 6, 2025   
(2 reactions)This example is created from MiniORM project template but product table is removed.
Category table changed to Cassa, id column (Int) changed to idCassa (String). Autoincrement is disabled.
Support CRUD using SQLite.
Cassa is a custom type
Type Cassa (IdCassa As String, Name As String)
Private Sub clvRecord_ItemClick (Index As Int, Value As Object)
Dim selectedCassa As Cassa = Value
Log($"Casa Id: ${selectedCassa.IdCassa}${CRLF}Casa Name: ${selectedCassa.Name}"$)
End Sub...
B4A Question java.lang.RuntimeException: android.app.MissingForegroundServiceTypeException: Starting FGS without a type - Alex_197    
Jul 19, 2024 add 2 lines into my manifest and specify a ForegroundServiceType.
What type to specify for Firebug messaging system? Should it be remoteMessaging? Description of this type shows this
Transfer text... they switch devices.
https://developer.android.com/about/versions/14/changes/fgs-types-required#remote....RuntimeException: android.app.MissingForegroundServiceTypeException: Starting FGS without a type callerApp...
B4J Question When to Use SetContentType or SetHeader("Content-Type", ...) - mcqueccu    
Sep 25, 2019   
(1 reaction) was successful whiles using setContentType to set the header
But when using GET request to check the status of the transaction
setContentType keeps giving me an error. Meanwhile setHeader("Content-Type","application/json") works fine with the GET.
When is it right to use SetContentType and when is it right to use setHeader
Endpoint: POST
https://api.xxxxxx.com/v1/receive
Header data value
apikey xxxxxxxxxxxxxxxxxxxx
Content-Type...
Page: 1  
2  
3  
4  
5  
6  
7