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
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Anyone interested in test...
by
MathMan
[
Today
at 11:18:01 am]
AI cheetah
by
Eugene Loza
[
Today
at 11:17:40 am]
Mediators and Indexed Pro...
by
Zvoni
[
Today
at 10:37:35 am]
TProcess and lots of data...
by
domasz
[
Today
at 10:33:32 am]
Noting responds when send...
by
pascalbythree
[
Today
at 10:27:23 am]
Столбец из CSV в CheckLis...
by
Red_prig
[
Today
at 08:40:50 am]
GetExceptionMask - Thread...
by
upsidasi
[
Today
at 08:33:55 am]
Un-register an LCL Compon...
by
dbannon
[
Today
at 05:19:05 am]
TFPHTTPClient.Get(URL) / ...
by
dseligo
[
Today
at 05:03:08 am]
FPC Compiler Relocation B...
by
Coldzer0
[
Today
at 04:53:42 am]
[SOLVED] Problems with ac...
by
Gercino
[
Today
at 01:04:30 am]
[SOLVED] TLabel OptimalFi...
by
Josh
[November 30, 2023, 11:43:45 pm]
Not able to add any compo...
by
andrew Bubble
[November 30, 2023, 11:41:01 pm]
Pascal script: Unable to ...
by
aducom
[November 30, 2023, 10:13:42 pm]
Lazarus Release Candidate...
by
AlexTP
[November 30, 2023, 10:01:08 pm]
Titlebar custom color
by
domasz
[November 30, 2023, 09:31:14 pm]
Dynamical creation of obj...
by
peterbos
[November 30, 2023, 09:10:55 pm]
BGRABitmap - showcase -
by
circular
[November 30, 2023, 08:52:03 pm]
Better Vectorcall Support
by
Nitorami
[November 30, 2023, 08:38:46 pm]
Windows API and wide/unic...
by
Nadar
[November 30, 2023, 08:08:58 pm]
Out of memory on a ATtiny...
by
ccrause
[November 30, 2023, 07:16:29 pm]
What is the meaning of TF...
by
MarkMLl
[November 30, 2023, 06:32:25 pm]
[SOLVED]Bash commands and...
by
TRon
[November 30, 2023, 06:23:52 pm]
how to change color of a ...
by
Joanna
[November 30, 2023, 04:28:17 pm]
Help with barcode scannin...
by
Handoko
[November 30, 2023, 04:16:10 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to find the version of Android in LAMW (Read 809 times)
maurobio
Hero Member
Posts: 611
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 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home
jmpessoa
Hero Member
Posts: 2261
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: 611
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 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home
af0815
Hero Member
Posts: 1262
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