Lectura de pdf extension pura vida

Hola, la extensión tal o como está en el ejemplo funciona perfectamente, sin embargo yo quiero ir directamente al archivo que tengo en la memoria principal o en la tarjeta SD. Como sería la línea de enlace? de las dos maneras que pongo en la foto no funciona.

No necesito utilizar la opción (shared storage), el fichero ya lo selecciono yo en otra parte del programa

You cannot access non-media files that are not created by the app itself, especially not files outside of the Shared folders on Android 11+. You must use SAF or try this test app:

1 Like

pero donde pongo esto en la extensión de pura vida PDF

You need to copy this pdf file to the ASD or one of the Shared folders (/Documents or /Download) and access it from there using Taifuns's extension.

1 Like

Como tengo que poner para que me habra un fichero de la memoria principal del movil o de la tarjeta SD

misfiles

Have you tried my test app? It should work.

A que aplicación tuya te refieres? es lo que me dijiste de probar en una carpeta compartida? yo tengo estos ficheros en la carpeta Download
Estas son las carpetas que tengo

What about reading my posts (especially post #3)?

Your screenshot shows the root directory of the external storage and the (Shared) folders. The Shared folder /Documents is missing.

With my test app you can pick any file from any location, copy it to a Shared folder and access it from there.

Perdona, pero no se como ejecutar tu aplicación de prueba, donde está.

Gracias por tu interés.

Para que sepas lo que pretendo te explico: Tengo una aplicación de musica en la hay una base con los nombres de las partituras, y las partituras las tengo en un directorio y en una carpeta, y actualmente tienen extension .jpg y así me vale, pero quería hacer lo mismo pero con .pdf

Te mando foto de como accedo ahora

A few years ago Google introduced scoped storage so it is not so simple anymore to access non media files your app does not own, see also Some basics on Android storage system

If you do not plan to publish your app in Google Play, ask for manage storage access permission

Or follow the advice by Anke

Select a non-own (non)media file from anywhere on Android 11+ and get full access without SAF or MANAGE_EXTERNAL_STORAGE - #28 by Anke

Taifun

1 Like

Hi Anke, my level is quite lower than yours and it's hard for me to follow you. I've already tried your application and I'm sending you what appears. My Android version is 14 API 34.

I'm having trouble understanding your application. I'm wondering if you could send me the .aia file by email so I can study it little by little. Thank you.

Here's your PDF file, which now belongs to the app. You can read/open it with Taifun's PDF extension:

grafik

1 Like