How to open a pdf file from asd in a third party app using activity starter?

I created a pdf by using an extension KIO4_PDF, by default its path will be asd.

and when i try to open this pdf using activity starter like this
blocks2
it says an error like this

so can any one pls help to find a solution to open a pdf file from asd path in a third party application

The file is stored in the ASD - application specific directory, which is accessible by your own app
use the file component to copy it to shared storage in order to access it with activity starter

Hi, i tried as you said,

blocks (3)

this shows an error like this

what is the mistake i done here ?

You cannot access non-media files that were not created by the app itself from one of the Shared folders on Android 11+ without using SAF.

Check the path, mostly it is happening because of wrong path.
Correct path file:///…
You can open pdf from asd, no need to copy anywhere.

Please only give advice if you know what you are talking about.

Sorry, But we can open pdf from asd in a third party app on Android 11+ with help of activity starter and this is the topic of discussion.

Please read carefully first and then reply.

As @dora_paz already said:

To be even more precise:

which is ONLY accessible by your own app

2 Likes

TESTfdsf(1).apk (5.4 MB)
TESTfdsf(1).aia (148.5 KB)
Working example. I asked aia from seller_newbie and fixed it. it is working on android 11 including android 10.

In this app, first click test for button 1 to create pdf. then click button 2.then click show pdf.
It will work.

f
as @Lollipop said, it works now

It’s not clear to me to what extent this is supposed to be a solution.

It is of course no problem to open the PDF with the same app (let’s say App1). However, that is / was (?) not the topic. It’s about opening this PDF file with another app (let’s say App2) from the foreign ASD (app1). And that’s definitely not possible with the APK.

yes as you said i was also not expecting a solution after i read some articles from community. however it works now !

It is possible if App1 request App2 to open pdf from App1’s asd.
He wanted to do the same thing. Open Pdf from App1’s ASD in App2 through App1

Post these two apps (app1 and app2) where app2 can open a PDF from app1’s ASD.

If this is really going to work (which I doubt) then it looks like I need a longer break from this forum. :wink:

1 Like

Post these two apps.

App2 is any pdf reader and App1 is already posted.

Everything has to be done by myself. :upside_down_face:

I hard-coded the ASD for both apps:
openPdfApp1.apk (5.2 MB)
openPdfApp2.apk (5.2 MB)

file:///storage/emulated/0/Android/data/io.kodular.bodymindpower.openPdfApp1/files/myPDF.pdf

Steps to test:
Install App1, open it, open PDF
install App2, open it, open PDF

Does App2 work / open PDF (from the ASD of App1):question:

No, as I have already said and recently demonstrated.

Note: It makes no sense at all to test this with Companion, because all Kodular apps always have the same ASD with Companion:
/storage/emulated/0/Android/data/io.makeroid.companion/files

So the ASD is accessible to any app with Companion.
However, all compiled Kodular apps have different ASDs.