Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
How to find the version of Android in LAMW
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
TChart: Wrong default val...
by
CM630
[
Today
at 12:33:44 pm]
Problem with drawing orde...
by
VisualLab
[
Today
at 12:28:20 pm]
GTK3 : Icons have borders...
by
zeljko
[
Today
at 11:44:27 am]
Lazarus Bugfix Release 4....
by
JuhaManninen
[
Today
at 10:05:03 am]
88 year D. Knuth changes ...
by
Thaddy
[
Today
at 07:31:38 am]
Any way to "embed" Window...
by
egsuh
[
Today
at 06:54:51 am]
DataPort StopBits and Flo...
by
cdbc
[
Today
at 06:52:16 am]
could Ardour's YTK be use...
by
dbannon
[
Today
at 05:20:21 am]
interface and GUID someth...
by
egsuh
[
Today
at 03:31:00 am]
Pocketbase
by
PierceNg
[
Today
at 01:30:48 am]
CADSys4 3D.
by
maurog
[
Today
at 01:00:05 am]
Questions about TFuncSeri...
by
wp
[
Today
at 12:36:23 am]
UOS - pre-compiled librar...
by
Fred vS
[
Today
at 12:34:06 am]
Pipewire API
by
Fred vS
[March 12, 2026, 10:11:02 pm]
Hello! Anything new?
by
PascalDragon
[March 12, 2026, 09:39:09 pm]
TSplitter color property ...
by
valdir.marcos
[March 12, 2026, 09:20:11 pm]
ShortStrings vs long stri...
by
valdir.marcos
[March 12, 2026, 08:55:02 pm]
LazPaint (alpha-blending,...
by
CM630
[March 12, 2026, 08:38:30 pm]
Z80 ZX Spectrum and Syste...
by
d2010
[March 12, 2026, 07:58:28 pm]
Qt6/Wayland clipboard: pa...
by
valdir.marcos
[March 12, 2026, 06:27:22 pm]
[ANN] PasBuild 1.5.0 rele...
by
valdir.marcos
[March 12, 2026, 06:19:54 pm]
Synchronizing Lazarus pro...
by
valdir.marcos
[March 12, 2026, 05:46:58 pm]
class not found
by
SA.Blackmon
[March 12, 2026, 05:27:32 pm]
Register global hotkey
by
Thaddy
[March 12, 2026, 04:20:28 pm]
Crystal report edit
by
Petrus Vorster
[March 12, 2026, 03:12:59 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to find the version of Android in LAMW (Read 1398 times)
maurobio
Hero Member
Posts: 640
Ecology is everything.
How to find the version of Android in LAMW
«
on:
June 13, 2023, 11:32:29 pm »
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,
Logged
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home
jmpessoa
Hero Member
Posts: 2330
Re: How to find the version of Android in LAMW
«
Reply #1 on:
June 14, 2023, 10:47:24 pm »
Code: Pascal
[Select]
[+]
[-]
ShowMessage
(
IntToStr
(
gApp
.
getAPILevel
)
)
;
Logged
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard
maurobio
Hero Member
Posts: 640
Ecology is everything.
Re: How to find the version of Android in LAMW
«
Reply #2 on:
June 14, 2023, 11:33:48 pm »
)Hi, @jmpessoa!
Quote
ShowMessage(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,
Logged
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 3.8 - FPC 3.2.2 on GNU/Linux Mint 19.1/20.3, Windows XP SP3, Windows 7 Professional, Windows 10 Home
af0815
Hero Member
Posts: 1409
Re: How to find the version of Android in LAMW
«
Reply #3 on:
June 15, 2023, 07:57:02 am »
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.
«
Last Edit: June 15, 2023, 08:02:39 am by af0815
»
Logged
regards
Andreas
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
How to find the version of Android in LAMW
TinyPortal
© 2005-2018