B4A Tutorial android.jar / targetSdkVersion / minSdkVersion - Erel    
Oct 18, 2023   
(93 reactions)   
tags: runtime permission, sdk version, Targetsdk, SDK, B4AThere are several versioned components that affect the compilation process and the runtime behavior... you choose which version to use.
Each Android version is mapped to an api level. You can see this mapping here: https://en.wikipedia.org/wiki/Android_version_history#Overview
The api level is used in our code.
minSdkVersion
Set in the manifest editor. Default value is 5 (Android 2.0). This one is very simple. Your app will only run on devices running this OS version or higher.
In most cases...
Other B4A v13.7 BETA - targetSdkVersion = 36 + Edge to Edge - Erel    
Jul 30, 2026   
(33 reactions)I'm happy to release a new BETA version of B4A.
The main improvements in this version are related to new requirements enforced with targetSdkVersion=36. Apps running on new devices now run in edge to edge mode (E2E). This means that the activity fills the whole screen and other elements, such as the system bars, are overlaid on top of it. The way to deal with this change is to add a "root" panel that is positioned in the content area and add any layout that shouldn't...
B4A Tutorial B4A Change Log (versions history) - Erel    
Oct 15, 2026   
(13 reactions)   
tags: ide, change whatsnew/threads/b4a-v13-7-targetsdkversion-36-edge-to-edge.171756/
Support for targetSdkVersion=36 and EdgeToEdge... WebView.AllowFileAccess property. It is needed with targetSdkVersion >= 30 to allow file system access... where updated with preparation for Android 14 (targetSdkVersion=34) requirements.
Many... resources.
The new version depends on Java 19.
Many of the features depend on an updated Android SDK... services and targetSdkVersion=34+: https://www.b4x.com/android/forum/t...getsdkversion-34-and-services...
B4A Code Snippet targetSdkVersion 35 and opting out of edge-to-edge enforcement - Erel    
Jul 10, 2025   
(30 reactions)Starting from B4A v13.4, the default themes (Themes.LightTheme / Themes.DarkTheme) already include the snippet that opts out of edge-edge. You only need this if you use a customize theme.
The recommended targetSdkVersion is presently 34, however if you like to experiment with v35 then your app will be enforced to become edge-to-edge. This is a feature that will be mandatory at some point in the future (maybe 2 years from now) and it goes together with other upcoming requirements of handling...
B4A Question Images loaded in webviews are not displayed in mode “debug (rapid)” B4A 3.50 version - bgsoft    
Mar 18, 2014In the new Basic4Android 3.50 version, I realised that images loaded in webviews are not displayed in mode “debug (rapid)”. In other modes, as “debug (legacy)” and “release” are shown normally.
There is a simple example to check this:
Sub Globals
Dim WebV As WebView
End Sub
Sub Activity_Create(FirstTime AsBoolean)
Activity.LoadLayout("Layout1")
WebV.Initialize("WebV")
Activity.AddView(WebV, 0dip, 0dip, 100%x, 100%y)
WebV.LoadHtml("<html>...
B4A Tutorial Android 14 / targetSdkVersion 34 and Services - Erel    
Aug 5, 2024   
(23 reactions)B4A v13.0+ should be used with targetSdkVersion 34+.
Android 14 continues the longtime trend... here: https://developer.android.com/about/versions/14/changes/fgs-types-required
The suitability....com/about/versions/14/changes/fgs-types-required#media
We need to add two things to the manifest... its requirements here: https://developer.android.com/about/versions/14/changes/fgs-types... Google Play reviewers approval: https://developer.android.com/about/versions/14/changes/fgs-types...
Share My Creation [B4X][UUIDv7] (UPDATE) Class UUID generation for version 7 - TILogistic    
Mar 13, 2026   
(9 reactions)This class correctly implements UUIDv7, following the recommendations of RFC 4122 and the UUIDv7 proposal.
It generates time-sortable UUIDs with the correct version and variant, and with sufficient randomness to guarantee their uniqueness.
Furthermore, it handles collisions within the same millisecond using monotonic increments, following industry-standard practices for modern UUIDs.
🕒 48-bit...
🔢 Correct version and variant according to RFC 4122
⚡ Monotonic: prevents duplicates if multiple...
B4A Tutorial GUI SDK Manager for newer versions of Android tools - Erel    
Dec 20, 2017   
(33 reactions)   
tags: Android SDK Manager, ESTUDAR, sdkmanager, tools, B4AEdit: If you are using B4A v7.8+ then a newer version of B4A Sdk Manager is preinstalled. Follow these instructions instead: https://www.b4x.com/b4a.html#installation
The GUI interface of Android SDK Manager has been removed in the latest version of Android SDK.
It was replaced with a command line tool named sdkmanager.bat.
Most developers, including new B4A developers, still use a version which does include the GUI interface, as the B4A download page points to an older version...
B4A Code Snippet Notifications permission with targetSdkVersion = 33 - Erel    
Jun 6, 2023   
(24 reactions) showing notifications. When targetSdkVersion < 33, the OS will show the permission dialog automatically before the notification is displayed.
Once we switch to targetSdkVersion=33 we are responsible for... that targetSdkVersion >= 33
Private Sub CheckAndRequestNotificationPermission As ResumableSub
Dim p As Phone
If p.SdkVersion < 33 Then Return True
Dim ctxt As JavaObject
ctxt.InitializeContext
Dim targetSdkVersion As Int = ctxt.RunMethodJO("getApplicationInfo", Null...
B4A Tutorial Version safe APK installation - Erel    
Oct 12, 2018   
(37 reactions)   
tags: apk install, B4A APK Installation, SDK, apk installation, b4a sdk, APKAs explained in this tutorial all store apps will soon be forced to target the latest SDK.
This means that we can no longer rely on the OS backwards compatibility features and need to handle the behavior changes ourselves.
Starting from Android 8 (API 26) each app needs to explicitly request a special permission to install other apps. The global "install applications from unknown sources&qu...
Page: 1  
2  
3  
4  
5  
6  
7