Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
How to load list of internal app file in jlistview ?
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
docking IDE
by
dsiders
[
Today
at 10:30:42 pm]
Error when opening a proj...
by
Tomu
[
Today
at 09:11:54 pm]
Is this safe, changing fr...
by
mas steindorff
[
Today
at 08:46:31 pm]
TPeriodicTable
by
wp
[
Today
at 08:00:38 pm]
Windows 2026_7 update and...
by
Martin_fr
[
Today
at 07:46:38 pm]
try/except error
by
toby
[
Today
at 06:55:42 pm]
KOL4 Beta available.
by
schuler
[
Today
at 06:34:34 pm]
Putting a new file on a w...
by
J-G
[
Today
at 06:24:49 pm]
Engineering Software from...
by
Thaddy
[
Today
at 05:54:50 pm]
How to connect to MariaDb...
by
Thaddy
[
Today
at 05:51:17 pm]
GTK3 is now the default w...
by
zeljko
[
Today
at 03:40:04 pm]
Computers sure have come ...
by
Zvoni
[
Today
at 03:36:38 pm]
KOL x64
by
Thaddy
[
Today
at 02:06:48 pm]
Install new .deb over exi...
by
dbannon
[
Today
at 01:45:27 pm]
FastCGI vs. CGI
by
egsuh
[
Today
at 12:45:05 pm]
Many recent books on Laza...
by
Thaddy
[
Today
at 08:47:32 am]
Difference between @ and ...
by
DavidTh30
[
Today
at 07:58:00 am]
Isn’t this funny?
by
Joanna
[
Today
at 12:04:29 am]
Slow app start on M5 MacB...
by
Thaddy
[July 15, 2026, 03:36:57 pm]
Solpage
by
munair
[July 15, 2026, 01:47:30 pm]
Need help with fphttpserv...
by
Thaddy
[July 15, 2026, 12:58:30 pm]
Freepascal
by
Thaddy
[July 15, 2026, 12:39:23 pm]
Lazarus interface to Rexx...
by
Thaddy
[July 15, 2026, 12:38:10 pm]
Parsing error?
by
Thaddy
[July 15, 2026, 12:02:02 pm]
is there PDS reader/expor...
by
cdbc
[July 15, 2026, 10:55:30 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to load list of internal app file in jlistview ? (Read 2321 times)
rsu333
Full Member
Posts: 110
How to load list of internal app file in jlistview ?
«
on:
February 24, 2021, 03:59:45 pm »
Is it possible to load list of files present in internal app to jlistview ?
When using command
self.getListoffiles
then how to display it in jlistview ?
.
Thank you.
Logged
jmpessoa
Hero Member
Posts: 2331
Re: How to load list of internal app file in jlistview ?
«
Reply #1 on:
February 27, 2021, 03:55:47 am »
Code: Pascal
[Select]
[+]
[-]
procedure
TAndroidModule1
.
jButton1Click
(
Sender
:
TObject
)
;
var
list
:
TDynArrayOfString
;
count
,
i
:
integer
;
begin
list
:
=
Self
.
GetFileList
(
Self
.
GetEnvironmentDirectoryPath
(
dirDownloads
)
)
;
//or another dir
count
:
=
Length
(
list
)
;
for
i
:
=
0
to
count
-
1
do
begin
jListView1
.
Add
(
list
[
i
]
)
;
end
;
SetLength
(
list
,
0
)
;
//free array
end
;
Logged
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard
rsu333
Full Member
Posts: 110
Re: How to load list of internal app file in jlistview ?
«
Reply #2 on:
February 27, 2021, 07:53:12 am »
Thanks a lot. I will try it soon.
Logged
jmpessoa
Hero Member
Posts: 2331
Re: How to load list of internal app file in jlistview ?
«
Reply #3 on:
February 27, 2021, 06:44:11 pm »
And don't forget: you need request "user permission" to read and write files informations ...
Logged
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
How to load list of internal app file in jlistview ?
TinyPortal
© 2005-2018