B4ASnippetB4A
targetSdkVersion 35 and opting out of edge-to-edge enforcement
targetSdkVersion 35 and opting out of edge-to-edge enforcement
@Erel · 2025-06-02
B4ASnippetOCR [USING MLKIT GMS VISION OCR]
B4XOCRPage - Specific OCR capture area [using MLKIT GMS Vision OCR]
B4XOCRPage - Specific OCR capture area [using MLKIT GMS Vision OCR]
@Magma · 2025-05-26
B4ASnippetB4A
BADoclet 2.0. Generate javadocs on Eclipse with Openjdk 19.0.2
BADoclet 2.0. Generate javadocs on Eclipse with Openjdk 19.0.2
@max123 · 2025-05-19
B4ASnippetLabel
SetEllipsize for Multiple Lines in B4X Labels
In B4X, the default behavior for ellipsizing text in a Label is limited to a single line when the SingleLine property is set to true. This often restricts developers who want to display longer text while still managing how it is presented in the UI. The SetEllipsize Sub provides a solution by allowing you to set ellipsizing for multiple lines (e.g., two lines) without needing to enable the SingleLine property. This enables better control over text display in Labels and improves the user interface by ensuring that overflowing text is handled gracefully.
@Mehrzad238 · 2025-05-18
B4ASnippetViewPager [TOUCH]
Disable ViewPager Swipe [Touch]
Disable ViewPager Swipe [Touch]
@Mehrzad238 · 2025-05-15
B4ASnippetB4A
Request ignore battery optimizations
This code will show a dialog that asks the user to whitelist the app and ignore battery optimizations. This is useful if your app needs to run in the background.
@Erel · 2025-05-15
B4ASnippetOther
Home Central - Open Source FOSS
Reclaim old Android Tablets: Home screen Weather Calculator Conversion Kitchen timers Web View Photos album
@JakeBullet70 · 2025-05-05
B4ASnippetFirebase
Firebase push-message sending: the token from a code string
Firebase push-message sending: the token from a code string
@peacemaker · 2025-04-30
B4ASnippetFirebase
Wake the screen up at Firebase push-message
Manipulating of the KeepAlive when the push-message is arrived - helps to switch the screen on for some seconds: and this wake-up allows to play a voice message
@peacemaker · 2025-04-30
B4ASnippetAction Bar, Drawer, etc
Get Actionbar Height
I needed a way for users to access the OS network settings in a “closed” HMI without being able to access other menus. Therefore I had to cover the actionbar with an own overlay. To find out the height to use, I developed the following function. I have not tested whether it works with a non-rooted and other devices.
@Blueforcer · 2025-04-23
B4ASnippetB4R sensor [AUTOMATIC]
RC plane Center of Gravity finder [automatic]
RC plane Center of Gravity finder [automatic]
@freedom2000 · 2025-04-13
B4ASnippetFile handling
Open a text file with any extension
Open a text file with any extension
@Sergey_New · 2025-04-11
B4ASnippetB4A [NOTOCOLOREMOJICOMPAT.TTF]
Fix Big size APK in SDK 34 [NotoColorEmojiCompat.ttf]
Fix Big size APK in SDK 34 [NotoColorEmojiCompat.ttf]
@tuhatinhvn · 2025-04-10
B4ASnippetStrings
Number to e notation
Number to e notation
@knutf · 2025-04-08
B4ASnippetTranslation/localisation
Collecting all keys for translation in Localizator
Collecting all keys for translation in Localizator
@Cadenzo · 2025-04-07
B4ASnippetTranslation/localisation
Localizator with assets for every language instead of DB
Localizator with assets (files containing a map) for every language instead of DB
@Cadenzo · 2025-04-07
B4ASnippetViews - other
setError[] - the forgotten pop-up
Sets the right-hand compound drawable of the TextView (google-ese for our label view) to the "error" icon and sets an error message that will be displayed in a popup when the TextView has focus.
@drgottjr · 2025-03-27
B4ASnippethttp
Load data from Website and display in a WebView as a Marquee
Load data from Website and display in a WebView as a Marquee
@GMan · 2025-02-27
B4ASnippetPayment
Download Paypal Transactions
Download Paypal Transactions
@Tim Chapman · 2025-02-17
B4ASnippetDrawing
Draw Floor Plan
Draw Floor Plan
@aeric · 2025-02-03
B4ASnippetFile handling [B4A]
[B4A] Save a file to the Download folder
With the latest Android restrictions, direct access to the Download folder is no longer possible. However, by using MediaStore, we can save files in a way that’s fully compatible with the new system policies.
@Star-Dust · 2025-02-02
B4ASnippetOther
RC motor + propeller test bench
This Motor Test Equipment is specially designed to measure all vital parameters of RC motors + propellers.
@freedom2000 · 2025-01-28
B4ASnippetOther
Shark Tank company value equation
Shark Tank company value equation
@Beja · 2024-12-26
B4ASnippetMenu
DSmenu like as VB6 menu
Menus very similar to VB6 menus
@dstankovic · 2024-12-25
B4ASnippetGPS/location/maps [WMM2025]
New COV-File for the World Magnetic Model is available [WMM2025]
New COV-File for the World Magnetic Model is available [WMM2025]
@BlueVision · 2024-12-20
B4ASnippetOther [MINIMALIST]
Player Scoreboard [MinimaList]
Player Scoreboard [MinimaList]
@aeric · 2024-11-14
B4ASnippetToast
Using ToasMessageShow
Usually, each repeated tap on the button that causes a message - causes the message to be displayed each time, This example will change it. Well, by clicking the button without a break, only a single message will be displayed.
@T201016 · 2024-11-14
B4ASnippetDesigner
Managing color themes with Designer Script Extensions
Managing color themes with Designer Script Extensions
@Cadenzo · 2024-11-01
B4ASnippetFile handling
SaveAs - Let the user select a target folder
This code, the opposite of ContentChooser or the simpler version of ExternalStorage. Allows the user to choose the place where the file will be saved. Simple to work with and doesn''t require permissions. Possible alternative to the external storage permission, which is mostly no longer available.
@Erel · 2024-11-01
B4ASnippetB4A
Prevent the display from turning off
Prevent the display from turning off
@Cadenzo · 2024-10-31