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 Question ForegroundServiceDidNotStopInTimeException for service type dataSync - Alessandro71    Oct 1, 2025 occasionally, 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... B4A Code Snippet Starter service and the missing foreground service type crash - Erel    Jul 30, 2025   (16 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... B4R Tutorial Data types - Erel    Apr 11, 2016   (7 reactions) The following data types are available in B4R: Numeric types: Byte: 0 - 255 Int (2 bytes): -32768 - 32768. Similar to Short type in other B4X tools. UInt (2 bytes): 0 - 65535. Long (4 bytes): -2,147,483,648 - 2,147,483,647. Similar to Int type in other B4X tools. ULong (4 bytes): 0 - 4,294,967.... Other types: Boolean: True or False. Practically it is saved as a byte with the value of 1 or 0...). Object: Objects can hold other types of values.... Page: 1   2   3   4   5   6   7   |