Android Question Searching libraries for a particular usage

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Everyone,

On the B4X web site, is there an easy way to locate a particular usage in a library whether it's one that comes with B4A or a library made by the community?

As an example I'm actually looking for a way to determine the Android version number installed on a device.

Instead of asking for the coding so I can learn, I tried typing "Android version number" into the community search field and filtered it out by B4A and Library and found that no one had asked for a function that returns the version number. It would be nice if this type of search can be only for direct reference to existing libraries so it's easier to get the sample coding I need to get the version number.

Thanks.
 

Star-Dust

Expert
Licensed User
Longtime User
You can see the version of Android or better the API version from the Phone Library
See https://www.b4x.com/android/help/phone.html

B4X:
Dim p As Phone

' // 6.0+
    If p.SdkVersion >= 23 Then

    End If
API Android versione
24 Android 7.0
23 Android 6.0
22 Android 5.1
21 Android 5.0
20 Android 4.4W
19 Android 4.4
18 Android 4.3
17 Android 4.2, 4.2.2
16 Android 4.1, 4.1.1
15 Android 4.0.3, 4.0.4
14 Android 4.0, 4.0.1, 4.0.2
13 Android 3.2
12 Android 3.1.x
11 Android 3.0.x
10 Android 2.3.4; Android 2.3.3
9 Android 2.3.2; Android 2.3.1; Android 2.3
8 Android 2.2.x;
7 Android 2.1.x
6 Android 2.0.1
5 Android 2.0
4 Android 1.6
3 Android 1.5
2 Android 1.1
1 Android 1.0
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…