B4A Tutorial android.jar / targetSdkVersion / minSdkVersion - Erel    
Oct 18, 2023   
(93 reactions)   
tags: runtime permission, sdk version, Targetsdk, SDK, B4A errors.
targetSdkVersion
Set in the manifest editor.
This one is a bit more confusing. It helps... they run on Android 6+).
The way to solve it is to check the targetSdkVersion value. If it is 22 or below... it without those changes.
This means that an app with targetSdkVersion set to 14 (Android 4.0..., nor handle any other breaking change.
Q: Will my app run on Android 4.0 if targetSdkVersion is set to 8.0?
A: Yes.
Q: Can I use new features without setting the targetSdkVersion to a higher version...
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...
link: Don't worry. B4XView is just a cross platform (and better designed) API similar to View.
As an e...
link: 1. No such thing B4A app vs. B4X app. You mean B4XPages vs. non-B4XPages (activities).
2. 172807...
link: are related to new requirements enforced with targetSdkVersion=36. Apps running on new devices now run in...
B4A Code Snippet targetSdkVersion 35 and opting out of edge-to-edge enforcement - Erel    
Jul 10, 2025   
(30 reactions).
The recommended targetSdkVersion is presently 34, however if you like to experiment with v35 then your app... "android sdk platform 35" with B4A Sdk Manager.
2. Configure the IDE to use android.jar from...
link: No. You should set targetSdkVersion to 35 for now....
link: targetSdkVersion 36 not support with windowOptOutEdgeToEdgeEnforcement ?...
link:
Include this line:
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</...
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...
link:
My app is a live scoring app for cricket, and it uses a service that runs a timer every 20 seconds ...
link: My app is a live scoring app for cricket, and it uses a service that runs a timer every 20 seconds a...
link:
Where is NotificationId set ?
It is an Int of your choice, an arbitrary value of your own.
You cou...
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....InitializeContext
Dim targetSdkVersion As Int = ctxt.RunMethodJO("getApplicationInfo", Null).GetField("targetSdkVersion")
If targetSdkVersion < 33 Then Return True
Dim...
Other B4A v13.7 targetSdkVersion = 36 + Edge to Edge - Erel    
Aug 9, 2026   
(31 reactions)I'm happy to release a new 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...
link:
I wish one day we see JSON for designer. one member in this forum have solved it with small framewo...
link: to new requirements enforced with targetSdkVersion=36. Apps running on new devices now run in edge to...
link: Better to start a new thread and provide more information. With B4XPages the pages should be adjuste...
B4A Code Snippet targetSdkVersion 35 requirement - Erel    
Jul 2, 2025   
(17 reactions)/targetsdkversion-35-and-opting-out-of-edge-to-edge-enforcement.167109/#content
During July I will release an updated SDK package with SDK 35, though you can already install it now as explained in that link.
Note that the IDE currently shows a warning if targetSdkVersion isn't 34...The behavior changes are listed here: https://developer.android.com/about/versions/15/behavior-changes-15
The only issue that most developers will encounter is related to the new "edge to edge...
B4A Code Snippet targetSdkVersion 34 foreground service for mediaPlayback - Addo    
Jul 4, 2024   
(4 reactions).SdkVersion <= 26 Then
StartService(Service)
Return
End If
Dim ctxt...by following @Erel Update on this Post https://www.b4x.com/android/forum/threads/background-location-tracking.99873/#post-993226
targeting Sdkversion = 34, if you have a foregroundservice that do media play back in the background you will need to add this to your manifest in order to migrate to targetsdk 34
' sdk 34
SetServiceAttribute(Your_Service_Name, android:foregroundServiceType...
B4A Question Size reduction after setting targetSdkVersion="35" - Alessandro71    
Jul 16, 2025   
(6 reactions)unexpected good news while converting apps to SDK 35:
one app, with just the manifest change (no other code changes) reduced the .aab size from 11.2MB to 8.8MB...
link: example of size reduction: version 65 is compiled with B4A 13.40 and SDK 35
165891...
B4A Question targetSdkVersion="34" is it ready? - Scantech    
Jul 2, 2024Can we set targetSdkVersion="34" now?...
link:
I foresee a new version of B4A is coming soon.
Depends on B4A v13.0+
edit: Oh, the beta...
link: Updated to 34 but still getting policy violations?
One of your test tracks may be targeting an old...
Page: 1  
2  
3  
4  
5  
6  
7