Thanks a lot for helping me understand why there are times when I cannot find NeoReader (or kreader) in Recent Programs view. I assume there should be another activity entry in AndroidManifest.xml, where the NeoReader is set to be visible? The happens when I open a PDF file using the Library app.
Question about opening a file by its full path:
I tried three variants for the full path, and I would be stuck with the following view regardless of which spelling of the full path I use. The texts read "BOOX Neo Reader Loading document", with a cancel button.
The variants are
Code:
am start -n com.onyx.kreader/.ui.ReaderHomeActivity -d /storage/emulated/0/ScratchBox/PDF_2022-07-08-091146.pdf
am start -n com.onyx.kreader/.ui.ReaderHomeActivity -d file://storage/emulated/0/ScratchBox/PDF_2022-07-08-091146.pdf
am start -n com.onyx.kreader/.ui.ReaderHomeActivity -d file:///storage/emulated/0/ScratchBox/PDF_2022-07-08-091146.pdf
I got the full path to the PDF file using Files by Google, where it was listing "/storage/emulated/0/ScratchBox/PDF_2022-07-08-091146.pdf" for the file.
Oh, per the lack of pen-input when the NeoReader does get resumed with the previous file loaded, any quick fix? Say, is there something that may switch to a most recent app even when it is not "visible" in the Recent Programs view? (On a Samsung phone, when I summon the Recent Programs view twice, the previous app gets loaded in full-screen mode.)