Page 1 of 1

Copy on Android

Posted: Sun Feb 23, 2014 2:54 pm
by arkstar
Good morning all,
I've written an app forAndroid that will translate from English to Spanish. I've set up Google Translate so that right now, if you type an english phrase into the text field and press the translate button, it returns the translation just fine. I do want the phrase to be spoken. Google TTS I believe only supports english. I have discovered an app called "Easy Text to Speech" that runs in the background. Anything put onto the clipboard gets spoken, so I want to copy the text to the clipboard.

I am able to have the translate button copy the contents of the text box to the clipboard after Google returns the translation.... on the desktop. On the Android, it does not do the copy. Besides the speech app, I also tested to see if there was anything in the clipboard, (which would mean that it's the speech app, but there is nothing in the clipboard.) I know it's a long way to ask if anyone knows how to accomplish a copy function on the Android. (By the way, I did forget to mention that I can select the text on both platforms)

One more note, I have copied text from a browser on the Android device and "Easy Text to Speech" does indeed read it aloud almost immediately. (Pretty well I might add) BTW, it's a free app.

Thanks for taking the time to read this, and if anyone has an answer, I offer early thanks now!

Best,
Rob

Re: Copy on Android

Posted: Sun Feb 23, 2014 8:30 pm
by ChrisMukrow
Are you already using the native text input control? If not maybe that's an option. Don't know if it will work on Android... Hopefully this will help.

http://lessons.runrev.com/s/lessons/m/4 ... y-keyboard
http://forums.runrev.com/phpBB2/viewtop ... =49&t=8817 <-- Copy function in code, answer from Dixie
http://forums.runrev.com/phpBB2/viewtop ... 49&t=12532

Re: Copy on Android

Posted: Sun Feb 23, 2014 11:08 pm
by arkstar
Thanks, I am using the native control. Dixie's stack is good, but it doesn't copy it into the clipboard. I'm going to play with the other post.
I do appreciate the suggestions!