[Q] How to export Notes and Highlights on Touch? Cppy and Paste? - Nook Touch General

Hello,
Thanks in advance. I searched the forum and elsewhere for these answers.
Can one export Notes and Highlights with a rooted Nook Touch. If so, how and which app should one download? Which are best?
If one puts Kindle app on a Nook Touch, does one get the functionality of exporting notes that I believe the Kindle app has?
Is there an a reader app that allows for Copying/Pasting/exporting? There is this unanswered thread that I think covers the same topic or similar:
http://forum.xda-developers.com/showthread.php?t=1180368
Much to my dismay, I just discovered that I can not export or backup Notes and Highlights that I create on a Nook Touch. I wonder what % don't realize this when they buy the device.
I do not think that "Nook For PC" does any of this as it only syncs bookmarks across devices:
http://www.barnesandnoble.com/u/nook-for-pc/379002322/
Once again thank you

I've been able to export from moon reader plus on my nook color - if this app works on nook touch it's the best solution I've found.

any solution found?
I want to root my nook, but I don't want to lose my highlights...!!!

I have been on the same quest for a few days now. I have not found a particularly good solution, but I do have a way to preserve highlighting.
When you use the kindle app on android and sideload a book in .mobi format (i.e. you place the .mobi file in /sdcard/kindle folder), and then make highlights or notes, it creates a .mbp file in the same directory. You can then move the .mobi and .mbp file into other kindle apps (other device, pc, etc), and your notes and highlights are preserved.
If I could find a way to get the .mbp file in /sdcard/kindle to automatically sync to the appropriate PC folder, it would be nearly perfect.
The advantage of .mobi files have over .epub is that .epub standard does not seem to include annotations. At the moment, you are somewhat confined to the Amazon ecosystem, but for now, this seems the best solution I've found so far.
---------- Post added at 10:18 AM ---------- Previous post was at 10:04 AM ----------
I have been on the same quest for a few days now. I have not found a particularly good solution, but I do have a way to preserve highlighting.
When you use the kindle app on android and sideload a book in .mobi format (i.e. you place the .mobi file in /sdcard/kindle folder), and then make highlights or notes, it creates a .mbp file in the same directory. You can then move the .mobi and .mbp file into other kindle apps (other device, pc, etc), and your notes and highlights are preserved.
If I could find a way to get the .mbp file in /sdcard/kindle to automatically sync to the appropriate PC folder, it would be nearly perfect.
The advantage of .mobi files have over .epub is that .epub standard does not seem to include annotations. At the moment, you are somewhat confined to the Amazon ecosystem, but for now, this seems the best solution I've found so far.

Any updates
Does anybody have any updates on this? I've been looking at how to save my highlights and notes because I want to update to 1.1.
I noticed that Calibre is testing saving notes from the Kobo reader. I think this would be the best way if they ever do it for the NST. However, that would be a long term solution because I don't see them doing it within the next month or so.
Any help on this would be greatly appreciated. Thanks,

The first post in this thread shows how to backup highlights and annotations. http://forum.xda-developers.com/showthread.php?t=1346748 I haven't tried it yet but I will check back when I do it.

this is a a feature really needed...anybody working on it??

Here's a direct link to the post referenced above. Highlights and notes are stored in databases.
http://forum.xda-developers.com/showpost.php?p=20069243&postcount=5
I haven't tested it yet.
Anyone interested in exploring -- you may want to look into some of the apps in the Android Market that allow for viewing and editing databases on a rooted device:
https://market.android.com/search?q=root+database+viewer&c=apps
Please post any findings!
MJ

mjj777 said:
Please post any findings!
Click to expand...
Click to collapse
It’s easy to write SQL script, but it’ll be few manual steps - not for everybody.
I’m not good enough yet to write GUI app, but it looks like nice and easy one to start with.
The problem is B&N doesn’t provide any API to work with nook specific features, like display book thumbnail, get books in library, get books on shelf, etc.
Once this framework is available, “assembling” apps should be piece of cake.

Manual Solution...
Besides backing up highlights and annotations (mentioned above) http://forum.xda-developers.com/showpost.php?p=20069243&postcount=5
I am following this thread that just started on somebody asking a possible way to do this automatically to dropbox or something similar. Which I think would be awesome! http://forum.xda-developers.com/showthread.php?t=1676579. However, this really doesn't solve the issue of easily reviewing highlights and annotations or exporting them to excel or word for a more pleasant viewing experience.
In the meantime as I am reading I have my iPhone open and I am writing down comments and passages and then marking the page number. I am doing this in the Onenote app which can be synced to my computer.
It makes reading not as fun when you have to go to a different device and type something in. However, I am guaranteed not to loose it, and it stays organized in a onenote folder I named "books" and section is the books title. Putting the page number also allows me to later go back and go to that specific page for further details and it is my understanding it should also match with the paper-bound version page number.
I find it amazing there is not an easier way. However, I have heard rumors the backing up a annotations and highlights might/could happen in Calibre. I think they began trying it with the Kobo reader. I think this would be ideal.

CoolReader can highlight, take notes and export.
The only problem is that it doesnt have DRM so it cannot read
books with DRM (purchased or rented books).
--

Is there any news on this side?
to me would be enough to having the possibility to share via mail.
does anyone knows if an app for android would work for this and if it feasible ?

Ok
i've just create a very basic app that export the highlithed text to an txt file inside the sd card.
source code is here (i started yesterday with android, so it's crappy).
https://github.com/esseti/NookTouchExporter
here the apk https://github.com/esseti/NookTouchExporter/tree/master/bin
it requires root permission.
feedbacks/collaborations anything is welcomed.

Off-hand, you might want to use a constructor for Annotation instead of setting things:
Code:
public class Annotation
{
private String book;
private String hltext;
public Annotation(String book, String htltext)
{
this.book = book;
this.hltext = hltext;
}
}

question
Hi, first, thanks for placing the apk and second, how do I use it?
I already install, I gave root permission, but nothing happens when you touch the icon
thanks

I forgot to subscribe to the thread. i made some changes, now it should have a button.
apk is here https://github.com/esseti/NookTouchExporter/tree/master/out/production/NookExporter

esseti said:
I forgot to subscribe to the thread. i made some changes, now it should have a button.
apk is here https://github.com/esseti/NookTouchExporter/tree/master/out/production/NookExporter
Click to expand...
Click to collapse
I've just tried this (md5sum: fc31f1bd16a95ebd5c41823cb9bbc57d) on my 1.2.1 UK Nook rooted with NookManager, and it has some problems.
When I start it, it asks for root via SuperUser and I grant it root permissions permanently. However, the attempt to copy annotations.db fails:
Code:
I/ActivityManager( 788): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x14000000 cmp=it.stefanotranquillini.nookexporter/.TestDatabaseActivity }
I/System.out(24021): books 1here we are
W/System.err(24021): io ex
W/System.err(24021): java.io.FileNotFoundException: /data/data/com.bn.nook.reader.activities/databases/annotations.db
E/TC ( 1035): KPICollector: 1368871897842 ActivityManager background {"component":"com.harasoft.relaunch/.AllApplications"}
E/TC ( 1035): KPICollector: 1368871897875 ActivityManager foreground {"component":"it.stefanotranquillini.nookexporter/.TestDatabaseActivity"}
Needless to say, the file does exist:
# ls -l /data/data/com.bn.nook.reader.activities/databases/annotations.db
-rw-rw---- app_0 app_0 11264 2013-05-07 15:57 annotations.db
Click to expand...
Click to collapse
I think you probably need to build a command line (e.g. su /system/xbin/cp /data/data/com.bn.nook.reader.activities/databases/annotations.db blahblah/databases.db) then exec() it. exec()ing su doesn't, AFAICS, give your app the power to do anything it likes as root. Chainfire wrote a nice doc: http://su.chainfire.eu/.
If I use an adb shell to manually copy the file over, it seems to export OK. I'd suggest, though, dumping all the columns so that adding import functionality later is possible.

cowbutt said:
I've just tried this (md5sum: fc31f1bd16a95ebd5c41823cb9bbc57d) on my 1.2.1 UK Nook rooted with NookManager, and it has some problems.
When I start it, it asks for root via SuperUser and I grant it root permissions permanently. However, the attempt to copy annotations.db fails:
Code:
I/ActivityManager( 788): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x14000000 cmp=it.stefanotranquillini.nookexporter/.TestDatabaseActivity }
I/System.out(24021): books 1here we are
W/System.err(24021): io ex
W/System.err(24021): java.io.FileNotFoundException: /data/data/com.bn.nook.reader.activities/databases/annotations.db
E/TC ( 1035): KPICollector: 1368871897842 ActivityManager background {"component":"com.harasoft.relaunch/.AllApplications"}
E/TC ( 1035): KPICollector: 1368871897875 ActivityManager foreground {"component":"it.stefanotranquillini.nookexporter/.TestDatabaseActivity"}
Needless to say, the file does exist:
I think you probably need to build a command line (e.g. su /system/xbin/cp /data/data/com.bn.nook.reader.activities/databases/annotations.db blahblah/databases.db) then exec() it. exec()ing su doesn't, AFAICS, give your app the power to do anything it likes as root. Chainfire wrote a nice doc: http://su.chainfire.eu/.
If I use an adb shell to manually copy the file over, it seems to export OK. I'd suggest, though, dumping all the columns so that adding import functionality later is possible.
Click to expand...
Click to collapse
i've no idea why it fails .
anyway i'll take a look later on. if you want code is on github and you can change it and submit as a patch (or whatever they called it), then i'll merge it.

Hello,
I haven't found a solution to the original question posted on this forum but I would like to share something that I think most Kindle users will benefit from.
Amazon has made it possible for Kindle users to make notes and highlights on their favorite passages or selection and these can be accessed again on their site. However, it can take up time and be difficult to obtain sometimes.
There is an iOS app that will be released this November 2013 called Snippefy that will make it easier for Kindle users to read and share their notes and highlights all in one place. They will also be able to export these to Evernote, Dropbox and email. I'm not able to post the link to the site here but basically it's at "snippefy dot com"
I just wanted to share this with all of you as you might find it useful.
Thanks!

Two ereaders I've found that do a good job of allowing for annotations, and have good export options are Moon+ Reader (version 1.6.5b) and Mantano Reader (version 2.2.12).
They are no longer being developed in a way that supports the Android 2.1 platform, which is what the Nook runs on, so the versions I listed above are the most recent versions that will work on the Nook, you'll have to get the old APKs and sideload them if you want to use that. Their controls and interface are amazing in my opinion, perhaps Moon+Reader 1.6.5b > Mantano Reader 2.2.13, however, the display is in my opinion quite low quality and unacceptable for extended reading.
A better option to keep your eye on is Page Turner (https://play.google.com/store/apps/details?id=net.nightwhistler.pageturner.ads&hl=en]). The developer is very active and mindful that a large portion of the user base uses the Nook ST, and so continues to have features support the Android 2.1 platform. The current beta version which will be released in the next weeks has just added support for highlighting, annotating and bookmarks. The plan for the next version is to allow for simple export process of these additions, so keep an eye on it.

Related

How much of the B&N stuff can you delete?

I would like to pare down my Nook a bit.
I do like the native reader app and I borrow library books.
Yes, I could use the OverDrive reader, but the native reader is much better.
The first thing that went was Shop.apk
It was kind of annoying to search for stuff on my Nook and come up with 50,000 suggestions of books that I could buy.
Social.apk seems to go away painlessly too.
Deleting (or renaming) Home.apk breaks the "Last Read" icon on the desktop.
You can still get there by Library and hitting the top of most recent.
It gets you to the right page.
It probably would not be hard to write an app to do the last read function.
Moreover, you'd have a system icon to do with what you will.
(It sends an intent that is not handled. I'll have to make a receiver and see what it is.)
Okay, deleting Home.apk also breaks additions to Library.
But, you can still borrow books on Adobe Digital Editions and read them by clicking them in a file browser.
Oh, well, might as well delete Library.apk
Hmm, I guess that Library.apk is a search content provider.
Books no longer show up in global search.
I guess that I'll have to roll my own.
Re-enable Home.apk, disable Reader.apk and see what intent goes.
(Last page read is kept in /data/data/com.bn.nook.reader.activities/databases/lastreadingpoint.db
Select ean from lastreadingpoint order by lastupdated
I'm not trying to get around the DRM or anything. I just want to get rid of all the cruft.
I see what you're trying to do here
I've been playing with this some more.
Reader.apk keeps track itself of last page read.
If you just use a file manager to open your books you'll get the right page.
If you are a big library user and use Adobe Digital Editions,
then the info that ADE dumps on your Nook could be integrated nicely.
You could have your books listed and show the return date.
Hmm, do you think it could be possible to fully debrand the device and have it running a normal, common Eclair, but using the actual ROM as base? like, deleting the B&N apps and creating custom providers & intent receivers to avoid FCs and such?
Well, if you delete (or rename) Home.apk and Library.apk but still like to use Reader.apk (the native epub reader),
then you might need a convenient way to get to your last read book.
It's not rocket science and I haven't figured out the little book icon on the status bar yet,
but if you want to get back to your book here is a little app to go to last read.
Put the icon on your desktop and click the "L" to go to last read.
Did you replace library, or just completely delete it?
darkguy2008 said:
Hmm, do you think it could be possible to fully debrand the device and have it running a normal, common Eclair, but using the actual ROM as base? like, deleting the B&N apps and creating custom providers & intent receivers to avoid FCs and such?
Click to expand...
Click to collapse
I've also wondered this, I use my nook for Kindle more than I do B&N lol. It would be great if we could get a ROM to flash that removes everything from the device and just makes it run stock Android then use Kindle and B&N apps, as well as whatever other apps for reading epubs to read our books. Don't know if this is possible but it would be nice, then we could fully repurpose all the buttons on the device purely for Android OS
And make a custom e-ink friendly version of the android homescreen, possibly including no-refresh?
Right now I've got the following apps deleted:
DemoMode.apk
Home.apk
Library.apk
Shop.apk
Social.apk
I will be working on a replacement library app.
I don't use the Kindle app. Do people who do also use the Nook native reader?
At the lowest level, all you need is a file manager.
I presume that each of the readers keep track of last page.
(Regarding the Nook lastreadingpoint:
Going straight to the database is the wrong approach, using the content provider is the right way.
LastRead.apk uses that.)
Ok, it's a neat hack to watch video on the Nook, but you really wouldn't want your Nook in A2 mode all the time.
As I've said before, the best uses of A2 is when an app knows when to use it, when dragging, scrolling, zooming.
If you have the source code to a browser/viewer/whatever, putting wrappers around the dragging/scrolling/zooming operation would be an improvement.
Personally, I have no problem with my ADW Launcher.
That it blurs and trails when parking an app on the desktop is no big deal.
I've got the little book icon on the status bar to open the last book in the native Nook reader.
That is, if you don't have Home.apk or (B&N) Library.apk
Here is a stop-gap release.
It works fine for the "Currently reading" but there is not yet other functionality in it.
I left it as a complete application so that you can easily see if you have it installed.
The actual "application" part of it is a blank screen.
No need to run it or put it on your desktop.
Just install it and click the little book on the status bar.
Renate NST said:
I've got the little book icon on the status bar to open the last book in the native Nook reader.
That is, if you don't have Home.apk or (B&N) Library.apk
Here is a stop-gap release.
It works fine for the "Currently reading" but there is not yet other functionality in it.
I left it as a complete application so that you can easily see if you have it installed.
The actual "application" part of it is a blank screen.
No need to run it or put it on your desktop.
Just install it and click the little book on the status bar.
Click to expand...
Click to collapse
Hm, looks interesting, seems like you've managed to already wrap some events to dummy workers we can attach to in the future and mod this thing up . Awesome!
I'll be testing it somewhere between today and tomorrow. Right now I'm trying to replace the stock keyboard. LatinIME.apk is deleteable but there isn't any working keyboard for it yet (I've tried GO Keyboard, GB Keyboard for Froyo/Eclair and HTC IME with no avail) and it's one of the biggest annoyances I have with it since I need more of a PC-keyboard-lookalike rather than an ebook keyboard
Although I am not getting the point of your mission :-D try Hacker's keyboard. It is possible to google out android 2.1 version. It is the best I have found so far although it is quite dark.
Just thought I'd drop this link here for hacker's keyboard.
http://code.google.com/p/hackerskeyboard/issues/detail?id=57
Also, make sure that after you install it you move it to /system/app
Googie2149 said:
Just thought I'd drop this link here for hacker's keyboard.
http://code.google.com/p/hackerskeyboard/issues/detail?id=57
Also, make sure that after you install it you move it to /system/app
Click to expand...
Click to collapse
Man, you rock! I've wanted that keyboard to work specifically. Thanks a lot!!
I've had some progress on the Library replacement.
It's not ready for prime time, but it is cute.
It will list the expiration date of your library books.
It's nice to be able to fit over 10 titles on the screen.
Renate NST said:
I've had some progress on the Library replacement.
It's not ready for prime time, but it is cute.
It will list the expiration date of your library books.
It's nice to be able to fit over 10 titles on the screen.
Click to expand...
Click to collapse
That's awesome!
When will you release it?
I've been working on two different approaches.
One is to use the Android native mediastore.
There are some bugs with this and it can get out of sync.
The other is to do all the searching for books myself.
That works ok as long as the books are found in the usual places:
/system/media/books
/data/media/B&N Downloads/Books
/media/My Files/Books
/media/Digital Editions
/sdcard/My Files/Books
Are there any other locations that I am missing?
darkguy2008 said:
When will you release it?
Click to expand...
Click to collapse
I really don't know if it suits anyone's needs besides my own.
Because the stock Home.apk, Library.apk and Shop.apk are all tied together,
to have my app work correctly you have to rename or delete the three of them.
As far as I know it should allow books bought from B&N to still work correctly,
but I don't know because I don't own any. I only get library books or Gutenberg.
Is it important for people to be able to buy B&N books directly on their Nook?
Renate NST said:
Is it important for people to be able to buy B&N books directly on their Nook?
Click to expand...
Click to collapse
Why not if it's free?
Naturally, I speak for myself only.
You need credit card added to buy B&N free books still...
From another hand you can get same free books somewhere else, right?
Apokrifx is right, also, that app would suit me too. I need a credit card to buy B&N books, which I don't have -and- I'm not interested at all in using it as a reader. If I want to read something I'll download it and slam it through a PDF reader installed on it.
My main use for it is to take out ALL of the B&N stuff and use it as an android tablet, so, to me, it's really useful

[Q] Will I be able to buy from B&N if I disable their apps?

I just got a Nook UK in the last sale and it's my first one, so I'm a total noob to the e-book world.
However, I'm an android user and rom flashing addicted for long, so since I got my reader I've only been tweaking it and haven't actually read a word... haha.
So, already updated to 1.2.1, rooted, kernel tweaks and the whole lot. I haven't installed gapps on it to keep it minimal as possible, I'm dowloading the apks on my phone and installing via ADB.
So, on to the question:
by removing all these B&N apps does it mean I won't be able to sync/buy from their store?
I'm already getting to know Calibre and checking other places to buy books, but it looks like that if I remove the apps and one day would like to buy from B&N again the only option would be to re-install the apps in order to get the ebook or am I missing something?
Some of you disable all of the B&N apps, like:
Originally Posted by Mnurlan from the thread
Guide/HowTo/Tips'nTricks - The perfect Nook Simple Touch Setup w/ battery optimizations
AFfileDownloadService.apk (Hint: disables book covers, skip it if you like book covers)
AccountAndSyncSettings.apk
AirRuntime.apk
BnAuthenticationService.apk
BnCloudRequestSvc.apk
Browser.apk
CloudService.apk
DemoMode.apk
DeviceManager.apk
DeviceRegistrator.apk
Gallery.apk
GoogleSearch.apk
Music.apk
NookCommunity.apk
Phone.apk
PicoTts.apk
QuickStartActivity.apk
Shop.apk
Social.apk
TelephonyProvider.apk
TtsService.apk
WaveformDownloader.apk
tl;dr
Want to keep my NST minimal and remove all clutter, but:
how do you guys manage your ebooks and where do you buy them from without the B&N apps and what to do If I ever want to buy from them again?
Probably wouldn't be able to buy on device without having the B&N apps installed/enabled or maybe the standalone Nook Android app. Not sure if with that setup it'd be able to read DRM'd Nook books (probably wouldn't auto load them, but might be able to when sideloaded) but if it can't it's very easy to strip the DRM, and you can buy and download the book from your browser on your computer. Or if it's available DRM free in another store that might also be an option
neoman4426 said:
Probably wouldn't be able to buy on device without having the B&N apps installed/enabled or maybe the standalone Nook Android app. Not sure if with that setup it'd be able to read DRM'd Nook books (probably wouldn't auto load them, but might be able to when sideloaded) but if it can't it's very easy to strip the DRM, and you can buy and download the book from your browser on your computer. Or if it's available DRM free in another store that might also be an option
Click to expand...
Click to collapse
Thank you for your answer
I wouldn't mind having to download to my computer and then transfer to the reader, but at least the B&N store doesn't give me the option to download.
Anyways, when I dig more into the reading world I'll find out the best set up soon enough.
I'm not guaranteeing it'll still be able to read the DRM'd books as I haven't tried the guide in question, it's always been either a full root or stock for me. That said, the Nook desktop application allows you to download the encrypted file, and all my purchased books show a download option in many places, such as on the overview page and from the "My Nook" landing. Even if the Nook itself can no longer read them, again not saying it will or won't, stripping of the DRM is trivial, Python script (also a Calibre plugin available that incorporates it and will auto strip any Nook books you import, and you can set it to auto import from a certain directory so you could point that to, say, the place where the Nook desktop app downloads them) that computes the key needed to decrypt (requires you to enter the credit card linked to your B&N account since that's part of the hash used, but the CC# is never written to disk or sent anywhere) and you can use it on any device that will read epubs, including the Nook if it no longer decrypts on device as it'll be treated like any other sideloaded DRM free book.
miguelitu said:
Thank you for your answer
I wouldn't mind having to download to my computer and then transfer to the reader, but at least the B&N store doesn't give me the option to download.
Anyways, when I dig more into the reading world I'll find out the best set up soon enough.
Click to expand...
Click to collapse
Sure you can download your books to your computer. Logon to your B&N Account. Click on My Account at the top of the page. In the Digital Content section click on Manage Your Nook Library to get a list of your books with links to download them.
neoman4426 said:
I'm not guaranteeing it'll still be able to read the DRM'd books as I haven't tried the guide in question, it's always been either a full root or stock for me. That said, the Nook desktop application allows you to download the encrypted file, and all my purchased books show a download option in many places, such as on the overview page and from the "My Nook" landing. Even if the Nook itself can no longer read them, again not saying it will or won't, stripping of the DRM is trivial, Python script (also a Calibre plugin available that incorporates it and will auto strip any Nook books you import, and you can set it to auto import from a certain directory so you could point that to, say, the place where the Nook desktop app downloads them) that computes the key needed to decrypt (requires you to enter the credit card linked to your B&N account since that's part of the hash used, but the CC# is never written to disk or sent anywhere) and you can use it on any device that will read epubs, including the Nook if it no longer decrypts on device as it'll be treated like any other sideloaded DRM free book.
Click to expand...
Click to collapse
Great advice again, thank you
straygecko said:
Sure you can download your books to your computer. Logon to your B&N Account. Click on My Account at the top of the page. In the Digital Content section click on Manage Your Nook Library to get a list of your books with links to download them.
Click to expand...
Click to collapse
I got an UK Nook and for some reason it works differently. I got a book I bought from the e-reader, it shows on my account library at nook.com without option to download it and using the same login at the barnesandnobles.com it shows my nook connected to my account but the book does not show at the library...it looks like they made some weird distinctions on how to handle books bought outside US or something like that.
For testing, I added a free book to my library via nook.com, and it shows on my library at the barnesandnoble.com, so it seems that the books purchased in pounds won't behave the same way and don't have a straightforward way of downloading it.
I mean, I already took the file from the device and removed the DRM, but annoying that I'm not just able to download it.

Shortcut to Books Library...

Thank you all for the wonderful support you are giving this device. While am an expert tinkerer, I do not have the time or knowledge necessary to take this device to the level I desire without the help you all afford.
So, having said that, I recieved my refurb unit (rollback was not an option when I contacted customer support, and 13.4.5.3 broke many things for me, The native Kindle app was among them.), I was able to toss twrp on it and update to 13.4.5.2, root it, and trick it to near perfection. Yet, I hate having to jump through hoops to get to my amazon books, so I played around with adb logcat and xda searches, and stumbled upon this...
http://forum.xda-developers.com/showthread.php?t=1479858
izomiac found a way to make a link on the older Kindles. I tried it, and though it looks like there are only a few changes, it does not work out of the box.
I would like to create a link to my books library as well as links to individual books.
Code:
Action: com.amazon.kindle.otter.action.SHOW_BOOKS
Category: android.intent.category.HOME
fails with an error of
Code:
Action: com.amazon.kindle.otter.action.SHOW_BOOKS
Category: android.intent.category.HOME requires com.amazon.SHOW_CONTENT_LIBRARY
I am using QCustomShortcut to try this as launching the intent from shell did not work either.
Does anyone have any suggestions? I asked over in iziomac's thread too, but it is really old, and I did not know if anyone would even see it.
Incidentally, his code for linking to individual books works incredibly. That is an android level intent, so there is less which could go wrong.
Code:
android.intent.action.VIEW
Data: kindle://book/?action=open&book_id=AMZNID0/<bookid>/0/
He explains pretty clearly how to get the book id as well.
izomiac said:
All that you want to change in that data string is the escaped book_id field. You can extract the book's ID from any Amazon Kindle product page (go to Manage your Kindle on Amazon.com). So, the book ID in this example is: B002WB0XW0 and the URL of the product page is http://www.amazon.com/dp/B002WB0XW0 (plus some useless SEO keywords and tracking cruft I omitted).
Click to expand...
Click to collapse
Again, this is all Izomiac's work, not mine.
~Leko
Could you not edit the APK and manually add the missing permission it requires?
https://developer.android.com/guide/topics/security/permissions.html
Thanks. When using a shortcut created with that app, who calls for the intent?
Sent from my KFTHWI using Tapatalk

Question: How to set an intent to launch Temblast Reader in Relaunch?

Hey guys, I have a question. I'm sure somebody out there has done this. I am making Rooted NST's for my friends as gifts, and I think it would be really easy for them to be able to use relaunch to open the .epub format books I have included for them. The best reader app I have found is @Renate NST's temblast reader app. It works with the page turning buttons, and in conjunction with @nmyshkin's NoIR app that he made, it makes for a seriously long battery life while reading. I gave my best friend a rooted NST for his birthday (beginning of August). He has read an entire book, and still hasn't charged it. Thanks for that, guys.
Anyway, what I'm trying to do is be able to use Relaunch to open .epub books. I've included a screenshot of the menu that has the ability to set intentions or even to open an application based on the filetype of the file selected. However, temblast reader does not show on the list of possible apps to launch. I tried using Titanium Backup to move temblast reader to system, but still to no avail. Anyone who knows better how to set an intent, and perhaps knows the language needed to do this would probably be much better suited to helping.
Thank you so much in advanced.
PS: That intent that is typed in the line for .epub files is my own feeble attempt at trying to get temblast reader to run as a system app. Please ignore that. :cyclops:
I'm not sure about Relaunch, but this should work fine:
Code:
# am start -a android.intent.action.VIEW -d file:///sdcard/Books/progit.epub
I typed it in like you said, and it didn't work. Maybe it's just not meant to be done on Relaunch.
Here's what it looked like when I tried to launch an .epub file.
Black screen.
I also thought maybe it was because my epub files are in My Files/Books so I added that in, and it didn't change anything.
I really appreciate your help and effort in this. Perhaps you know of an intent simply for "Reading Now"? I could use that in a different application.
Do you actually have that book "Pro Git"?
If you don't, there's no chance that it will be opened.
"Last Book" was actually a broadcast originally. Try:
Code:
# am broadcast -a com.bn.nook.launch.LAST_BOOK

NST library files

Anyone knows where the files/databases are for the library to use, e.g., sorting files for recent, author and title, as well as for shelves. It seems the library module from time to time doesn't sort correctly, after adding new books. Sometimes, a book from search is not placed in the 1st in the library ( for most recent order ). So I guess there must be something wrong in related files. Any tips are appreciated.
smjohn1 said:
Anyone knows where the files/databases are for the library to use, e.g., sorting files for recent, author and title, as well as for shelves. It seems the library module from time to time doesn't sort correctly, after adding new books. Sometimes, a book from search is not placed in the 1st in the library ( for most recent order ). So I guess there must be something wrong in related files. Any tips are appreciated.
Click to expand...
Click to collapse
AFAIK there is nothing specifically for the Library app other than an xml file (/data/data/com.bn.nook.library/shared_prefs.xml) which I imagine is supposed to control how the various library options display when the library is accessed. I've never had any luck with changing the settings (which are obfuscated anyway) as I would like the library to open a certain way but it insists on reverting to something else no matter how many times I set it.
As for databases, there are two associated with the Reader app (/data/data/com.bn.nook.reader.activites/databases/lastreadingpoint.db and /readerlocal.db). Historically there have been issues with the databases becoming garbled and there are a couple of postings somewhere in the forum with sqlite sequences for clearing out the dross and starting over. I'll see if I can scare those up but you should search also. And you'll need a sqlite database viewer if you want to examine the databases on your PC to see what's there.
Edit: This is the main thread I was remembering: https://forum.xda-developers.com/t/solved-on-the-problem-of-broken-bookmarks.1467429/
nmyshkin said:
AFAIK there is nothing specifically for the Library app other than an xml file (/data/data/com.bn.nook.library/shared_prefs.xml) which I imagine is supposed to control how the various library options display when the library is accessed. I've never had any luck with changing the settings (which are obfuscated anyway) as I would like the library to open a certain way but it insists on reverting to something else no matter how many times I set it.
As for databases, there are two associated with the Reader app (/data/data/com.bn.nook.reader.activites/databases/lastreadingpoint.db and /readerlocal.db). Historically there have been issues with the databases becoming garbled and there are a couple of postings somewhere in the forum with sqlite sequences for clearing out the dross and starting over. I'll see if I can scare those up but you should search also. And you'll need a sqlite database viewer if you want to examine the databases on your PC to see what's there.
Edit: This is the main thread I was remembering: https://forum.xda-developers.com/t/solved-on-the-problem-of-broken-bookmarks.1467429/
Click to expand...
Click to collapse
Thx, I will dig a bit. Strange thing is just read books from search don't appear in library's beginning at all. On the other hand, books read from library do change order in the library. Besides database, any other possible modules that would such problems?
smjohn1 said:
Thx, I will dig a bit. Strange thing is just read books from search don't appear in library's beginning at all. On the other hand, books read from library do change order in the library. Besides database, any other possible modules that would such problems?
Click to expand...
Click to collapse
I've come up empty. From examining the two Reader databases it is clear that they do not contain any information that would create placement in the Library such as shelves. That information must be somewhere but I have not been able to find it. There is another database, home.db, which is part of the bn.home app. There is minimal data there about books, but nothing helpful.
What is distressing (besides not being able to track down where this information is stored) is that there seems to be no mechanism to flush out the databases. Looking over mine I see (sideloaded) books that I have deleted a long time ago. No wonder things act funny after awhile.
Edit: Never say never. This post: https://forum.xda-developers.com/t/automating-shelving.1378510/ reveals the whereabouts of the information for the Library. I never would have guessed B&N would use stock Android for that!
Yeah, there used to be problems with the MediaScanner on the NST.
I got used to not relying on it.
Even now, my Library app has a fixed number of locations for books and you just hit Refresh once in a while.
The AdbSync script (makefile actually) that I use just pokes a refresh after syncing the Books directory.
nmyshkin said:
I've come up empty. From examining the two Reader databases it is clear that they do not contain any information that would create placement in the Library such as shelves. That information must be somewhere but I have not been able to find it. There is another database, home.db, which is part of the bn.home app. There is minimal data there about books, but nothing helpful.
What is distressing (besides not being able to track down where this information is stored) is that there seems to be no mechanism to flush out the databases. Looking over mine I see (sideloaded) books that I have deleted a long time ago. No wonder things act funny after awhile.
Edit: Never say never. This post: https://forum.xda-developers.com/t/automating-shelving.1378510/ reveals the whereabouts of the information for the Library. I never would have guessed B&N would use stock Android for that!
Click to expand...
Click to collapse
Wow! Thx. I need to learn sqlites to see all the contents.
Renate said:
Yeah, there used to be problems with the MediaScanner on the NST.
I got used to not relying on it.
Even now, my Library app has a fixed number of locations for books and you just hit Refresh once in a while.
The AdbSync script (makefile actually) that I use just pokes a refresh after syncing the Books directory.
Click to expand...
Click to collapse
how tro refresh? Is there adb code for that? Thx again.
smjohn1 said:
Wow! Thx. I need to learn sqlites to see all the contents.
Click to expand...
Click to collapse
You can do sqlite manipulations via ADB is you have sqlite3 installed on the NST, but for a better overall view you really need to copy the database file to a PC use a tool like this.
smjohn1 said:
How to refresh? Is there adb code for that?
Click to expand...
Click to collapse
Not really.
There are ways to make the MediaScanner scan a single file.
There is no simple way to tell it to just rescan everything.
I was talking about my Library.apk which does a simple foreground scan when you:
Code:
adb shell am start -a com.temblast.library.REFRESH

Categories

Resources