Other [new feature] b4xlib - a new type of library - Erel    Nov 2, 2020   (69 reactions)   tags: b4xlib;libraries, b4x library, Erel 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 Code Snippet Starter service and the missing foreground service type crash - Erel    Jul 30, 2025   (15 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)   tags: B4A Charts, chart graph, graficas 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... Share My Creation [B4J] MAGMA-KEY - Test your typing speed (game, source code included) - Magma    Oct 25, 2022   (8 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... 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... B4A Question [SOLVED] Is it necessary add SetServiceAttribute ... foregroundServiceType, shortService on Starter Service? - scsjc    Aug 20, 2024 Is it necessary to put foregroundServiceType - shortService in a Starter Service? SetServiceAttribute(Starter, android:foregroundServiceType, shortService) is necesary add SERVICE_TIMEOUT? What value should be used for NotificationID? 'This is only needed if you have declared the foreground service type to be shortService! Private Sub Service_Timeout(Params As Map) Service.StopForeground(NotificationId) End Sub... B4A Code Snippet [B4X] Check if Internet interfaces are enabled and internet status + type (WiFi/Cell/LAN) - Sergio Haurat    Jul 3, 2024   (10 reactions) ("Interface connected?: " & ifSts.IPs.IsIFConnected) Log("Connection type: " & ifSts.IPs.ConnType) Log("Local IP: " & ifSts.IPs.IP) SPPing... B4A Code Snippet Check Internet connection + Know connection type (WiFi/Cell) - Sergio Haurat    Jun 22, 2024   (9 reactions) -is-available-type-wifi-cell-lan.161750/ Please do not use the following code in your projects. Below I share a function that returns if the Internet connection exists and what type of connection... for some time (since sdk 28/29) Sub Process_Globals Type tpeCheckInternet(blnIsOnline As Boolean, strType As String) End Sub Public Sub CheckInternet() As tpeCheckInternet Dim ci As tpeCheckInternet ci.Initialize ci.strType = "NONE" ci.blnIsOnline = False Dim jo... B4J Question [B4X] How to get a GUIDType Simple Type / GUID - imbault    Jan 10, 2018 Hi to all, I'm tryig to get this pattern : The GUIDType simple type is a string that is restricted by the following pattern: \{{8}-{4}-{4}-{4}-{12}\} I tried this code, which gives an error : java.lang.RuntimeException: Method: UUID not found in: java.util.UUID Dim jo As JavaObject Return jo.InitializeStatic("java.util.UUID").RunMethod("UUID", Null) Any clue, please... B4J Library MemTypeChecker – 100% Reliable Image Validation (Magic Numbers + MIME + Decoding) - Addo    Mar 2, 2025   (9 reactions) Author: Addo Version: 1.0 Requires: Java 8+ Library Type: Java-based wrapper for B4J MemTypeChecker is a 100% reliable image validation library for B4J. Unlike simple file extension checks... Check – Detects images based on their actual file signature. ✅ MIME Type Check – Uses Java's built-in Files.probeContentType(). ✅ Image Decoding Test – Ensures the file is not corrupted... verification. Usage ' simply declare it Dim checker As MemTypeChecker ' then use it Log(checker... Page: 1   2   3   4   5   6   7   |