How to find the version of Android in LAMW lazarus / 43-Android ---------------------------------------------------------------------- maurobio · 2023-06-13 21:32 Dear ALL, How can I find programmatically the version of Android running a LAMW app in the device? Thanks in advance for any assistance you can provide. With best regards, ---------------------------------------------------------------------- jmpessoa · 2023-06-14 20:47 Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ShowMessage(IntToStr(gApp.getAPILevel)); ---------------------------------------------------------------------- maurobio · 2023-06-14 21:33 )Hi, @jmpessoa! QuoteShowMessage(IntToStr(gApp.getAPILevel));    This gives the API Level (eg. 25, 29, etc.), what I am looking for is the Android version (eg., 5.1, 10, etc.) Best regards, ---------------------------------------------------------------------- af0815 · 2023-06-15 05:57 There are some pages where the API level ist shown with the Android version https://apilevels.com/ https://developer.android.com/tools/releases/platforms A Android Version can have some API Levels. The naming of the Android version is sometime 'interesting'. Sometime dotted (eg. 8.0, 8.1) and sometime with extension chars (eg 12, 12L) :-) Looks very consistent (SCNR). As far as i know, you have to make a table by yourself for this conversion.