B4A Code Snippet GetSDK - DonManfred    May 1, 2014 Subname: GetSDK Description: Returns the SDK number from the Device running this code Sub GetSDK() As Int Dim p As Phone Return p.SdkVersion End Sub Tags: SDK, sdkversion Example Log("SDK="&GetSDK) ' SDK=19 (on my Phone)... B4A Code Snippet GetSDKname - DonManfred (first post)    May 2, 2014 See
http://www.b4x.com/android/forum/threads/getsdkversion.40510/
and
http://www.b4x.com/android/forum/threads/getsdk.40509/
too
log("SDK="&GetSDKname&" "&GetSDKversion)... B4A Code Snippet targetSdkVersion 35 and opting out of edge-to-edge enforcement - Erel    Jul 10, 2025   (29 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... B4A Code Snippet Notifications permission with targetSdkVersion = 33 - Erel    Jun 6, 2023   (24 reactions) .InitializeContext
Dim targetSdkVersion As Int = ctxt.RunMethodJO("getApplicationInfo", Null).GetField("targetSdkVersion")
If targetSdkVersion < 33 Then Return True
Dim... B4A Code Snippet Get the path to media files returned from ContentChooser - Erel    Jul 24, 2022   (9 reactions)   tags: Adjuntar un File It is a mistake to try to get a file path from the returned resource. It will not work in most cases, and even if you will be able to get the path, you will not be able to access it. You can use File... files SubName: GetPathFromContentResult Description: Content providers such as the media gallery... GetPathFromContentResult(UriString As String) As String If UriString.StartsWith("/") Then Return UriString... As String res = Cursor1.GetString("_data") Cursor1.Close Return res End Sub In... B4A Code Snippet targetSdkVersion 35 requirement - Erel    Jul 2, 2025   (17 reactions) 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... B4A Code Snippet [B4X] B4XOrderedMap - get first item, nth item and last item - Erel    Jun 4, 2020   (16 reactions) . 'first item Dim key As String = OrderedMap.Keys.Get(0) 'key type can be different Dim value As Object = OrderedMap.Get(key) 'nth item Dim key As String = OrderedMap.Keys.Get(n) Dim value As Object = OrderedMap.Get(key) 'last item Dim key As String = OrderedMap.Keys.Get(OrderedMap.Size - 1) Dim value As Object = OrderedMap.Get(key) ... B4A Code Snippet Setting up a foreground Bluetooth service on Android 12/13+ (SDK 36) - MbedAndroid    Aug 24, 2025   (1 reaction) Struggling to get BT to work on SDK 36, and with some help of my friend Chat, we finally got it to work. I asked Chat to resume the points you have to pay attention to, if you want BT get to work... report.
Setting up a foreground Bluetooth service on Android 12/13+ (SDK 36)
1. Manifest Service... B4A Code Snippet Back to edge-to-edge with B4A Ver13.4 and SDK 35 - Matt S.    Nov 10, 2025   (3 reactions) code and I summarized it as follows:
Important: It is assumed that you are using SDK 35 or 36.
Also...(HasFocus)
Dim ph As Phone
If ph.SdkVersion<35 Then
Log("SdkVersion<35... B4A Code Snippet targetSdkVersion 34 foreground service for mediaPlayback - Addo    Jul 4, 2024   (4 reactions) targetsdk 34
' sdk 34
SetServiceAttribute(Your_Service_Name, android:foregroundServiceType....SdkVersion <= 26 Then
StartService(Service)
Return
End If
Dim ctxt... Page: 1   2   3   4   5   6   7   |