View Single Post
Old 07-07-2022, 06:42 PM   #10
llinfeng
Enthusiast
llinfeng is on a distinguished road
 
Posts: 38
Karma: 58
Join Date: Jan 2019
Device: Kobo, Kindles, Sony DPTs, QQ-Read
Cannot write in NeoReader with the adb switch command

Quote:
Originally Posted by winstonma View Post
This adb shell command should open the NeoReader

Code:
am start -n com.onyx.kreader/com.onyx.kreader.ui.ReaderHomeActivity
I am using Onyx Nova so I don't have the Note app to test.
Update: upon activating the NeoReader again, it seems like the "focus" is shifted somewhere else and the newly summoned NeoReader app does not admit pen-input anymore.
* Note 1: by "focus", here is what I observe - when switching back to NeoReader for the first time, the whole PDF file will be covered by a grayish color, indicating that the focus is shifted to a UI element that spans the whole screen;
* Note 2: upon executing the command for the second time, pen inputs were treated as touch inputs.

I tried two ways to launch the NeoReader, but the pen is equally useless in either cases - when NeoReader is summoned with the adb command, the pen won't work as a writing device until I **launch** NeoReader again.
1. With Files by Google, I was able to directly open a PDF in NeoReader. Yet, when I go to the "Recent Programs" view, NeoReader is not there. Though, the adb command was able to recover the viewing session if I revisit it within a few hours;
2. With the native Library tool, I can open PDF in NeoReader for sure. This time, NeoReader 3.0 does exist in the "Recent Programs" view. Still, should I launch the adb command for once, summoning the NeoReader using the "Recent Program" list won't get me pen-input. I need to launch NeoReader again by going back to the Library app and tapping on the file again.

Mainly, I'd like to document how things behave on Lumi 2. If there is another adb magic, please let me know. Among the list of programs printed with "dumpsys package", I only find one thing that has to do with "pen" and nothing has to do with "focus". And, this particular entry, "com.onyx.android.note/.note.test.PenTestActivity", is actually for a standalone pen test.
llinfeng is offline   Reply With Quote