B4ASnippetAI/ML [SOLVED]
B4A mlKit error java.lang.NoClassDefFoundError in sdk 35 [SOLVED]
B4A mlKit error java.lang.NoClassDefFoundError in sdk 35 [SOLVED]
@valerioup · 2025-08-04
B4ASnippetB4A
Fix to error: Failed resolution of: Landroidx/work/impl/WorkDatabase
Fix to error: Failed resolution of: Landroidx/work/impl/WorkDatabase
@asales · 2025-08-04
B4ASnippetOther
Freon: Freeze On Neck personal cooler !
Freon: Freeze On Neck personal cooler !
@freedom2000 · 2025-07-30
B4ASnippetService/Receiver
Starter service and the missing foreground service type crash
Recommendation to add these two snippets to avoid crashes that happen when the app is somehow started while the screen is turned off
@Erel · 2025-07-30
B4ASnippetB4A [B4A]
Press Home with code - programmatically [B4A]
Press Home with code - programmatically [B4A]
@Magma · 2025-07-24
B4ASnippetAds
Auto height to banner inline adaptative
Returns the auto height to use in the banner inline adaptive
@asales · 2025-07-21
B4ASnippetAds
The (almost) Definitive Admob Example
To help the new members to make money with B4A, I tried to compile all the relevant Admob code (except mediation) of the forum in this example and put comments and links.
@asales · 2025-07-21
B4ASnippetB4A
Back to edge-to-edge with B4A Ver13.4 and SDK 35
Back to edge-to-edge with B4A Ver13.4 and SDK 35
@Matt S. · 2025-07-19
B4ASnippetSMS [BM]
SMS Gateway [BM]
App that creates a REST API within our phone and allows us to send SMS messages to any number we want through our personal numbers.
@Brian Michael · 2025-07-12
B4ASnippetB4A
targetSdkVersion 35 and opting out of edge-to-edge enforcement
targetSdkVersion 35 and opting out of edge-to-edge enforcement
@Erel · 2025-07-10
B4ASnippetOther
Home Central - Open Source FOSS
Reclaim old Android Tablets: Home screen Weather Calculator Conversion Kitchen timers Web View Photos album
@JakeBullet70 · 2025-07-05
B4ASnippetMaths [ALGORITHM]
Bresenham Line Algorithm. Linear interpolation. [algorithm]
Bresenham Line Algorithm. Linear interpolation. [algorithm]
@max123 · 2025-07-03
B4ASnippetB4A
targetSdkVersion 35 requirement
targetSdkVersion 35 requirement
@Erel · 2025-07-02
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-06-24
B4ASnippetOS
BiometricManager Example 2025 - With AndroidX.AppCompat
BiometricManager Example 2025 - With AndroidX.AppCompat
@Ryan Pigeon · 2025-06-23
B4ASnippetNotifications
B4XPages: opening from Notification
B4XPages: opening from Notification
@peacemaker · 2025-06-08
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
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
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