Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   Application.ExeName unter Android? (https://www.delphipraxis.net/212535-application-exename-unter-android.html)

skoschke 24. Feb 2023 09:16

Application.ExeName unter Android?
 
Hallo,

ich benötige den Pfad der aktuell laufenden App,

Delphi-Quellcode:
ExtractFilePath(application.exename)
gibt es ja bei FMX / Android nicht...

Wie bekomme ich den Pfad heraus?

Danke
Ciao
Stefan

Klaus01 24. Feb 2023 09:33

AW: Application.ExeName unter Android?
 
.. geht ParamStr[0]?

Grüße
Klaus

Klapauzius 24. Feb 2023 09:44

AW: Application.ExeName unter Android?
 
ungetestet:


Delphi-Quellcode:
 Result := JStringToString(TAndroidHelper.Context.getPackageCodePath);

KodeZwerg 24. Feb 2023 09:45

AW: Application.ExeName unter Android?
 
Zitat:

Zitat von Klaus01 (Beitrag 1519051)
.. geht ParamStr[0]?

Grüße
Klaus

Wenn, dann mit runden Klammern, ist ja kein Array :-D

fred.ahrens 24. Feb 2023 10:15

AW: Application.ExeName unter Android?
 
TPath.GetLibraryPath sollte auch unter Android funktionieren.
https://docwiki.embarcadero.com/Libr...GetLibraryPath

skoschke 25. Feb 2023 09:01

AW: Application.ExeName unter Android?
 
Danke!

Ciao
Stefan


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:06 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz