Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
How find Total Space
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
LazPaint (alpha-blending,...
by
circular
[
Today
at 06:38:33 pm]
How to use the Event Log?
by
Martin_fr
[
Today
at 06:36:59 pm]
Default and speed effect
by
Okoba
[
Today
at 06:33:48 pm]
Anonymous Unions-Middle R...
by
jamie
[
Today
at 06:08:15 pm]
SQLite Unique
by
Pe3s
[
Today
at 05:54:38 pm]
Initializing an array
by
jamie
[
Today
at 05:35:14 pm]
PostgreSQL: typeinfo erro...
by
Чебурашка
[
Today
at 04:50:52 pm]
Is Meta programming possi...
by
ASerge
[
Today
at 04:39:06 pm]
Sevenzip. Pas with multiv...
by
datilas
[
Today
at 04:33:37 pm]
Hole punching - Step by S...
by
ginoo
[
Today
at 04:25:22 pm]
Error in Sway
by
AmatCoder
[
Today
at 04:02:28 pm]
Google Snappy bindings fo...
by
Okoba
[
Today
at 03:39:37 pm]
CEF4Delphi under Ubuntu C...
by
myisjwj
[
Today
at 02:51:10 pm]
how to download fulling f...
by
af0815
[
Today
at 02:36:40 pm]
Why is the rectangle the ...
by
zeljko
[
Today
at 02:35:37 pm]
lhelp not working on Linu...
by
zeljko
[
Today
at 02:33:47 pm]
How to download a file fr...
by
maurobio
[
Today
at 01:55:45 pm]
min() function behavior i...
by
tetrastes
[
Today
at 10:17:25 am]
Dark mode in app - white ...
by
d7_2_laz
[
Today
at 10:11:37 am]
BoxChart cannot be color ...
by
wp
[
Today
at 10:10:50 am]
Help for downloand file
by
rvk
[
Today
at 09:29:43 am]
Installing GDB on MAC OS ...
by
dbannon
[
Today
at 01:53:46 am]
Magic, non referenced var...
by
jamie
[
Today
at 01:33:46 am]
Are We Dead Yet?
by
Joanna
[
Today
at 12:27:08 am]
How to dock Stack and Pro...
by
Molochnik
[May 30, 2023, 11:20:19 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How find Total Space (Read 332 times)
dimonershov
Newbie
Posts: 5
How find Total Space
«
on:
March 05, 2023, 11:46:12 am »
Hi
How to find out the size of the internal memory in bytes?
I programming app on Android in LAMV.
In Windows i write:
Windows.GetDiskFreeSpaceEx(Pchar(usb_name_37+':\'),FreeBytesAvailableToCaller,Totalsize,@FreeSize);
«
Last Edit: March 05, 2023, 11:53:22 am by dimonershov
»
Logged
higgins
New member
Posts: 6
Re: How find Total Space
«
Reply #1 on:
March 08, 2023, 03:17:18 pm »
Hi,
This thread may help you. It concerns Delphi but includes several links
https://stackoverflow.com/questions/50552808/delphi-tokyo-android-how-do-i-get-the-free-available-disk-space
Logged
Thaddy
Hero Member
Posts: 12971
Re: How find Total Space
«
Reply #2 on:
March 08, 2023, 03:56:56 pm »
The most reliable way is to call GetHeapStatus, which is always available.
https://www.freepascal.org/docs-html/rtl/system/getheapstatus.html
Logged
I actually get compliments for being rude... (well, Dutch, but that is the same)
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Operating Systems
»
Android
»
How find Total Space
TinyPortal
© 2005-2018