[Q] How to set intent on the Nook Simple Touch to open "Reading Now"? - Nook Touch General

I am not at all a wizard in code, so if anyone could help me set an intent to open "reading now" on the Nook Simple Touch, that would be really helpful. I'm using it to have a "reading now" link on my desktop with an app. It lets me copy and paste any intent I want into it, and I thought this one would be handy. The app is Desktop VisualiseR.

ALinkToTao said:
I am not at all a wizard in code, so if anyone could help me set an intent to open "reading now" on the Nook Simple Touch, that would be really helpful. I'm using it to have a "reading now" link on my desktop with an app. It lets me copy and paste any intent I want into it, and I thought this one would be handy. The app is Desktop VisualiseR.
Click to expand...
Click to collapse
I have it, but not with me. Search the forum for Reading Now. It's there somewhere. Or when I return from vacation...
Edit: https://forum.xda-developers.com/showpost.php?p=20046625&postcount=5

nmyshkin said:
I have it, but not with me. Search the forum for Reading Now. It's there somewhere. Or when I return from vacation...
Edit: https://forum.xda-developers.com/showpost.php?p=20046625&postcount=5
Click to expand...
Click to collapse
Thanks brother. I appreciate it.

No hurry on a response, but I'm still trying to figure this out.
So what I'm trying to do is use Desktop VisualizeR to open the reader via the "Reading Now" Intent. I am making a very simple and intuitive browser like the one you have made, @nmyshkin for my friends and family who are not at all techie.
Here that post you referred me to below:
ros87 said:
No, not directly in Reader, but you can do it like this:
Code:
am broadcast -a com.bn.nook.launch.LAST_BOOK -n com.bn.nook.home/.HomeBroadcastReceiver
Click to expand...
Click to collapse
Here is a desktop I'm playing with. These images won't be the final product, but I would like to make an eye image that directly opens "Reading Now"
In the Desktop VisualizeR Widget, I go to "Select Action"-->"Clipboard" (with this exact text copied in the clipboard without quotes: "am broadcast -a com.bn.nook.launch.LAST_BOOK -n com.bn.nook.home/.HomeBroadcastReceiver" )
All I get are two options which pertain to "MX Player" which is merely a video player I have installed. Choosing either one of these and tapping to widget to run it yields no results. Is there a particular way to format the intent for Desktop VisualizeR to run it?

By the way, this homescreen thing is looking awesome! Here is what I've got now!
So I've been messing with using SMWidgets to create a shortcut with the "Eye" symbol on my desktop using this procedure here:
https://forum.xda-developers.com/showthread.php?t=1509030
Here were my results:
I was disappointed to find that the reader app did not launch, and the Script Manager app stayed with that message. I don't honestly know what it means. Anyone know what would be better to input?

ALinkToTao said:
In the Desktop VisualizeR Widget, I go to "Select Action"-->"Clipboard"/B]
Click to expand...
Click to collapse
Just got into Cairo. You've been busy. To my knowledge the clipboard does not work on the NST, at least not for me, so there's one thing.
I can easily create an app with Tasker that does the Reading Now thing. But not without my NST. Would that work?

nmyshkin said:
Just got into Cairo. You've been busy. To my knowledge the clipboard does not work on the NST, at least not for me, so there's one thing.
I can easily create an app with Tasker that does the Reading Now thing. But not without my NST. Would that work?
Click to expand...
Click to collapse
It would, for sure!
I have gotten the clipboard to work in the attempt to do this! It works with the attached keyboard app "Multiling Keyboard". There is an option to switch to a keyboard that has arrow keys, select all, copy, paste, cut, delete, etc.

nmyshkin said:
Just got into Cairo. You've been busy. To my knowledge the clipboard does not work on the NST, at least not for me, so there's one thing.
I can easily create an app with Tasker that does the Reading Now thing. But not without my NST. Would that work?
Click to expand...
Click to collapse
What might be better is if you're going to use tasker, to send me a backup of the macro that you create for the reading now action. That may suffice instead of writing a whole new app. I will probably install tasker since I already have so many tasker apps running it may save some RAM that way, not sure. I can also use tasker for other options on the desktop like toggling wifi etc. The attached version of tasker is the one I know is the latest and best for the NST.
Whichever is easier for you to do is whatever works for me. I really appreciate your help, and hope you have a wonderful and unforgettable trip in Cairo.

ALinkToTao said:
What might be better is if you're going to use tasker, to send me a backup of the macro that you create for the reading now action. That may suffice instead of writing a whole new app. I will probably install tasker since I already have so many tasker apps running it may save some RAM that way, not sure. I can also use tasker for other options on the desktop like toggling wifi etc. The attached version of tasker is the one I know is the latest and best for the NST.
Whichever is easier for you to do is whatever works for me. I really appreciate your help, and hope you have a wonderful and unforgettable trip in Cairo.
Click to expand...
Click to collapse
Yeah, when I get home. In the meantime you might try just
com.bn.nook.launch.LAST_BOOK
as the intent. Seems like that's what's in the RN Menu app, although that might be in a shell which I'm not seeing. Not sure of the intent format for DesktopVisualizer.

nmyshkin said:
Yeah, when I get home. In the meantime you might try just
com.bn.nook.launch.LAST_BOOK
as the intent. Seems like that's what's in the RN Menu app, although that might be in a shell which I'm not seeing. Not sure of the intent format for DesktopVisualizer.
Click to expand...
Click to collapse
Thank! I'll try that and let you know.

ALinkToTao said:
I was disappointed to find that the reader app did not launch, and the Script Manager app stayed with that message.
Click to expand...
Click to collapse
You don't have to put the component name in, that is no "-n com.bn....."
The broadcast receiver component might have changed in different versions.
The newer Nooks seem to use com.bn.nook.intent.action.OPEN_LAST_READ_BOOK

ALinkToTao said:
What might be better is if you're going to use tasker, to send me a backup of the macro that you create for the reading now action. That may suffice instead of writing a whole new app. I will probably install tasker since I already have so many tasker apps running it may save some RAM that way, not sure. I can also use tasker for other options on the desktop like toggling wifi etc. The attached version of tasker is the one I know is the latest and best for the NST.
Whichever is easier for you to do is whatever works for me. I really appreciate your help, and hope you have a wonderful and unforgettable trip in Cairo.
Click to expand...
Click to collapse
OK, so here is a simple little app and the xml task file that is used to create it. You can, of course, assign a different icon using DesktopVisualiser.

Awesome, man! I will try it!

ALinkToTao said:
I have gotten the clipboard to work in the attempt to do this! It works with the attached keyboard app "Multiling Keyboard". There is an option to switch to a keyboard that has arrow keys, select all, copy, paste, cut, delete, etc.
Click to expand...
Click to collapse
I've installed this but can't figure out what to do with it! The first "step" (1. Enable Multiling) says it cannot do an autosetup so see the FAQ. This I did, but nowhere can I find anything about how to proceed with the app
Any pointers on set-up or somewhere you can point me that actually tells you how to do it?

@nmyshkin Here's a way to easily access the copy paste function when typing: In the multiling app go to "keyboard settings" then go to "gestures" each section you see here refers to a different swipe on the keyboard ims over the keys when its active. I know the second one programs a swipe to the right and the fourth is a swipe left. Program one of these to "toggle mode". Swipe your gesture when ims is active.
You will see what you want here.
Swipe again to switch back to QWERTY keyboard.
Try that.

ALinkToTao said:
@nmyshkin Here's a way to easily access the copy paste function when typing: In the multiling app go to "keyboard settings" then go to "gestures" each section you see here refers to a different swipe on the keyboard ims over the keys when its active. I know the second one programs a swipe to the right and the fourth is a swipe left. Program one of these to "toggle mode". Swipe your gesture when ims is active.
You will see what you want here.
Swipe again to switch back to QWERTY keyboard.
Try that.
Click to expand...
Click to collapse
Yeah, I finally figured all that out. My big hurdle was how to get the NST to use the keyboard instead of stock. It can be done using sqlite but I ended up using Nook Color Tools for the first (and last) time and in the process initiating an erase/deregister which made me very unhappy
Having trouble with the dictionary plugin at the moment. I have the keyboard app in system/app but installed the dictionary plugin as normal. Maybe that was a mistake.
But...it's almost back to where it was before the event, then I'll make a more current backup.
Edit: I finally got the dictionary plugin so that it's not whining about memory issues, but it does not seem to do anything.
More importantly, I can only seem to select ALL when using copy/paste. Is there a way to select only part of something? Also the function does not work in all contexts, for example in Documents to Go.
Edit-Edit: Well, I figured out the selection process for copy/paste. Who knew the "shift" key was needed to bound the area to copy? I'm sure this keyboard can do lots of things but it's profoundly lacking in any material to explain how they can be done. Still can't get the word suggestions to work, which is probably just as well since I immediately turn that off on my other devices.

I tried to get word suggestions to work for that keyboard, as it's my go-to keyboard on my Atrix 4g, but it never worked for me on the NST. If it did, that would be my daily user. I use ICS keyboard which actually has autocorrect. It's the only one I know of that works for it. If multiling had autocorrect, I wouldn't switch between the two on the NST.

ALinkToTao said:
I tried to get word suggestions to work for that keyboard, as it's my go-to keyboard on my Atrix 4g, but it never worked for me on the NST. If it did, that would be my daily user. I use ICS keyboard which actually has autocorrect. It's the only one I know of that works for it. If multiling had autocorrect, I wouldn't switch between the two on the NST.
Click to expand...
Click to collapse
Mmm....OK. Whilst looking for an "ICS keyboard" in the YalpStore I was bemused to find that while I had typed "ics keyboard" what appeared in the search box was "Icarus keyboard". First time I noticed something like that and exactly why I always turn this "feature" off on all my devices. Perhaps removing the plugin will squelch that behavior.
Meanwhile, can you give me a link for the ICS keyboard you mention?
Edit: On further investigation, there is definitely auto"correction" going on as I type. What is missing is the typical display of potential substitutions and therefore any way to specify a choice. It just does what it wants by its own arcane rules.
In addition to having the English plugin installed, in the Settings for the Multiling keyboard under "Word suggestion settings" I originally had the first three selections checked as well as "Quick fixes" and "User dictionary". For me, this produced the behavior described.
I was able to stop auto"correct" by unchecking the first two options. This greyed-out everything else in the category.

nmyshkin said:
Mmm....OK. Whilst looking for an "ICS keyboard" in the YalpStore I was bemused to find that while I had typed "ics keyboard" what appeared in the search box was "Icarus keyboard". First time I noticed something like that and exactly why I always turn this "feature" off on all my devices. Perhaps removing the plugin will squelch that behavior.
Meanwhile, can you give me a link for the ICS keyboard you mention?
Edit: On further investigation, there is definitely auto"correction" going on as I type. What is missing is the typical display of potential substitutions and therefore any way to specify a choice. It just does what it wants by its own arcane rules.
In addition to having the English plugin installed, in the Settings for the Multiling keyboard under "Word suggestion settings" I originally had the first three selections checked as well as "Quick fixes" and "User dictionary". For me, this produced the behavior described.
I was able to stop auto"correct" by unchecking the first two options. This greyed-out everything else in the category.
Click to expand...
Click to collapse
I'm so sorry I haven't responded to your request for this. I've been busy building a house (a tiny house) to live in for my girlfriend and I. It's coming along very well, I have to say.
I've attached the apk file.

ALinkToTao said:
I'm so sorry I haven't responded to your request for this. I've been busy building a house (a tiny house) to live in for my girlfriend and I. It's coming along very well, I have to say.
I've attached the apk file.
Click to expand...
Click to collapse
Thanks. I'll take a look at it. I gave up on the other alternate keyboard. While it was able to copy and paste within an app, it didn't seem to have true clipboard capabilities to carry a line of text or a URL from one app to another. That's what I'd really like.

Related

Tasker Question.

I believe that by using Tasker, we can set up multiple task executions ata set time or situation. I haven't tried it myself but I'm planning to now. I just need some info on how to make it work. Most importantly, if it can do THIS:
LEGEND:
A = An App
B = Titanium Backup
C = Another app
IF - LAUNCH - A - THEN - LAUNCH - B - COMMAND - B - FREEZE - C.
In simple terms, is it possible to have Tasker run Titanium Backup and freeze an app whenever a designated app is launched? Basically, launching a specified app will 'trigger' Titanium Backup to be launched and freeze another app.
I hope I'm not confusing anyone.
Thanks, XDA! I'm so proud to be a part of this community.
It looks like you might be able to. I'm unfamiliar with tasker... But the dev does have something of a user manual on the site. You may want to start there.
http://tasker.dinglisch.net/userguide/en/index.html
Tried tinkering around. Couldn't get anywhere with this. Is there an existing guide somewhere in these forums that I might have missed? Can anyone please point me at the right direction? :'(
Well, I'm fairly new to Tasker myself, but there's no easy "tap, tap, scroll, tap, done" way to do it as far as I can tell. Post #3 here gives a suggested way forward (same question as yours only with a time context instead of an app) but it is quite technical and certainly beyond my understanding at this point.
Otherwise you could ask on the Tasker forum. The developer seems to answer most threads, even if only to say something's not possible.
Can I ask why you need to freeze an app on the fly like that? Maybe if you explain it a little, there could be a workaround.
selection16 said:
Well, I'm fairly new to Tasker myself, but there's no easy "tap, tap, scroll, tap, done" way to do it as far as I can tell. Post #3 here gives a suggested way forward (same question as yours only with a time context instead of an app) but it is quite technical and certainly beyond my understanding at this point.
Otherwise you could ask on the Tasker forum. The developer seems to answer most threads, even if only to say something's not possible.
Can I ask why you need to freeze an app on the fly like that? Maybe if you explain it a little, there could be a workaround.
Click to expand...
Click to collapse
Well I found out that one of my apps doesn't work when the other app is installed or active. I really liked the app in question, so I made an experiment to freeze all apps until I found the culprit. I did found it. That's why I'm trying to check if it can be achieved.
Have you tried just killing the app?
Context: Application > App A
Task: App > Kill App > App C (and most likely check "Use Root")
You may want to add an exit task to restart App C after you're done with App A.
If it works, that would stop it running in the background. The problem is that Android 2.2 and upwards have changes to stop an app being able to kill another app. It's inconsistent though - I've tested it on about 6 apps and it has worked on 2, so it's maybe worth a shot if you haven't tried.
If you or anyone else is still interested, this is easy to do. Just use the Secure Settings plugin, specifically it's Package Manager option, and disable or enable to have the same effect as freeze/unfreeze. TB isn't required.
selection16 said:
If you or anyone else is still interested, this is easy to do. Just use the Secure Settings plugin, specifically it's Package Manager option, and disable or enable to have the same effect as freeze/unfreeze. TB isn't required.
Click to expand...
Click to collapse
Thank you very much!!!
I downloaded the sample tasker app that expires in 7 days from their website and installed it. I can run tasker, enter code and save, and the icon shows it as running when I quit out to test my code. I can't get anything to work using code examples from the wiki for simple items such as action at preset time. I am running CyanogenMod 7.2.0 is this causing my problem?

alt+tab equivalent on NST ?

hi,
I realize I've been starting quite a few threads in the last days, I hope this is not frowned upon as newb polution or whatever, do tell me if you think it's to much and I'll work on it.
I like to write long and formated reading notes about what I read, not something I can do with the commenting tools of the readers, what I'd like to do is write it in a text editor and juggle it with my book when I feel like taking notes. So do you know of a way to do that ?
What I'm looking for is kind of an equivalent of alt+tab
cheers
Launch your note taking app before the reader. Then, while reading, long-press the 'n' button to get the recent apps list. You may need to install Nook Touch Tools to enable this. You can also enable the option to show the Home, Back, Menu, Search buttons.
Unfortunately, I don't think cut & paste work between apps.
Be sure your note taking app and reader are excluded from being killed off by any task manager you're using.
Awesome! I had no clue I could use that!
That's certainly good enough for now, but if anyone has any ideas how to do it faster though (I'm a complete alt-tab addict ) I'd love to hear it
And for the record you don't need Nook Touch Tools to get that, (I don't have it)
but yeah since you're mentioning it, I've been trying to find the install file for that, could you point me in the right direction?
Karibou3;28754624[... said:
but yeah since you're mentioning it, I've been trying to find the install file for that, could you point me in the right direction?
Click to expand...
Click to collapse
Nook Touch Tools are here. If you enable the extended menu options, you don't need Button Savior any more.
Button savior is still good to have, though, in case something goes wrong and you accidentally lock yourself in the default home.
thanks for the install file!
yeah I don't want to get rid of button savior just now, it doesn't take much space anyway!
I think the home button on button savior and the extended recent apps list do the same thing.

[Q] NST 1.2.1 Library

Using a rooted NST 1.2.1 with cool reader.
Is there a library app compatible with this apart from the stock library? The app is just to view the books present on the device. Something like bookshelves, like the moon reader kinds.
Also, is there a NoRefresh compatible with 1.2.1 ? The other NoRefresh apps dont work with this version.
Well, you can try my Library (see signature).
I've never used CoolReader (or seen the manifest out of it) so I can't say how it will work.
Thank Renate, Your Library app is amazing, I love its simplicity. Besides, It also helps me to break the habit of putting a lot of book on my nook =).
Btw, Can it be launched on startup like default library. I hate to see Nook Launcher .
Renate NST said:
Well, you can try my Library (see signature).
I've never used CoolReader (or seen the manifest out of it) so I can't say how it will work.
Click to expand...
Click to collapse
Thanks!
But, is there any app which will present the library in the form of bookshelves?
Also, is there s NoRefresh version of NST Root 1.2.1 ?
shriramks said:
Thanks! But...
Click to expand...
Click to collapse
Does that mean that it works with CoolReader?
I guess that you could make my library the default home screen,
but then how would you launch all the neat apps on your Nook?
Hint: A long touch on a book in my Library brings up the full metadata.
It works
Selection of the book from the library prompts me for the option of reading, i.e, cool reader or the native B&N reader. Not sure how exactly to make Cool Reader the default option.
Have a lot of books on the device, so, it is a bit tedious to keep scrolling down the list. Hence the interest in shelves. B&N Library has shelves, but manual addition everytime i download a book is a pain.
Also, any other settings available on your library app apart from the metadata on long press?
Renate NST said:
Does that mean that it works with CoolReader?
I guess that you could make my library the default home screen,
but then how would you launch all the neat apps on your Nook?
Hint: A long touch on a book in my Library brings up the full metadata.
Click to expand...
Click to collapse
Indeed, by putting coolreader in /system/app, When I choose a book from library, A pop up shows me which reader will be used.
Can you show me the way to make your library the default home screen ? I really love its features :fingers-crossed::fingers-crossed:
PS:// I removed a lot of apps from /system/app, put FBreaderJ and CoolReader in, now my nook seems enhanced ( boot faster..). The battery seems better ( It lost 2%/day in idle mode)
Whenever multiple apps could handle an intent but no app has been specified as default, a "picker" window pops up.
It lists all the possibilities and at the very bottom there is a checkbox.
The checkbox has text in white which says, "Use this app as default app in the future" (or something).
Of course you can't read the white text.
Just click the box, then carefully select which app to use in the future.
To undo what you selected can be difficult because you will never see that dialog again if you check the checkbox.
There are tools to fix that, non-B&N Settings.apk or you can edit /data/system/packages.xml
Uhm It seems that we are misunderstanding. I read all your posts about alternative library app.One of them mentioned that if I want to use your Library app, I have to remove default Home, Shop and Library of my Nook. I did then when my nook started, It showed a launcher with your Library Icon.
Can you modify your app that when my nook start, it will be run at the same time and disable the HOME button ( used to get back to launcher)?
If you modified your "n" button it should go to whatever you selected as the default app for home.
Apparently that is the default launcher.
My question remains, if you make Library the default home, how will you get to your browser, email, etc?
Right now Library does not handle the home intent.
Renate NST said:
If you modified your "n" button it should go to whatever you selected as the default app for home.
Apparently that is the default launcher.
My question remains, if you make Library the default home, how will you get to your browser, email, etc?
Right now Library does not handle the home intent.
Click to expand...
Click to collapse
Not making it the default home. Configuring the physical button for switching pages as a shortcut to the library.
Also,are anyone having problems with connecting to the wi-fi?
Renate NST said:
If you modified your "n" button it should go to whatever you selected as the default app for home.
Apparently that is the default launcher.
My question remains, if you make Library the default home, how will you get to your browser, email, etc?
Right now Library does not handle the home intent.
Click to expand...
Click to collapse
Actually, I do not use my Nook for email, browser, I have an ipad for those tasks. I love the nook because I can focus on just reading. The combination of your library and coolreader makes my nook perfect.
Not making it the default home. Configuring the physical button for switching pages as a shortcut to the library.
Also,are anyone having problems with connecting to the wi-fi?
Click to expand...
Click to collapse
Which firmware are you using ? 1.0 or 1.1. I heard that 1.1.2 comes with Wifi bug fix.
Btw, Today I upgraded into 1.2.1. The reader renders text much better than 1.1.2's one howerver, the battery is a pain. I lost 4% in just one hour even in sleeping mode @@ Does any one know why ? ( I removed all unnecessary apps like phone.apk, telephony...)
I agree with you.
Without putting my finger on it the text or page turns or something is better in 1.2.1
They redid the EpdController (which handles eInk modes) in 1.2+
The Nook Touch has always had an intermittent problem with not sleeping.
I have even caught it with the screen's IR touch sensors still running in sleep.
Lore and legend says never to use the power button to put your Nook to sleep.
Let it time out on the screen saver.
I'll see about doing something on that Home issue.
Right now my Nook is not booting up and I have to hook up the console to see why.
Renate NST said:
I agree with you.
Without putting my finger on it the text or page turns or something is better in 1.2.1
They redid the EpdController (which handles eInk modes) in 1.2+
The Nook Touch has always had an intermittent problem with not sleeping.
I have even caught it with the screen's IR touch sensors still running in sleep.
Lore and legend says never to use the power button to put your Nook to sleep.
Let it time out on the screen saver.
I'll see about doing something on that Home issue.
Right now my Nook is not booting up and I have to hook up the console to see why.
Click to expand...
Click to collapse
If I replace 1.1.2 reader with 1.2.1's one, can it work?
PS:// Can't wait to see your works. :victory::victory:
A question. Your app reads files present in sdcard\my files\books.
Any way to broaden the file structure?
Thanks!
I'm trying to figure out what to do with Library.apk
Currently it only handles epub files.
It could handle any kind of file but the problem is extracting metadata.
If it's not extracting metadata you might as well be just using a file manager.
Extracting metadata out of epubs is pretty simple.
Extracting metadata out of pdfs can be difficult.
There is a nice (computer-type) library that can do this though.
The Nook Reader also handles pdfs.
I have lots of technical references in pdf but they are better accessed from a file manager.
Another topic I wanted to raise elsewhere:
Are people happy with their pdf reading capability/apps?
Are there problems with opening some pdfs or formatting?
Are the pan/zoom/orientation options sufficient?
I'm working (a bit) on a ground-up rewrite of the Reader.
It's still lacking a lot of features, but it also doesn't have all the B&N cruft in it.
Right now it has portrait/landscape of PDFs with overscan (to get rid of the paper margins).
Even this small step makes reading easier.
I've got about 200+ PDFs on my Nook, one that is 3700 pages long.
Renate NST said:
I'm working (a bit) on a ground-up rewrite of the Reader.
It's still lacking a lot of features, but it also doesn't have all the B&N cruft in it.
Right now it has portrait/landscape of PDFs with overscan (to get rid of the paper margins).
Even this small step makes reading easier.
I've got about 200+ PDFs on my Nook, one that is 3700 pages long.
Click to expand...
Click to collapse
I love and use Library.apk and I hate to be critical about such good free software but on my nook sometimes the app doesn't capture the same title and author (or even getting the author) as does Calibre and the standard nook Library. Also, sometimes the author sorting is by first name, sometimes by last name even on the same page. I'm using the 1.9 version.
The problem is always the lack of good metadata.
Even figuring out how to split a name is not easy.
Jethro Tull should be filed under J for the band or under T for the historical person?
Gabriel García Márquez, is his last name García Márquez or Márquez?
This is the way it is supposed to be filled in:
Code:
<dc:creator opf:file-as="Alcott, Louisa May">Louisa May Alcott</dc:creator>
If you can paste me the metadata that causes problems, I'd be grateful.
@mergen3107 Yes, I've noticed a lot of those problems.
The footnote one is the most annoying to me right now.
The current state of things is that I use my reader for PDFs and still use the stock reader for epubs.
Renate NST said:
The problem is always the lack of good metadata.
Even figuring out how to split a name is not easy.
Jethro Tull should be filed under J for the band or under T for the historical person?
Gabriel García Márquez, is his last name García Márquez or Márquez?
This is the way it is supposed to be filled in:
Code:
<dc:creator opf:file-as="Alcott, Louisa May">Louisa May Alcott</dc:creator>
If you can paste me the metadata that causes problems, I'd be grateful.
@mergen3107 Yes, I've noticed a lot of those problems.
The footnote one is the most annoying to me right now.
The current state of things is that I use my reader for PDFs and still use the stock reader for epubs.
Click to expand...
Click to collapse
Here is a link to examples some (of many) problem files: https://dl.dropboxusercontent.com/u/20746013/Problems.zip
They all look ok in Calibre and in the stock Lilbrary app.

KODI with - amazon voice search :D (proof of concept)

Hi Guys,
I managed to root my FireTV a few days back, and yesterday decided to look at the voice search to see if I could use it for other things.
After reversing some code, I found the actual voice search is handled by com.amazon.vizzini.apk
The SearchOverlay.class has this piece of code, which calls back to the amazon fireTV UI SearchResultsActivity upon completion with the search result returned as a string.
I replaced the fire TV UI with my own code, which receives the search text, and then sends a JSON rpc to KODI's web interface, and brings KODI to the front after the search is completed.
Here is a video of it in action.
http://youtu.be/hpgKci_gJYY
android studio project
http://uptobox.com/ccykod7zua1l
mirror
http://www107.zippyshare.com/v/mAhl3UuM/file.html
***** I have a FireTV v1 updated to fire os 5 ******
I have no idea if this will work on older versions of software.
To make it work you will require ROOT, and you will have to uninstall or move the existing fireTV amazon UI.
Reason for this is that the vizinni.apk calls back to
localIntent.setComponent(new ComponentName("com.amazon.tv.launcher", "com.amazon.tv.launcher.ui.SearchResultsActivity"));
So your activity has to be in that package, and called SearchResultsActivity.
The only other way to possibly get round this would be to modify the vizinni.apk to call a different package instead, but then voice search wouldn't work on the amazon UI anyway. I wasn't really bothered about the amazon UI working myself which is why I did it the way I did.
I just moved the original system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk to /system then installed my code via android studio.
mount -o rw,remount /system
mv /system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk /system/
You will also need to change KODI's settings to enable web interface control on port 8080.
On my setup it was .. system.. services.. webserver.. and tick the box that says "Allow control of kodi via http" and make sure the port is set to 8080.
edit: 07/07/2016
I did start work a few months back on an Xposed module (works but not 100%), I was going to add a settings page but I think there was issues with xposed on android version that the fire tv runs on, due to permissions etc.
You can set a prefix in the code (currently hard coded to KODI) so if you say " kodi star wars" it would pass the param of "star wars" to kodi.
If you just say "star wars" without the prefix it would pass this to the normal amazon UI.
If anyone wants to take it further, it's attached on the link below.
http://uptobox.com/ensqll4a7r65
Mick
Thats actually pretty great.
Conventional wisdom was that both voice recognition and response "results packaging" was done server side - and the only return query you could get were preexisting amazon database references - not the result of the initial voice recognition.
I've actually read that multiple places - but as it turns out, no one had bothered reversing the process I guess.
Major props and thank god for overlays containing strings... Finally - that microphone might not be so useless after all..
Next step - implement it to interface with google search. (Weather in ...)
edit: Actually - there are three interesting usecases I can think of on top of my head...
1. Launch other Apps (maybe even with "fixed Keywords (App 1 f.e. would work edit: "Number 1" delivers better results. )" if App names arent known to Amazon) - so thats text>launcher app - see if sphinx02 has any interest in coding that as part of Firestarter..
2. google search (Whats the weather in.. ) text>google search app (if possible)
3. direct text input as seen in the POC video
edit 4. forward to Amazon - not to "break" their implementation
This could be realized by a quick 4 way select screen (just confirm with the direction button) after you select the string in the overlay.
great find and implementation. would love see more expansion as above post mentions. Are you planning to share fire tv UI code?
I was playing with voice search strings and found that Amazon tends to strip out "Google" in front of search queries -so instead of "Google how is the Weather tomorrow" only "How is the weather tomorrow" will get returned.
But - Alexa as a trigger word will be returned fine, so - I vote for using "Alexa" as a trigger word to forward all search queries to the google search app.
Ok - maybe not - but conceptually, this would be a great "work of art".
An even better idea than Harklekinrains' would be to check the foreground app and do different things based on that. For example, if Kodi is open it could send the intent to Kodi. If the Fire TV launcher is open it could fall back to default functionality, etc. Simulating keystrokes could also cover 99% of the other applications. I'm excited for this. It really makes the Fire TV so much less of a novelty.
I've just updated the original post with a copy of the android studio project, and a few more details.
Mick
Great mate,thanks! gonna check it out soon!
One question (as im not firm with intents and stuff): aint there a possibility to listen for intents sent to the amazon ui and catch them? Personally, i dont care too much about it right now as im using nothing but kodi, but maybe some day when wanting to use prime or similar stuff?
dafunkydan said:
Great mate,thanks! gonna check it out soon!
One question (as im not firm with intents and stuff): aint there a possibility to listen for intents sent to the amazon ui and catch them? Personally, i dont care too much about it right now as im using nothing but kodi, but maybe some day when wanting to use prime or similar stuff?
Click to expand...
Click to collapse
I don't think so as the actual code in the vinizzi apk is as follows:
Intent localIntent = new Intent();
localIntent.setComponent(new ComponentName("com.amazon.tv.launcher", "com.amazon.tv.launcher.ui.SearchResultsActivity"));
localIntent.putExtra("identifier", null);
localIntent.addFlags(402653184);
localIntent.putExtra("term", str);
localIntent.putExtra("text", str);
localIntent.putExtra("source", "VOICE");
localContext.startActivity(localIntent);
So basically when it receives the voice search response from amazon's server, it's starting the activity com.amazon.tv.launcher.ui.SearchResultsActivity from package com.amazon.tv.launcher
Mick
Integrating the search attempt based on the previous foreground app would mean that "voice search" could never "initate a new attempt". This would prevent the "lets just ask google, or lets launch an app - impulse use" of the feature. Still - in the long term it might turn out to be the right approach - f.e. if
"People tend to use the the google search only lets say "half a dozen times", and in the majority of cases just want text input in Kodi" Also - without having a select screen with "four (dont make it too many) predefined "use options"" discoverability is pretty non existent. People would have to read readmes to find out which interactions are supported.
Also Amazon wants you to "be able to always reach the Amazon content search from anywhere" - so, political implications.
Also - each time a new app would want to integrate the voice to text feature - they would have to contact the devs of this project - if you dont use "just text input" as a default in the "use the previously open app as an indicator of intent" approach. So make sure you default to "just text input" in that case. (Amazon launcher > forward query to Amazon (do not break functionality), ....)
Dont implement it as a mixed approach though as "Kodi is open most of the time" probably for most people - and the intent (message) gets "confusing".
--
What you probably shouldnt do - regardless, is to use "trigger words" as an "indicator of intent" - because Amazon can start blocking them. "Number 1" is probably generic enough so they wont try to block that - but in principal, they can. Also Amazons "voice to text" engine is optimized for "short phrases" - the longer your input query gets the more prone to errors their results become. Leave the actual "voice input" as "natural" as possible (dont embed logic there). Imho.
I'm in the USA and uptobox.com is not available in our country.
I want to give the source a look and see what I can do to contribute.
Can you put it on github or somewhere else?
Much appreciated.
kratosjohn said:
I'm in the USA and uptobox.com is not available in our country.
I want to give the source a look and see what I can do to contribute.
Can you put it on github or somewhere else?
Much appreciated.
Click to expand...
Click to collapse
I've just uploaded it to zippyshare too. Link added to original post.
Mick
It would be nice if this could be generic way of entering text in any app, similar to the FTV Remote App that has keyboard support. I am surprised Amazon has not done this already. If you are in a text field voice search would fill in the text, else it can continue with normal Alexa functionality letting you " always reach the Amazon content search from anywhere". Should be an easy solution for Amazon to implement, not sure if it could be added with the progress here, and it would really make the voice control so much more useful.
Hey Mick, as im still very exited about that (so frustating to enter searchphrases with a dpad...), i thought about what your great find could develop to. I hope u dont get me wrong, as i unfortunatly cant contribute any programming (if u need something made with tasker let me know ), its not that i want to demand anything - rather share my thoughts or ideas...
- I think its a good thought not to 'blow it up' by adding many keywords, make it more complicated, and avoid amzn to lock features down. even if it may be an abstract fear. I think with a well-structured menu in kodi, all apps one will need to start are just 2-3 clicks away.
- if i got it right, xposed could hook into every module and alter it, right? so basically it should be possible to avoid to exchange the amazon ui and/or alter the vizinni.apk,but just modify the SearchOverlay.class? wouldnt it be (on top) the most convenient way to decide wether one is on e.g. Amazon Prime, or on kodi, and either hand over the result to the original module, or hand it over to kodi?
So, please understand my post as a mixture between sugestions and questions, not as a demanding 'please make it how i want it asap'. Im really excited about your finding, appreciate your sharing, and want to contribute what i can do - unfortunatly its rather thoughts and suggestions. Cheers mate!
Great Work !!! I totally understand this is for amazon Fire products only. My question is would we be able to port for generic Android TV box like nVidia Shield which also has mic capability and comes with root support.
Good job @is0-mick it's great to see you accomplish something that Netflix doesn't even want to be bother with on their app.
harlekinrains said:
No you dont understand. You havent even read or understood the first posting - but you have bought another device and now want others to move in your direction on your behalf.
Click to expand...
Click to collapse
Seriously mate if XDA bothers you so much, you need to take a break from it for your own sanity!
fach1708 said:
Seriously mate if XDA bothers you so much, you need to take a break from it for your own sanity!
Click to expand...
Click to collapse
No, I really don't think he needs to take break, his argument is completely understandable. This is not a Shield forum (btw before we make judgements, I own both devices). We need to get this fixed for one device, before even mentioning whether other devices are an option.
is0-mick said:
To make it work you will require ROOT, and you will have to uninstall or move the existing fireTV amazon UI.
Reason for this is that the vizinni.apk calls back to
localIntent.setComponent(new ComponentName("com.amazon.tv.launcher", "com.amazon.tv.launcher.ui.SearchResultsActivity"));
So your activity has to be in that package, and called SearchResultsActivity.
The only other way to possibly get round this would be to modify the vizinni.apk to call a different package instead, but then voice search wouldn't work on the amazon UI anyway. I wasn't really bothered about the amazon UI working myself which is why I did it the way I did.
Click to expand...
Click to collapse
Is it not usefull for this to create a xposed mod? I thought xposed was made for this...
Perhaps you should talk with rbox in his thread about a integration into version 1.5 of his mods, look here.
is0-mick said:
I just moved the original system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk to /system then installed my code via android studio.
mount -o rw,remount /system
mv /system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk /system/
Click to expand...
Click to collapse
So does that mean, while you are using your proof-of-concept you can not use the normal Launcher-UI?
Really great your work! I hope we got more
Sadly I am with my FireTV-Stick (hardware-Rooted-superSU) and my FireTV box gen1 (hardware-Rooted-superSU+custom-recovery+unlocked-bl)on the old FW. I wait for custom roms.
Greetings by Idijt
EDIT:
I forgot to ask you something. Did you got the kind of search-request back?
Can you see if amazon-voice-rgn knows if it is a app or a video or a moviestar?
This looks pretty cool since I don't like typing the name of the movie in the search box... now I can just speak it.
As a novice I have one question, You wrote:
is0-mick said:
I just moved the original system/priv-app/com.amazon.tv.launcher/com.amazon.tv.launcher.apk to /system
Mick
Click to expand...
Click to collapse
The code I downloaded was in .RAR format not .apk. Do I need to covert it to .apk or rename it to .apk before replacing the original?
I've not rooted my device yet so I haven't looked at the file structure, but I'd be willing to root to get this feature. OR is the adding of this code better done by someone other than a novice?
Thanks
carpenter940 said:
The code I downloaded was in .RAR format not .apk. Do I need to covert it to .apk or rename it to .apk before replacing the original?
Click to expand...
Click to collapse
It's the source code. You have to compile it and create the apk with AndroidStudio.

Recommendations and Help With Apps

I've had my Essential Phone for about three days and I've got mixed feelings about it. This is my escape from the Samsung ecosystem, and I love love love the fact that it isn't bogged down with bloat. Generally, the PH-1 does everything faster than any phone I've ever owned, even the much lauded iPhone. But there's a number of functionalities I'd like to get.
1.) File Management: I thought this was part of the Android OS. Apparently not? I would like to find a file management app that gives me Windows-like control and navigation.
2.) Camera: The PH-1's native camera app might be good someday. For now it sucks. I'd heard you could "just get the Google Pixel Camera" and everyone made it sound super easy. Well ... I did go out and find the Nougat version Google Pixel Camera APK. I installed it. It crashes instantly upon opening and never works. I'd love to know what went wrong there.
3.) Keyboard: Okay, sometimes Samsung just does it better. Their keyboard app was perfect and I'd gotten used to the layout. Now I'm wishing I could have my Samsung keyboard back. The Google one sucks, truth be told. Most keyboard apps you find searching Google Play are all about being pretty or fancy or whatever. I just want the same simple functionality back: All letters and numbers on the same screen and the most common special characters as alternate long-press options on that same page. Decent intelligent autocomplete. Larger buttons. Extensions such as .com when they make sense and not when they don't.
I'd also like to get any and every recommendation for apps. Is there any point in rooting the PH-1? That sort of thing.
Thanks in advance!
BonkersTheClown said:
I've had my Essential Phone for about three days and I've got mixed feelings about it. This is my escape from the Samsung ecosystem, and I love love love the fact that it isn't bogged down with bloat. Generally, the PH-1 does everything faster than any phone I've ever owned, even the much lauded iPhone. But there's a number of functionalities I'd like to get.
1.) File Management: I thought this was part of the Android OS. Apparently not? I would like to find a file management app that gives me Windows-like control and navigation.
2.) Camera: The PH-1's native camera app might be good someday. For now it sucks. I'd heard you could "just get the Google Pixel Camera" and everyone made it sound super easy. Well ... I did go out and find the Nougat version Google Pixel Camera APK. I installed it. It crashes instantly upon opening and never works. I'd love to know what went wrong there.
3.) Keyboard: Okay, sometimes Samsung just does it better. Their keyboard app was perfect and I'd gotten used to the layout. Now I'm wishing I could have my Samsung keyboard back. The Google one sucks, truth be told. Most keyboard apps you find searching Google Play are all about being pretty or fancy or whatever. I just want the same simple functionality back: All letters and numbers on the same screen and the most common special characters as alternate long-press options on that same page. Decent intelligent autocomplete. Larger buttons. Extensions such as .com when they make sense and not when they don't.
I'd also like to get any and every recommendation for apps. Is there any point in rooting the PH-1? That sort of thing.
Thanks in advance!
Click to expand...
Click to collapse
You can set up the Google keyboard to display letters and numbers as well as symbols on long press. It's in the keyboard settings in your phone settings but isn't turned on by default. I don't know why. I turned it on and now it's usable. Go to phone settings, language&input, virtual keyboard, Gboard and preferences. Enable show numbers and long press symbols
Also I use file explorer from play store
barleysoda said:
You can set up the Google keyboard to display letters and numbers as well as symbols on long press. It's in the keyboard settings in your phone settings but isn't turned on by default. I don't know why. I turned it on and now it's usable. Go to phone settings, language&input, virtual keyboard, Gboard and preferences. Enable show numbers and long press symbols
Also I use file explorer from play store
Click to expand...
Click to collapse
I prefer the SwiftKey Beta keyboard, been using it for years.
barleysoda said:
You can set up the Google keyboard to display letters and numbers as well as symbols on long press. It's in the keyboard settings in your phone settings but isn't turned on by default. I don't know why. I turned it on and now it's usable. Go to phone settings, language&input, virtual keyboard, Gboard and preferences. Enable show numbers and long press symbols
Also I use file explorer from play store
Click to expand...
Click to collapse
Thanks for the timely response. Yeah, got the Gboard sorted. Weird how you have to look to find settings and minor tweaks like that. Oddly found that I prefer ASUS file manager. Strange that the Android OS doesn't have file management built in. Is there a way to enable full control of my PH-1 files and folders from my PC?
Next problem: Sounds. Once again, Samsung made it all so much easier. Need to sort out how to specify sounds for specific apps. For example, if I get a text message, I am used to setting one sound just for that and different sounds for other specific events. What I am seeing here is ringtones, media and notifications. And quite annoyingly, EVERY APP seems to be enabled to span notifications by default. Apparently,you have to block each one individually. It's also be nice to set my phone to silent easily but on a timer so I don't forget to turn it back on. Used to just pull down top of the screen and tap the icon to silence. Had an app to turn it back on on a timer called Shush, but it didn't work reliably.
Had another "damn I love this phone" moment yesterday when I realized that I can actually just uninstall my longtime nemesis, Google Music.
BonkersTheClown said:
Thanks for the timely response. Yeah, got the Gboard sorted. Weird how you have to look to find settings and minor tweaks like that. Oddly found that I prefer ASUS file manager. Strange that the Android OS doesn't have file management built in. Is there a way to enable full control of my PH-1 files and folders from my PC?
Next problem: Sounds. Once again, Samsung made it all so much easier. Need to sort out how to specify sounds for specific apps. For example, if I get a text message, I am used to setting one sound just for that and different sounds for other specific events. What I am seeing here is ringtones, media and notifications. And quite annoyingly, EVERY APP seems to be enabled to span notifications by default. Apparently,you have to block each one individually. It's also be nice to set my phone to silent easily but on a timer so I don't forget to turn it back on. Used to just pull down top of the screen and tap the icon to silence. Had an app to turn it back on on a timer called Shush, but it didn't work reliably.
Had another "damn I love this phone" moment yesterday when I realized that I can actually just uninstall my longtime nemesis, Google Music.
Click to expand...
Click to collapse
In the msgs app, you can set the notification sound for that.
For the timed silence, when you pull down the notification bar, you will see the do not disturb icon. A circle with a stroke through it. When you turn that on, you can set a duration for it.
I use Ex File Explorer on my phone and I use the blackberry keyboard.
There is another thread on this forum that's dedicated to the Google cam port where you can get the APK.
Sent from my PH-1 using XDA-Developers Legacy app
BonkersTheClown said:
1.) File Management: I thought this was part of the Android OS. Apparently not? I would like to find a file management app that gives me Windows-like control and navigation.
2.) Camera: The PH-1's native camera app might be good someday. For now it sucks. I'd heard you could "just get the Google Pixel Camera" and everyone made it sound super easy. Well ... I did go out and find the Nougat version Google Pixel Camera APK. I installed it. It crashes instantly upon opening and never works. I'd love to know what went wrong there.
Click to expand...
Click to collapse
1. If you search on the play store, there are a bunch of free file managers for download. There's a bunch of them, pick one that fits your style
2. Did you get the ported one? Havent tried it but I don't think the actual pixel camera apk will work on any phone. Check out the most recent port in this thread
https://forum.xda-developers.com/essential-phone/themes/google-camera-port-t3665197/page4
flakko86 said:
1. If you search on the play store, there are a bunch of free file managers for download. There's a bunch of them, pick one that fits your style
Click to expand...
Click to collapse
Got that part sorted. As a pure Android noob, I was surprised the OS doesn't have one built in.
2. Did you get the ported one? Havent tried it but I don't think the actual pixel camera apk will work on any phone. Check out the most recent port in this thread
https://forum.xda-developers.com/essential-phone/themes/google-camera-port-t3665197/page4
Click to expand...
Click to collapse
I am pretty sure I got the right one, but I'll try the one you linked along with the instructions. We'll see how it goes.
Okay I have downloaded the APK, how do you access changelog and make the prescribed settings changes?
BonkersTheClown said:
Got that part sorted. As a pure Android noob, I was surprised the OS doesn't have one built in.
I am pretty sure I got the right one, but I'll try the one you linked along with the instructions. We'll see how it goes.
Click to expand...
Click to collapse
Stock Explorer:
Settings - Storage - Explore
onenexus said:
Stock Explorer:
Settings - Storage - Explore
Click to expand...
Click to collapse
Yeah true, found that before. It's a lot of steps. I wanted and got something to stick on my home screen that gets me there in a single tap.
BonkersTheClown said:
Okay I have downloaded the APK, how do you access changelog and make the prescribed settings changes?
Click to expand...
Click to collapse
While you're in the app, tap the 3 horizontal lines on the top right corner of the screen. That should take you to the settings menu
More fun stuff. I would have thought that this would be simple. I dumped Google Music because quite frankly it sucks and I have always hated it. Shopped around and found a music player that I liked: Pi Music Player. Now when I try to play music via voice command via Google Assistant, it doesn't know what app to use. I'm offered the choice between Google Play and YouTube. I have looked and looked, but haven't found steps for changing the GA default music app to Pi Music Player - at least no steps that actually work. Another one of those, "this should seriously be easier than this" things.
Also, on my old Samsung phone, I was able to get the home button working in Google Chrome. Frankly, I'd rather use Brave as I prefer to not spend my bandwidth on letting Google spy on me. Same is true in Brave and Chrome: No home button possible.
Thanks so much for the help!

Categories

Resources