[Q] How to run multiple processes at exactly the same time - Java for Android App Development

I can not publish any code or any logs, because there is no real problem yet. I am a beginner in Android / Java and the OOP concept.
I need to run two processes at exactly the same time in my program. The processes are sound samples and requires played at exactly the same time to be synchronized with each other.
I call the methods on the lines one after the other, which gives me a delay when the first clip starts a few microseconds before. Depending on the hardware this delay will also vary enormously .. how do i run the commands, or call the methods exactly the same time?
I've been looking at adding a delay of the first method by a handler, but I do not want to do this but it does not guarantee accurate synchronization.
I am on track to use AsyncTask, and somehow run these processes simultaneously but in different threads ... I have no idea if I'm on the right track? Can anyone confirm that this is the right way, or provide information about what else I can do? Grateful for all the help I can get. I hope I have not used the wrong terms and that I have given you enough information so that you can understand my question. Thanks in advance.

Having two functions tied to the same event has worked for me in the past.
For example, if you have a play button and you set up two separate functions to run when that button is clicked, they should go at the exact same time. If your play button is pressed, it will fire both functions simultaneously.
Another more advanced approach would be to return the current time code of "sound a" and pause it until the time code of "sound b" reaches the current time of "sound a".

Im Saint said:
Having two functions tied to the same event has worked for me in the past.
For example, if you have a play button and you set up two separate functions to run when that button is clicked, they should go at the exact same time. If your play button is pressed, it will fire both functions simultaneously.
Another more advanced approach would be to return the current time code of "sound a" and pause it until the time code of "sound b" reaches the current time of "sound a".
Click to expand...
Click to collapse
Well "simultaneously" is a big word but you are right, even if one player lags behind the other one, we are talking about microseconds at most. And i doubt that anybody would even notice that.
And to OP:
In java there is a keyword called "synchronized" where one thread awaits the other. I have never used that and so i dont know how to use this. Maybe if you look it up on google it could prove useful to your project. But i actually dont think that you can technically accomplish this "true" synchronization you are thinking of... It is worth a try at least
--------------------
Phone: Nexus 4
OS: rooted Lollipop LRX21T
Bootloader: unlocked
Recovery: TWRP 2.8.2.0

Have you considered buffering? you can buffer samples in some queue and start playing them after a decided delay / samples count, making sure you have samples from all the sources you need to synchronize

Thanks for the replies, any help is much appreciated!
Im Saint said:
Having two functions tied to the same event has worked for me in the past.
For example, if you have a play button and you set up two separate functions to run when that button is clicked, they should go at the exact same time. If your play button is pressed, it will fire both functions simultaneously.
Another more advanced approach would be to return the current time code of "sound a" and pause it until the time code of "sound b" reaches the current time of "sound a".
Click to expand...
Click to collapse
Good to hear, but can it be guaranteed that the function calls are performed exactly the same time? This is very necessary for various reasons.
Masrepus said:
Well "simultaneously" is a big word but you are right, even if one player lags behind the other one, we are talking about microseconds at most. And i doubt that anybody would even notice that.
And to OP:
In java there is a keyword called "synchronized" where one thread awaits the other. I have never used that and so i dont know how to use this. Maybe if you look it up on google it could prove useful to your project. But i actually dont think that you can technically accomplish this "true" synchronization you are thinking of... It is worth a try at least
Click to expand...
Click to collapse
This is what I also want to emphasize. With the greatness of the inner meaning of "simultaneousness", even if that someone would not notice anything, it's a necessity.
I will seriously undermine further the keyword synchronized. This sounds exactly like what I need. I will succeed and reconnect with the results!
pixeltech.dev said:
Have you considered buffering? you can buffer samples in some queue and start playing them after a decided delay / samples count, making sure you have samples from all the sources you need to synchronize
Click to expand...
Click to collapse
I have heard the word buffer before but never truly understood how it works syntactically, nor in Android / Java.
With what kind of content can this be done? All types of media, audio / picture / video? Do you have any keyword to search on or link to an example?

Invisible Algorithm said:
Thanks for the replies, any help is much appreciated!
I have heard the word buffer before but never truly understood how it works syntactically, nor in Android / Java.
With what kind of content can this be done? All types of media, audio / picture / video? Do you have any keyword to search on or link to an example?
Click to expand...
Click to collapse
Buffering is a technique where you first collect enough data (can be represented in any form but is usually done through collections) and once you have enough data you do something with it.
An example can be reading data in bytes form from one source (e.g. network channel), buffering it (storing it in some collection) and writing it to files when buffered data reaches some threshold size

Related

nombCrypt - beta

Hello Everyone,
I just got my 8525 in the mail yesterday and upgraded the boot loader, radio, and WM6. I had a little trouble but in the end, all that I can't get working right is the internet for Cingular. I really appreciate all the hard work everyone puts into this. Here is my thank you, this is my first app so go easy on me.
nomb
nombCrypt
nombCrypt is an encryption program I originally made for the desktop but then decide to port it over. It uses a password you provide and encrypts either a block of text or files using 256bit Rijndael (AES). This level of encryption was given the ok to encrypt Top Secret documents. It can of course decrypt as well. This is for Windows Mobile 6. Please enjoy and every developer of course likes to get back feedback.
Planned/Requested Improvements
Truecrypt like encrypted containers
Implement Encrypted Backups (P)
Get File Encrypt Status Bar Working (P/R) <-- I'm dreading writing the working class :'(
Use Device ID As Salt Option (P)
Randomize Salt More (P)
Add More Encryption Algorithms (P)
Change File Open Dialog To Open Less (R) completed - now initially looks for *.nen (nombCrypt Enc. Files)
Encryption Password Confirmation (R) completed
Clipboard Paste Button (R) completed
Clipboard Clear Button (R) completed
Take Off Start Menu Icon (R) completed
Change Icon (R) completed
Add Exit To The Menu (R) completed
Add Time Out Feature (R) completed - (see page two for details)
Integrate nombCrypt Into WM6 More (P)
I. Encrypt MS Certificate Store (R)
Other Fixes
Improved Text Encryption So The End TextBox Is Opened Less
Added file error checking to the file decryption process
Two screenshots and the cab file are attached.
I hope you guys enjoy...
nomb
Hey! I wanted to do the same thing too! Just that I use my own XOR method (One Time Pad-like) instead. Of all the thing, it works alright, except that I can't get it to do a Copy-Paste. (see here http://forum.xda-developers.com/showthread.php?t=321014)
Also, from what it seems, I would presume that (since you uses AES), the end result would be in 'relatively' binary format (right?), which may not be very program friendly.
I was going to do about the same thing, except that I'll have my end result Base64 encoded, such that I can have them pasted to Notes and have it sycned to outlook. And I have my PC based software to do the job there (if required).
Previously, I used a software called Ccrryyppttoo, which did quite alright, but it seems that my PC is doing some coding, when synced, that makes it goes funny (i.e. cannot be decrypted anymore).
I'll PM you a demo of what I did (in Java web), of which I intended to do it in PPC
With Rijnael the resulting encrypted string/file gets encoded into base64 as well because if it didn't, all the characters wouldn't be represented. You can paste this into notes just fine.
Mine is programmed in c# so there is a clipboard function which works relatively well. If you'd like to help with this your more than welcome to. Or if you want to join your project with mine that would be cool too. I plan to support all major and a lot of minor encryption algorithms that I can find. Plus people were complaining about how the encrypted backup on the ppc should use the device id to encrypt instead of the randomly generated key so I plan to implement that as well.
I'm looking forward to seeing your demo.
nomb
Hmm.. so it is b64 encoded.. niicceee. Hmmm. . I should try out C# soon.
Anyway, there is a suggestion, I'm not sure if you have the library for it. After my symmetric cipher program, I'm in thinking about a asymmetric-public-private key cipher, which people can exchange short messages in secret (e.g. via email, IM, SMS) without the need to exchange the key/password. It is relatively done now, I'll show you the web base version once it is done. It runs on the Java security class, which I'm not sure if C# has those library or not.
The idea is, Alice go to my page, generate a pair of keys. Alice then send Bob her pub key. Bob use pub key, go to my page, encrypt the message. Send it to Alice. Alice decrypt message at my page. No software to install, no secret key exchanged.
Yup c# has the ability to do that built into its cryptography namespace.
That is a cool idea, but instead of having Alice send the key to him. You should just make a db to keep track of the keys and then have him answer a question about Alice or something like that to use the pub key. that way thats even one less step they have to worry about. Or have Alice put in his email address and have your site auto email him the pub key. That would be good too.
But sweet idea, maybe I'll make my program talk to your site.
Have you tried mine yet?
nomb
I dont like the "answer a question" method, as in that case, you might as well use the answer as the password?
Anyway, the emailing the pub key is an idea
I'm not in my own PC yet, can't send it to my phone from this PC. Will try it out later tonight.
hanmin said:
I dont like the "answer a question" method, as in that case, you might as well use the answer as the password?
Click to expand...
Click to collapse
Ya I'm at work and was hungry so I wasn't thinking strait. I don't like that idea either. ^^
I think my next step in mine is to build the background worker class to update the progress bar when you encrypt/decrypt a file.
If you just point your phone to the cab above it will install it for you. You don't need a comp unless u don't have a dataplan.
nomb
I dont have data in my plan.. although O2 gives me 1MB+ a month free.. I'm not using it.
Anyway, I've tested your software, a few comments.
Slightly major problems:
[1] It is not wise to do a 'All folders' and 'All Files' upon browsing (for file to be de/encrypt). People (e.g. me) has gazillion files around and it may take ages to load the list.
[2] You may want to pop up a Window, asking the user to confirm his/her password upon encryption (one of the thing I intended to add on mine )
[3] I'm not able to paste any data onto the 'start text' area. E.g., I have encrypted my stuff, saved it into Notes. Later, I wanted to get it back, I copy the encrypted code from my Notes, and no way of pasting it into the 'Start text'
[4] You already knew this, but, good to have some kind of progress bar to indicate the progress
[5] Hmmm.. on the browsing, there doesn't seems to have a way to find files on my Storage Card's root directory
[6] For security reason, probably it is good for you to add a 'Clear Clipboard' button?
Minor:
[1] I find it annoying that once I had the software installed, it is on my Start menu
[2] You could use a better icon, I just see a black square on my not so bright screen. I can help you on this.
[3] Add an "Exit" on the menus below?
Other possible suggestions:
[1] Have a time out on your software, such that, e.g. if there is no activity on software after a certain amount of time, it will do one/some/all of these (a) close itself (b) clear the password, input, output (c) clear the clipboard
Good suggestions, I'll have those done by tomorrow. I can't play with the storage card aspect yet because I don't have one. :'( Soon though I'm hoping to get a 4gb. And ya, i can't make icons worth any.
Oh, to past it back I always did ctrl+v from the keyboard. But I'll throw a button up there to do that. And I'll make sure to take it off of the start menu.
1 good comment would have been nice. Altho criticism is good.
nomb
Haha.. sorry for the lack of good comments, I was trying to think of something to suggest. But come to think of it my post on top are good comments (e.g. niiiiccceee Base 64 encoded), and the fact that it has the simple string->string encryption.
I did googling a bit, and found these
http://www.entity.cc/ICONS/security-icons.php
http://www.hscripts.com/freeimages/icons/computer/lock-icon.php
http://icons.qarchive.org/
which you may want to use as your icons?
Ya I was just teasing you. The icon I have now I got off of your last link at somepoint I just don't remember when. But I think I will probably use one of the others. But ya, I'll work on those fixes and then attach the updated program. Then once I get those fixes done, I'll work on adding the differnt encryption algorithms and the encrypted backups.
nomb
Did you wrote any backup software before for the PPC? I'm not really sure, but it seems that backup-ing can have a lot of issues. You have the "Copy everything" backup, the PIM only backup, etc. Some backups are ROM-flashing/upgrading friendly, some are not. You can have a backup software all standalone by itself. I would recommend you to have the backup software seperated and have encryption onto it as a plugin. Take a look at PIM-backup, it is very popular here.
Hi,
This is a very interesting thread. Thanks for your efforts so far (is there a donation link anywhere?)
A basic question...I understood that to carry out really secure encryption it would be necessary to write a filter driver that worked within the core ROM Image. Is this not the case?
Can I encrypt the MS certificate store too? The crypto protection on this store could be beefed up...
Once again I am very pleased that this thread has appeared and will be testing your software with interest,
Well done for your work so far,
Sam.
Hey there PianoSam,
First I just want to make it clear I'm not doing this to make money. If anyone donates I want it to be because they like the software. I am at work so PayPal is blocked but I'll put my donation link on the front page later today.
Also, I am going to try and incorporate the encryption as much as possible. If that is a feature you'd like, then after I get all of the previously requested changes done, I'll start on that for you.
And thank you for your kind words.
nomb
***EDITED***
Sorry I didn't answer you question at first.
Question: A basic question...I understood that to carry out really secure encryption it would be necessary to write a filter driver that worked within the core ROM Image. Is this not the case?
Answer: I pondered over this for a little while and I can't think of a reason this would be necessary. However, I've only had my phone for two days. Can you find where you saw that so I can read it as well and maybe gather a little bit on information so I can do some research on the topic? If thats what needs to be done then thats what I'll do but I can't see why. Let me know!
Added another cab with all the fixes I've completed.
nombCrypt-beta.cab <-- On the front page.
I added the donate link.
I added the timeout feature and thought I would make a comment on it.
It is a two minute timeout. Whenever you fucos on a textbox the timer is stopped and when the textbox looses focus, the timer is on. The downside to this is if you were in the middle of typing and set your device down, it wont timeout. I could make it so when you start typing into the textbox it restarts the two minutes and you have two minutes to complete your message but I didn't know if that was a good idea or not.
Also, when you copy, and go to another program to paste it in, you have two minutes before the clipboard is cleared and the program shutdown.
When the encryption program is encrypting something, the timeout is not running. It starts afterwards.
I can tweak this as much as you guys would like, just let me know.
nomb
I've tested your Beta.. niiiiiccceeeeee.. it is gooood. Almost prefect. Few things (OH NO! )
- The "Clear" button doesn't seems to be working. It is suppose to clear the clipboard only? Should you clear off everything as well?
Other requests/suggestion
<rant>
- I'm not sure why I thought I need it.. but it would be good to have a copy function for the "End Text" as well. I thought I may need it one day. Not sure why. It ought to make the screen a bit crowded, I thought.
Anyway, slightly related to the suggestion above, I've just revisited the design I made on my copy-paste-failed PPC attempt, I have this idea which I thought you might want to use it. For my design, I do not have "Start Text" and "End Text", I only have ONE TextField "Message" (and another for the password). The user enter the encrypted/plain text on this "Message". Click on the button "Encrypt" or "Decrypt", the result will then overwrite whatever that is in "Message" TextField.
Example:
(1) "Message"=<plain text>. User key in password, click "Encrypt", "Message"=<encrypted text>.
(2) "Message"=<encrypted text>. User key in password, click "Dencrypt", "Message"=<plain text>.
In such cases, you only need a pair of copy-paste to perform copy-paste on both (in a way) encrypted and plain text.
</rant>
As for the time out issue, I thought the typing-sensitive time out would be a better choice. The moment that you are worried about your data being seen is when you are away from your phone. You can have focus on your TextField but you can be million miles away from your phone. But, you ought to be around to be typing stuff, right?
BTW, I'm also wondering on the working of this time out feature. I thought there ought to be a 'clock' running and when time's up, it will clear the stuff needed to be cleared, right? So, if I were to forget to switch off the application, the timer will not be another running software that drain my battery, right?
Good work.
hanmin said:
- The "Clear" button doesn't seems to be working. It is suppose to clear the clipboard only? Should you clear off everything as well?
Click to expand...
Click to collapse
The "clear" button is in the clipboard row, i think i tagged it on the left, and only clears the clipboard. If you go to menu->reset it will clear everything like your looking for.
hanmin said:
- I'm not sure why I thought I need it.. but it would be good to have a copy function for the "End Text" as well. I thought I may need it one day. Not sure why. It ought to make the screen a bit crowded, I thought.
Click to expand...
Click to collapse
The "Copy" button copies the end text to the clipboard. Not the start text.
hanmin said:
Anyway, slightly related to the suggestion above, I've just revisited the design I made on my copy-paste-failed PPC attempt, I have this idea which I thought you might want to use it. For my design, I do not have "Start Text" and "End Text", I only have ONE TextField "Message" (and another for the password). The user enter the encrypted/plain text on this "Message". Click on the button "Encrypt" or "Decrypt", the result will then overwrite whatever that is in "Message" TextField.
Click to expand...
Click to collapse
I originally had it setup this way, however there was a time when I had wrote a huge paragraph in it and encrypted it, and then found out I had forgot a line. I switched it so this wont happen.
hanmin said:
As for the time out issue, I thought the typing-sensitive time out would be a better choice. The moment that you are worried about your data being seen is when you are away from your phone. You can have focus on your TextField but you can be million miles away from your phone. But, you ought to be around to be typing stuff, right?
Click to expand...
Click to collapse
The timeout I have running in it now, (new version that isn't up yet), is completely off of the user's actions. Whenever you do anything in the program the timer resets. Except for encrypting/decrypting. The timer is off for those functions incase you encrypt a file that takes longer.
hanmin said:
BTW, I'm also wondering on the working of this time out feature. I thought there ought to be a 'clock' running and when time's up, it will clear the stuff needed to be cleared, right? So, if I were to forget to switch off the application, the timer will not be another running software that drain my battery, right?
Click to expand...
Click to collapse
The timeout feature does not clear everything in the program. I have it so it actually completely closes the program. So if you forget to close it and walk away, the program will end so it doesn't drain your battery.
hanmin said:
Good work.
Click to expand...
Click to collapse
Thanks, wait till you see the next version...
nomb
I got the progressbar working for encryption, now for decryption.

What do you want? (Developing Silverlight App)

It looks like the future of applications for Windows Mobile is leaning towards silverlight 2. So My goal for this summer is to create a good, fun or useful application using silver light. I just need some ideas. What do you guys want?
One app I've been looking for for years. Some apps have some functionality but nothing puts it together in a simple package.
Location Aware Reminders
set up points on a map where a reminder of user defined text would pop up when the device is within a specified distance from that point.
Case #1:
I get off of my freeway exit going home, pass the stoplight before the store, my device plays a recording "DUDE! PICK UP SOME MILK!".
Case #2:
I drive away from my house on a vacation, my device plays a recording "Did you remember to pack your underwear?"
User should be able to:
1. View a map with current location based on gps.
2. Move map to different locations.
3. Define and save a point on the map.
4. Define a distance from that point where reminder would fire.
5. Define the text of a reminder.
6. Define an audio file as a reminder.
7. Define a title for reminder
8. View list of reminders
9. When reminder fires there should be a Snooze and Delete Option.
10. Reminders should have a date/time window of when to fire.
10 ex. All Days, only between 4pm and 7pm.
10 ex. On May 25th. any time.
Yes, there are apps that "sort of" do this. But they are unuseable for this use.
Keeping the functionality simple and specific will ensure EASE OF USE and actual functionality.
I will GLADLY pay you $10 for this app.
sudermatt said:
One app I've been looking for for years. Some apps have some functionality but nothing puts it together in a simple package.
Location Aware Reminders
set up points on a map where a reminder of user defined text would pop up when the device is within a specified distance from that point.
Case #1:
I get off of my freeway exit going home, pass the stoplight before the store, my device plays a recording "DUDE! PICK UP SOME MILK!".
Case #2:
I drive away from my house on a vacation, my device plays a recording "Did you remember to pack your underwear?"
User should be able to:
1. View a map with current location based on gps.
2. Move map to different locations.
3. Define and save a point on the map.
4. Define a distance from that point where reminder would fire.
5. Define the text of a reminder.
6. Define an audio file as a reminder.
7. Define a title for reminder
8. View list of reminders
9. When reminder fires there should be a Snooze and Delete Option.
10. Reminders should have a date/time window of when to fire.
10 ex. All Days, only between 4pm and 7pm.
10 ex. On May 25th. any time.
Yes, there are apps that "sort of" do this. But they are unuseable for this use.
Keeping the functionality simple and specific will ensure EASE OF USE and actual functionality.
I will GLADLY pay you $10 for this app.
Click to expand...
Click to collapse
Would it use GPS or the GSM/3G Network to determine location? Also what navigation software would this use for the maps? This is a good idea however this seems very intermediate. More ideas people.
I'd like this...
http://forum.xda-developers.com/showthread.php?t=426089
I would hope it would use the internal GPS.
I like the voice mail thing Like the iPhones right?
It would be nice if my wife could easily make entries via a website or a client on her desktop. (maybe not).
Actually, it would be kinda interesting. Driving down the street and having the app pop up something my friend put in there.
So you could have a group, and allow people to post GPS Pop Ups to your app.
"This is where I proposed to my wife".
"Don't even bother coming to the game tonight sucka cuz you're goin' down".
That would be kinda fun.
Just thinking out loud.
sudermatt said:
It would be nice if my wife could easily make entries via a website or a client on her desktop. (maybe not).
Actually, it would be kinda interesting. Driving down the street and having the app pop up something my friend put in there.
So you could have a group, and allow people to post GPS Pop Ups to your app.
"This is where I proposed to my wife".
"Don't even bother coming to the game tonight sucka cuz you're goin' down".
That would be kinda fun.
Just thinking out loud.
Click to expand...
Click to collapse
This is a great Idea. Only problem it is not even close to easy and I have no gps experience. But i might assemble a team to create this.
An XDA-Developers forum program that tracks your threads and alerts you when there's a new post, etc. Something that would be cooler than the actual site, and if you could, make it for our phones too.
This is very easy to answer:
1) To the date there isn't a SINGLE mobile e-mail client on the market, which is SIMPLE and FINGER FRIENDLY. In fact, there isn't any finger friendly e-mail clients at all. I think hords of users would welcome this kind of app.
2) Also there still isn't an on-demand connection chooser - look here: http://forum.xda-developers.com/showthread.php?t=408243
Thank You.
sudermatt said:
One app I've been looking for for years. Some apps have some functionality but nothing puts it together in a simple package.
Location Aware Reminders
set up points on a map where a reminder of user defined text would pop up when the device is within a specified distance from that point.
Case #1:
I get off of my freeway exit going home, pass the stoplight before the store, my device plays a recording "DUDE! PICK UP SOME MILK!".
Case #2:
I drive away from my house on a vacation, my device plays a recording "Did you remember to pack your underwear?"
User should be able to:
1. View a map with current location based on gps.
2. Move map to different locations.
3. Define and save a point on the map.
4. Define a distance from that point where reminder would fire.
5. Define the text of a reminder.
6. Define an audio file as a reminder.
7. Define a title for reminder
8. View list of reminders
9. When reminder fires there should be a Snooze and Delete Option.
10. Reminders should have a date/time window of when to fire.
10 ex. All Days, only between 4pm and 7pm.
10 ex. On May 25th. any time.
Yes, there are apps that "sort of" do this. But they are unuseable for this use.
Keeping the functionality simple and specific will ensure EASE OF USE and actual functionality.
I will GLADLY pay you $10 for this app.
Click to expand...
Click to collapse
Wow. I had the exact same idea. I'll be making this in silverlight/xaml since I know it's the future of WinMo.
Me and a couple of friends are trying to do this on 3 different platforms - and will be using WPF/Silverlight for WinMo
Don't we kinda need the WM Silverlight runtime first? Last time I checked, it's not out yet.
G-Profile??
aiiro said:
This is very easy to answer:
1) To the date there isn't a SINGLE mobile e-mail client on the market, which is SIMPLE and FINGER FRIENDLY. In fact, there isn't any finger friendly e-mail clients at all. I think hords of users would welcome this kind of app.
2) Also there still isn't an on-demand connection chooser - look here: http://forum.xda-developers.com/showthread.php?t=408243
Thank You.
Click to expand...
Click to collapse
For #2, I might be completely misunderstanding you, but have you looked into G-Profile for this?
TheParadox said:
I like the voice mail thing Like the iPhones right?
Click to expand...
Click to collapse
Yep. Pretty much
@ Sean D:
About #2. You remember back in the dial-up days when You started Internet Explorer it had an option whether to ask the connection to use or not? Well, I think for PPC and the apps that need internet connection this would be the ideal solution - if You start PIE for example, the system will ask You whether You'd like to use WiFi or GPRS or whatever else connections You have and You'd just check the option that suites You the most at the given location. If You're in a cafe with free WiFi You'd choose to use WiFi, if You're in the woods You'd choose GPRS (or 3G or whatever similar). Instead of manually connecting to desired network before launching browser. I hope You get the idea...
G-profile is not asking You how to connect, it just manages Your connections with profiles for different occasions. You'd still have to manually choose a profile with the desired connections before launching a browser.
Ha!
aiiro said:
@ Sean D:
About #2. You remember back in the dial-up days when You started Internet Explorer it had an option whether to ask the connection to use or not? Well, I think for PPC and the apps that need internet connection this would be the ideal solution - if You start PIE for example, the system will ask You whether You'd like to use WiFi or GPRS or whatever else connections You have and You'd just check the option that suites You the most at the given location. If You're in a cafe with free WiFi You'd choose to use WiFi, if You're in the woods You'd choose GPRS (or 3G or whatever similar). Instead of manually connecting to desired network before launching browser. I hope You get the idea...
G-profile is not asking You how to connect, it just manages Your connections with profiles for different occasions. You'd still have to manually choose a profile with the desired connections before launching a browser.
Click to expand...
Click to collapse
Okay, I misunderstood you. But the funny thing is, i was just thinking that WM needs this function the other day.
So yeah, this gets my vote too.
Good, then it's settled
Well, OK, just one minor issue left - kinda have to wait for the approval from the thread starter too
FloatingFatMan said:
Don't we kinda need the WM Silverlight runtime first? Last time I checked, it's not out yet.
Click to expand...
Click to collapse
The whole point of this thread is that since it's pretty much confirmed there will be a silverlight or some type of WPF subset for WinMo, applications can be designed so that when devices do release, some changes can be made (e.g. support for accelerometer) so that the program can be released from the get-go.
It's also to provide devs with some practice with WPF/Silverlight
ND4SPD said:
Wow. I had the exact same idea. I'll be making this in silverlight/xaml since I know it's the future of WinMo.
Me and a couple of friends are trying to do this on 3 different platforms - and will be using WPF/Silverlight for WinMo
Click to expand...
Click to collapse
I could care less about how it's written....I got $10 burnin a whole in my pocket for this app...
BTW...did you read my post about the community part of the app?
OK, seems it's again just one of those countless threads that get started with a big hooray and then is forgotten forever. I mean I still do post in these in hope that someone will some day build the connection manager I keep asking for, but having posted it already to couple of threads and seeing that after couple of days the thread just dies and the original author of thread mysteriously disappears, I think there are some dark forces behind it. OK, just kidding, but seriously, just from top of my head You can check this thread - http://forum.xda-developers.com/showthread.php?t=413600 - or this thread - http://forum.xda-developers.com/showthread.php?t=506672. They have all died as far as I know. Or if You just wanna have a laugh (completely off-topic) check this thread - http://forum.xda-developers.com/showthread.php?t=425424

[Q] How to trigger Google now? How to turn off beep?

I have avoided Google now for the previous two iterations of phone... but I'm giving it a shot on the S4!
There are two outstanding Google Now questions that I can't seem to find a clear answer to by Googling (there's a joke in there somewhere).
1) How do I actually trigger Google now? I've tried saying Google, that doesn't work. The best I've been able to do is map the double home button to launch voice input, but that's s poor solution. If I have to use button presses to trigger it, then I may as well just do whatever I was trying to do in the first place with my fingers. IE, it's no time time savings to double press the home button and then say a command, vs just clicking on the app icon I'm trying to launch (probably a time penalty in fact).
What am I missing? Why isn't my Google Now listening to me in the background? Am I just using the wrong trigger word?
2) The beep that follows voice recognition is incredibly loud, substantially louder than the speech response that Google feeds back. How do I disable the beep entirely? It's redundant and disruptive. The best solution online seems to be to mute notifications in general. That's a non starter.
You trigger it by starting the Google app and following the instructions. It's the google app, not the google+ app or the google settings app.
After that it just kind of runs. starts out slow at first but more cards appear over time, but you can pull it up anytime by running the google app.
acruxksa said:
You trigger it by starting the Google app and following the instructions. It's the google app, not the google+ app or the google settings app.
After that it just kind of runs. starts out slow at first but more cards appear over time, but you can pull it up anytime by running the google app.
Click to expand...
Click to collapse
Yes.... I realize how to run the app.... and how to follow its instructions
How do I trigger it, that's my question/query/frustration. As mentioned, it works fine if I double-tap the home button to launch the Google Now app manually. It also works fine if I go into my apps and find the Google Now icon, and then launch it that way, or if I use a shortcut, widget, etc to open up the app.
What I can't figure out, is how to actually trigger it during regular use. Short of going in and manually launching Google Now, I can't get it to trigger - I can't get it to listen to me. I've tried saying "Google", "Android, "Ok Android", "Ok Google", etc, and almost every other ridiculous phrase I can think of. Nothing triggers it short of manually launching the app by hand.
Once I set it up, it comes up every time I tap on the google search bar. However, normally I don't mess with it, it just automatically sends me notification cards when it thinks I need them.
For instance right now it's showing me a notification card for the last Sharks Kings game, my upcoming flight and several cards for things I've researched a lot lately like the S4, Voodoo Sound, Vsonic GR02 headphones, Fiio E07K etc. Also has my stocks and the local weather. I didn't "do" anything to get the cards, they just appear in my notification bar or whenever I tap the search bar.
acruxksa said:
Once I set it up, it comes up every time I tap on the google search bar. However, normally I don't mess with it, it just automatically sends me notification cards when it thinks I need them.
Click to expand...
Click to collapse
That's fine - once setup, it comes up every time I tap the Google search bar too. That's not my issue.
My problem is that I cannot get it to trigger by my voice. Unless I manually launch the app first each and every time I want it to do something, it does not respond to my voice. It responds to my voice just fine if I manually I launch the app first, but that's the only time I can get it to work. At all other times, I may as well be speaking to my shoe
Hold menu button for couple seconds.
Easy answer. You can't you have to launch it first.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
ripper4209 said:
Easy answer. You can't you have to launch it first.
Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Click to expand...
Click to collapse
That can't be...? What use would a hands-free system be if you have to use your hands and navigate into an app before it will take hands-free voice commands?
Isn't the whole deal with this voice stuff that you can just talk to it?
In my experience, the hotword detection only works after you've manually triggered the app. It only relieves you from physically tapping the microphone icon.
Sent from my SAMSUNG-SGH-I337 using xda premium
get a bt headset and activate it that way..It can't be 100% hands free; it would have to be on all the time, and then you would complain about how much battery it was eating...
On my Google Now, saying "Google" does work. As long as the actual App has already been activated and is standing by that is.
On my "S Voice", saying, "Hi Galaxy" works, but it is customizable for other triggering phrases.
You are correct about Google Now only responding the first time though. If you want it to voice activate again you have to use the back key to get back to the original screen or completely re-launch it. It just seems that is the way it is.
Wow - this is significantly less impressive than I had envisioned. I was under the mistaken impression that Google Now (and Siri on the iPhone) just responded to their trigger words whenever uttered.
This strikes me as somewhat limited in usefulness until they get these apps to listen constantly. If I need to know the weather, why use my hands to launch Google Now, then ask for the weather, and then wait for it, if I could instead just use my hands to launch my weather app directly?
I must be missing all the excitement - or maybe Siri / Google Now are meant for people who can't figure out their phones?
On the issue of that annoying confirmation sound, I'm halfway there. The APK is in data/apps, and it's called "com.google.android.googlequicksearchbox-1.apk". Inside that apk there is a folder called "res", and inside that there's another folder called "raw". In that folder you'll find the WAV files for each sound.
Unfortunately, that's where my efforts die. I can't seem to open the wav files on a PC (even in audio editing software). I can't just delete them either, or Google Now crashes. I similarly can't just replace them with less annoying wav files from my PC - that crashes Google Now also. I'll see what I can do about finding a way to just upon them for the purpose of lowering their volume (or blanking them) and report back with my results (if any).
rhd-android said:
Wow - this is significantly less impressive than I had envisioned. I was under the mistaken impression that Google Now (and Siri on the iPhone) just responded to their trigger words whenever uttered.
This strikes me as somewhat limited in usefulness until they get these apps to listen constantly. If I need to know the weather, why use my hands to launch Google Now, then ask for the weather, and then wait for it, if I could instead just use my hands to launch my weather app directly?
I must be missing all the excitement - or maybe Siri / Google Now are meant for people who can't figure out their phones?
On the issue of that annoying confirmation sound, I'm halfway there. The APK is in data/apps, and it's called "com.google.android.googlequicksearchbox-1.apk". Inside that apk there is a folder called "res", and inside that there's another folder called "raw". In that folder you'll find the WAV files for each sound.
Unfortunately, that's where my efforts die. I can't seem to open the wav files on a PC (even in audio editing software). I can't just delete them either, or Google Now crashes. I similarly can't just replace them with less annoying wav files from my PC - that crashes Google Now also. I'll see what I can do about finding a way to just upon them for the purpose of lowering their volume (or blanking them) and report back with my results (if any).
Click to expand...
Click to collapse
Don't you think some people DON'T want it on all the time? It could mistakenly trigger it and possibly do an unwanted action. It is fine in it's current implementation. I would think in the future as voice recognition and battery technology improves we might see an always on Google now or siri but right now it would/could cause more problems than create convenience.
Sent from my GT-N7100
A new version of Chrome (for desktop) is coming out that supposedly will do this, but it's just not feasible on a mobile device. At least not yet. Do you really want your phone's mic on 24/7 feeding audio to the processor, constantly running voice recognition on every sound it hears? Imagine how horrible the battery life would be. Not to mention the privacy concerns of that (and legal issues, I can see something like this breaking wiretap laws in several states).
Even Google Glass requires you to either touch it or activate it through a head motion so it starts listening. The same with Siri on iOS. The point is you only have to do one thing to start issuing a variety of commands. You can do it without looking at the phone.
rhd-android said:
Wow - this is significantly less impressive than I had envisioned. I was under the mistaken impression that Google Now (and Siri on the iPhone) just responded to their trigger words whenever uttered.
This strikes me as somewhat limited in usefulness until they get these apps to listen constantly. If I need to know the weather, why use my hands to launch Google Now, then ask for the weather, and then wait for it, if I could instead just use my hands to launch my weather app directly?
Click to expand...
Click to collapse
As mentioned, think logically about what you are asking for. If your phone's microphone was always on, listening to and parsing every single noise it hears 24/7 to detect the word Google, think about what the battery implications. Every sound it hears it must analyze, all day long. Then, consider any time it thinks it hears Google, it will immediately turn on and listen for more input and then try to respond to that. It's just not feasible to expect this without killing your battery and also dealing with the many false positives that might constantly be making your phone do stuff you didn't intend.
Having said that, you are missing the key part of Google Now which sort of addresses your issues with it. Google Now doesn't listen 24/7 for you to speak to it, it analyzes data such as your search history, location, Google now settings, gmail, calendar, and so on, to proactively give you information before you even ask for it. That's the appeal and the main idea of Now. You still get the searching, the voice commands, etc, but you also get an "assistant" that doesn't need you to constantly tell it what you want. (In theory of course)
jsmith8858 said:
As mentioned, think logically about what you are asking for. If your phone's microphone was always on, listening to and parsing every single noise it hears 24/7 to detect the word Google, think about what the battery implications. Every sound it hears it must analyze, all day long. Then, consider any time it thinks it hears Google, it will immediately turn on and listen for more input and then try to respond to that. It's just not feasible to expect this without killing your battery and also dealing with the many false positives that might constantly be making your phone do stuff you didn't intend.
Click to expand...
Click to collapse
Yep - and that's where I thought the tech was at. I thought we had overcome these problems. I thought we were able to accomplish the above.
I played with it a bunch yesterday, and there was nothing that I could do faster with voice (given that I had to use hands to trigger the app first) than I could do with just hands alone. I tested a lot of common tasks, and launching the app + giving a voice command and waiting for the response action was always slower (not even factoring in voice errors - that's assuming 100% accuracy).
The ability to constantly listen is fundamental to voice commands being useful on a smartphone (in my mind). I just jumped the gun and thought we were there already (adverts certainly make it seem like we are). Until we hit that point, until we have a system that is responsive like KIT, or HAL, or LCARS, I think voice commands are impractical. It needs constant listening. Interestingly, it looks like the industry agrees:
http://www.technologyreview.com/new...d-respond-to-your-voice-even-when-its-asleep/
http://www.techradar.com/news/compu...mm-processor-will-always-be-listening-1132647
^ that tech largely addresses jsmith8858's concerns.
rhd-android said:
Yep - and that's where I thought the tech was at. I thought we had overcome these problems. I thought we were able to accomplish the above.
I played with it a bunch yesterday, and there was nothing that I could do faster with voice (given that I had to use hands to trigger the app first) than I could do with just hands alone. I tested a lot of common tasks, and launching the app + giving a voice command and waiting for the response action was always slower (not even factoring in voice errors - that's assuming 100% accuracy).
The ability to constantly listen is fundamental to voice commands being useful on a smartphone (in my mind). I just jumped the gun and thought we were there already (adverts certainly make it seem like we are). Until we hit that point, until we have a system that is responsive like KIT, or HAL, or LCARS, I think voice commands are impractical. It needs constant listening. Interestingly, it looks like the industry agrees:
http://www.technologyreview.com/new...d-respond-to-your-voice-even-when-its-asleep/
http://www.techradar.com/news/compu...mm-processor-will-always-be-listening-1132647
^ that tech largely addresses jsmith8858's concerns.
Click to expand...
Click to collapse
It's not there yet. It is still very handy when you're multitasking and the best example is driving. Sure I would love to not have to tap my phone a couple if times, but it is still worlds better than losing focus taking my phone out if dock, making those couple taps and typing out my message or commands. Not to mention keeping a CPU and microphone running at all times keeping your phone awake at the same time and it is just not viable. I don't think apple could pull it off either as it would just keep iOS running and running when the phone is not in use. Then there's the privacy factor. I don't think this will be viable for at least another couple of years.
Sent from my GT-N7100
Siri also doesn't respond by keyword launch. S-voice seems like the only one that does and it's definitely less than stellar. As jsmith8858 said above, it's a proactive assistant. Google Now is there for you to give you information it believes you might need before you ask for it. I.e. If i google a place on google maps on my desktop, When i look at google now on my phone a moment later, it has the pop up of directions and estimated time (that i can bring up in maps or navigation by tapping) of where it was when I just searched.
There are third party apps you can use with custom roms that you can bind double-tap home button to initiate voice search, or you can add voice search as a shortcut on your lock screen as well.
I was watching TV and someone on TV said Google, and it triggered the app so I'm pretty sure that there is a way to do it without using your hands, especially because of how many times they said there was a way during one of those recent Key notes regarding it
KILLplay said:
I was watching TV and someone on TV said Google, and it triggered the app so I'm pretty sure that there is a way to do it without using your hands, especially because of how many times they said there was a way during one of those recent Key notes regarding it
Click to expand...
Click to collapse
As far as I know, the only phone that triggers Google now by saying "Ok Google now" is the new moto X, but it has a processor dedicated to ear what you are saying.
I don't know if this ability cam be ported to our s4 and what will be the price to pay about battery consumption.
Enviado desde mi SGH-I337 usando Tapatalk 2

Loading images efficiently using threads

Hello,
In a component of my application I have an image followed by 4 button choices. When the user presses a button, the other buttons should be disabled and after a 500 ms pause it should inform the user if the choice was correct using a visual cue (such as "want to be a millionaire" where the button blinks with a background color). Afterwards the next image is loaded and proceeds as before.
Thus far I managed to get it working but I feel this approach is partially wrong. As per documentation I'm using an AsyncTask, loading the image in the background and updating the imageView from there. The buttons are disabled from onClick, and using a Handler with a Runnable, I schedule it to run in 500 ms (I also maintain an extra reference to the correct choice with a member Button variable). This only half works as expected because I want another 500 ms of delay when the choice is revealed as correct/incorrect.
What I really want:
1) After the user presses a button, disable the rest
2) Immediately start loading the next image in the background
3) Wait 500 ms to reveal if the choice was correct/incorrect
4) Highlight the correct choice for 500 ms
5) If the image was loaded, display it and continue
Something like this. Instead, what I now do is starting to load the image after the user is informed of his/her choice. Any advice on how I can improve this?
Hi,
Do you have the images locally or you are downloading them from the web? If you have to download images I recommend you a library called "Universal Image Loader for Android"
jdroidsoft said:
Hi,
Do you have the images locally or you are downloading them from the web? If you have to download images I recommend you a library called "Universal Image Loader for Android"
Click to expand...
Click to collapse
I have the images locally in my assets folder.
mmark1 said:
Hello,
In a component of my application I have an image followed by 4 button choices. When the user presses a button, the other buttons should be disabled and after a 500 ms pause it should inform the user if the choice was correct using a visual cue (such as "want to be a millionaire" where the button blinks with a background color). Afterwards the next image is loaded and proceeds as before.
Thus far I managed to get it working but I feel this approach is partially wrong. As per documentation I'm using an AsyncTask, loading the image in the background and updating the imageView from there. The buttons are disabled from onClick, and using a Handler with a Runnable, I schedule it to run in 500 ms (I also maintain an extra reference to the correct choice with a member Button variable). This only half works as expected because I want another 500 ms of delay when the choice is revealed as correct/incorrect.
What I really want:
1) After the user presses a button, disable the rest
2) Immediately start loading the next image in the background
3) Wait 500 ms to reveal if the choice was correct/incorrect
4) Highlight the correct choice for 500 ms
5) If the image was loaded, display it and continue
Something like this. Instead, what I now do is starting to load the image after the user is informed of his/her choice. Any advice on how I can improve this?
Click to expand...
Click to collapse
Correct me if I'm wrong but you outlined what you want to do ? what part do you have a problem with ? and is this homework by any chance ?
deanwray said:
Correct me if I'm wrong but you outlined what you want to do ? what part do you have a problem with ? and is this homework by any chance ?
Click to expand...
Click to collapse
Yes I did but I'm looking on advice on how to accomplish this
Of course it's not homework.
mmark1 said:
Yes I did but I'm looking on advice on how to accomplish this
Of course it's not homework.
Click to expand...
Click to collapse
well I mean what part of what you said you want to do are you having a problem with, cause you outline what you need to do...
and from what you have done, sounds like there is nothing that you're missing ?
Luckily, loading images from the assets directory will only take a couple of milliseconds tops so having your app start loading the image after the user makes a choice will guarantee that the image will be loaded with no jank.

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.

Categories

Resources