Page 1 of 1
Open books on Kindle App
Posted: 19 Oct 2018 15:08
by EternalLearner
I love Automagic and use it constantly.
I would like to be able to have a flow open a specific book in the Kindle app. I have tried many different ways, and I don't think Automagic currently supports this action. I'm hoping the Kindle app provides the necessary means to do so. I believe it does, because on my Galaxy S8 I have an Edge Panel for the Kindle App that gives shortcuts for the 3 most recently opened books, showing their covers and title.
Thank you for your consideration!
Re: Open books on Kindle App
Posted: 20 Oct 2018 11:12
by Desmanto
For most app that can open certain file, you can use action Start Activity with action VIEW and put the file in the Data URI. For example, to open an image using MiXplorer Image Viewer, I would use this.
Start Activity
Action : android.intent.action.VIEW
Data URI : file:///storage/emulated/0/file.jpg
Data MIME type : image/*
Explicit Component : Check
Package Name : com.mixplorer
Class Name : com.mixplorer.activities.ImageViewerActivity
For Amazon kindle, you try the similar
Action : android.intent.action.VIEW
Data URI : file:///storage/emulated/0/a.azw
Data MIME type : application/*
Explicit Component : Check
Package Name : com.amazon.kindle
Class Name : (try to find the activity)
Replace Data URI to path to your ebook file. For the class name, try to leave blank at first. If it doesn't work, try different class name and see which one work
Re: Open books on Kindle App
Posted: 14 Nov 2018 23:49
by EternalLearner
Hi, Desmanto, thank you for your reply. I want able to try your suggestion until now because of a family tragedy, but I just went and attempted it.
The closest I found was this: the current Kindle file format (for Kindle 10) is the .kfx format. There are 3 of these in each folder under .../Android/com.amazon.kindle/files/
For example, I'm in a folder called B001AS6H1M which has 3 .kfx files. The largest is 10.6MB, so I assume that's the eBook, while the other two are 2.2 and 3.3MB.
Ask the .kfx filenames begin with the three characters CR! which makes them difficult to access. I assume if I use a backslash before the ! it should parse correctly in Automagic, is that correct?
So this is the command I used:
Start Activity: android.intent.action.VIEW file:///storage/emulated/0/Android/data/com.amazon.kindlefs/files/B001AS6H1M/CR\!R7M8D1CH2X1FZ338BJYCBKTEZRGP.kfx application/* com.amazon.kindlefs/
No matter which .kfx file I select, however, Automagic always gives the message "Error: Cannot open this file type."
Can you tell what I'm going wrong?
Re: Open books on Kindle App
Posted: 15 Nov 2018 18:51
by Desmanto
I'm sorry to hear that.
How do you select the file for the Data Uri? Tapping the ellipsis, choose file and choose the kfx file? Or you simply type the path into it? If you can't select the proper path, try to install MiXplorer from xda. Use Mixplorer to browse to the folder, long press the file, tap info and copy the path, paste this in the Data URI in Automagic.
Try also by selecting different class name in the com.amazon.kindlefs, sometimes it is not always the default activity that handle the viewer.
Other method is to intercept the intent. Try to open the kfx file from MiXplorer, and you should see kindle app. If yes, install Intent Intercept, it seems it can only be found on F-droid :
https://f-droid.org/en/packages/uk.co.a ... intercept/
tap the kfx in mixplorer and choose intent intercept, you should see the intent it provides at there. You can use the extra string later, usually can be used with putString() based on the path it provides.
Re: Open books on Kindle App
Posted: 16 Nov 2018 07:51
by EternalLearner
Thank you, Desmanto, I will continue to try various options as you suggest.
Pasting the path in from Mixplorer gives me the same result, so I don't think that's the issue.
From Mixplorer, if I open a .kfx file using "Open with" and the Kindle app, I do see the Kindle app open but then I get that same error. This tells me it is a Kindle error message, not an Automagic error message.
I enter the URL by clicking the ellipses menu and picking the file. After it fails to open, I edit the URL to add the \ in front of the ! symbol. Am I correct that I need to escape the ! symbol for Automagic?
Re: Open books on Kindle App
Posted: 16 Nov 2018 10:24
by Desmanto
It seems to be limited to the /android/data permission. ! is not needed to be escaped usually. Try to rename the file and put the file outside of the /android/data folder, example /sdcard/ebook/test.kfx. Try to open again using MiXplorer, and then try to open using automagic too.
Re: Open books on Kindle App
Posted: 13 Jul 2019 16:12
by Hexxler
Just read the above thread and seems very knowledgeable so appreciate more..Thanks