Copy on Android

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

Copy on Android

Post by arkstar » Sun Feb 23, 2014 2:54 pm

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
Rob Glassman
ArkStar

ChrisMukrow
Posts: 73
Joined: Mon Nov 12, 2012 4:13 pm

Re: Copy on Android

Post by ChrisMukrow » Sun Feb 23, 2014 8:30 pm

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

arkstar
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 70
Joined: Mon Dec 21, 2009 1:51 am

Re: Copy on Android

Post by arkstar » Sun Feb 23, 2014 11:08 pm

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!
Rob Glassman
ArkStar

Post Reply