Skip to first unread message
Assigned to taifu...@gmail.com by steve....@gmail.com

Howard Pang

unread,
Dec 11, 2014, 3:24:31 AM12/11/14
to mitappinv...@googlegroups.com
Hi, I am trying to copy some text to the clipboard by pressing a button.  I have found the following method on the forum: https://puravidaapps.com/snippets.php#2clipboard   But this doesn't work for me.  When I clicked on the button to try to copy text to the clipboard, I got the message "Error 601  No corresponding activity was found."  This confused me a bit because I have downloaded the .aia file and installed the app on my phone, but it doesn't work.  Help or advice is much appreciated.

Taifun

unread,
Dec 11, 2014, 8:47:16 AM12/11/14
to mitappinv...@googlegroups.com
which Android device / Android version do you use for your tests?
did you try another device?
Taifun

Howard Pang

unread,
Dec 11, 2014, 9:09:39 AM12/11/14
to mitappinv...@googlegroups.com

I got the same result on two android devices:  1) my phone...Star N9600 MTK6589T (Android 4.2.1)
                                                                    2) my tablet...Acer A210 (Android 4.1.1)

Taifun

unread,
Dec 11, 2014, 11:42:14 AM12/11/14
to mitappinv...@googlegroups.com
yes, it seems to be, that this solution does not work for all Android versions
you found out, it does not work on Jellybean
I just tested on HTC Desire S running Android 2.3.5 (Gingerbread) and it also did not work.

it works on the following Android versions though:
  • Samsung Galaxy Tab 10.1N running Android 3.2 (Honeycomb)
  • Nexus 5 running Android 5.0 (Lollipop) and I think, it also worked on Android 4.4.4 (Kitkat)

I will add a note on my webpage. Thank you.
Taifun

Howard Pang

unread,
Dec 11, 2014, 12:09:01 PM12/11/14
to mitappinv...@googlegroups.com
Thanks for the info.  I hope that there is another way to do this (copy text to clipboard by pressing a button)   :)

Enis

unread,
Dec 11, 2014, 12:12:39 PM12/11/14
to mitappinv...@googlegroups.com
You do know that a long click will bring up the copy menu, right?

Howard Pang

unread,
Dec 11, 2014, 12:21:13 PM12/11/14
to mitappinv...@googlegroups.com
Yes I know that will work in some apps (like Amazon Kindle), but unfortunately it does not work on the App that I made with AppInventor 2.

Taifun

unread,
Dec 11, 2014, 12:22:55 PM12/11/14
to mitappinv...@googlegroups.com
I hope that there is another way to do this (copy text to clipboard by pressing a button)   :)

Howard Pang

unread,
Dec 11, 2014, 12:41:45 PM12/11/14
to mitappinv...@googlegroups.com
Hi Taifun,

I read in your post about '1. use the Sharing component and the "Copy to Clipboard" action'.  Do you mind explaining a little bit more?  I have added a Sharing component to my App but I do not know how to invoke the "Copy to Clipboard" action.  (Please excuse my English because it is a second language :)  )

Taifun

unread,
Dec 11, 2014, 1:52:20 PM12/11/14
to
you just call the Sharing component

then in the "Share with" window select "Copy to Clipboard" from the list of apps
Taifun

Howard Pang

unread,
Dec 11, 2014, 1:57:39 PM12/11/14
to mitappinv...@googlegroups.com
Thanks for the explanation!

Taifun

unread,
Dec 11, 2014, 3:26:57 PM12/11/14
to mitappinv...@googlegroups.com
according to this stackoverflow answer http://stackoverflow.com/a/25007574/1545993 the Google Docs app must be installed on the device for this solution to work
I now updated my snippet accordingly 
Reply all
Reply to author
Forward
0 new messages