Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Android: Bereitstellen und laden von einer Datei (https://www.delphipraxis.net/216755-android-bereitstellen-und-laden-von-einer-datei.html)

erich.wanker 24. Feb 2025 17:50

Android: Bereitstellen und laden von einer Datei
 
Delphi12, Android App 64 bit

Hallo,

Ich schaffe es nicht die Datei "sound.mp3" unter "Bereitstellung" bereitzustellen und dann zu laden .. egal was ich probiere - die Notification bleibt hängen

Delphi-Quellcode:
 MyNotification := NotificationCenter1.CreateNotification;
  try
    MyNotification.Name := 'xxx';
    MyNotification.Title := 'xxx';
    MyNotification.SoundName :=                          <-------- ???
    MyNotification.EnableSound:=true;
..wenn ich die APK Datei entzippe und nach meiner datei suche - finde ich sie auch .. zb. im remote-pfad res\raw\sound.mp3
aber egal was ich bei MyNotification.SoundName := TPath.... schreibe - es funktioniert nicht (auch mit oder ohne suffix..)

Hat jemand eine Idee?

Danke und liebe Grüße
Erich

zeras 24. Feb 2025 18:47

AW: Android: Bereitstellen und laden von einer Datei
 
Liste der Anhänge anzeigen (Anzahl: 2)
Siehe Bild und dann noch als Ressource einbinden


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:58 Uhr.

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