Startseite › Foren › Deutsches LiveCode-Forum › Pfad bei Android einstellen › Antwort auf: Pfad bei Android einstellen
Hallo Klaus,
habe deinen Code jetzt mit aufgenommen, aber auf meinem Handy wird mir kein Fehler angezeigt.
habe mir dann nochmal den Pfad anzeigen lassen und überprüft, ob die Datei dort drin steht.
Pfad stimmt, und die PDF Datei befindet sich in diesem Ordner. Trotzdem wird mir die Datei nicht angezeigt.
on mouseup
// global LHData (diese Variable enthält normalerweise den Dateinamen)
if the environment is „mobile“ then
put specialFolderPath(„external documents“) into programmPfad
else
put the filename of this stack into programmPfad
set the itemDelimiter to „/“
delete the last item of programmPfad
end if
launch document „/NE15_2016_06_01.pdf“
if the result <> EMPTY then
answer „Error:“ && the result
end if
put programmPfad into fld „Anzeigepfad“
end mouseup
Mit put programmPfad into fld „Anzeigepfad“ habe ich mir den Pfad zur Kontrolle anzeigen lassen.
Aber mehr bekomme ich einfach nicht.
Auf dem PC unter Windows wird mir angezeigt
Error: can’t open file
gruß
Andreas