Wie kann ich eine PDF Datei vom lokalen Ordner mit einer externen App öffnen?

Hallo zusammen,

ich bräuchte Hilfe bei meiner App. Ich habe die benötigte pdf Datei mittels ASDDownloader Extension heruntergeladen. Diese befindet sich im Download Ordner. Nun möchte ich diese Datei mittels externer Reader-App öffnen können.
Unter Android 10 ging es bei mir noch mittels Starter, aber hier weiß ich nicht weiter.

Wichtig ist, die Datei extern zu öffnen, da ich hier die Suchfunktion benötige.

Danke für eure Hilfe :slight_smile:

Hello Taifun,

thx for your fast reply.

I use that extension.

and with custom Download path i download it to the /Download folder.

It's working so far, but how can i open it now with a button in app?

which means, you can see the pdf in directory /Download?

use the DownloadCompleted event together with for example

Taifun
PS: please switch the language to English next time before taking a screenshot

Thats right, but its on internal storage. In the example it says it only workes with sdcard.

Is there any way, I can use the file in internal storage/Download?

Next Screenshots i switch to english. - sry.

And sorry for my bad english.

I try to make a part of the app, that first of all download a pdf file from internet.
Thats working so far. - it is stored in internal storage /Download.

But i can't find any way to open that saved file with external app.
I have the file, the path ... but i do not understand how to open it.

In older android versions it had worked.
But now i have Android 14 and i can't open the file. whether i have a file on internal storage or external.

Would really be great if someone can help me here.

That's corect, we are talking about the emulated sdcard, not external (removable) sdcard ... thanks to Google and the restrictions to keep us "safe"...

writing to the external (removable) SDcard is no longer possible since Android 19 (KitKat ).

Taken from https://community.appinventor.mit.edu/t/file-component-is-showing-its-age/24751/11?u=taifun

See also Some basics on Android storage system

Taifun

See again

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Hello,

You can use activity starter to open Pdf file in external pdf viewer app:

Thank you, I'll try it and report :slight_smile:

THANK YOU ! ! ! It works :smiley: :smiley: :smiley:

1 Like