copy text to clipboard?

2,479 views
Skip to first unread message
Assigned to taifu...@gmail.com by me

_mR

unread,
Jun 30, 2014, 8:15:57 AM6/30/14
to mitappinv...@googlegroups.com
is there a way to a function to copy textbox or similar to clipboard so it can be pasted?

thanks

Scott Ferguson

unread,
Jun 30, 2014, 8:56:53 AM6/30/14
to mitappinv...@googlegroups.com
See > this< article. I think that feature is built into Android so should not be an App Inventor-specific issue requiring programming.
---
Scott

Taifun

unread,
Jun 30, 2014, 9:16:31 AM6/30/14
to mitappinv...@googlegroups.com
use the Sharing component and the "Copy to Clipboard" action
Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         



_mR

unread,
Jul 1, 2014, 1:27:05 AM7/1/14
to mitappinv...@googlegroups.com
scott what exactly in that link is helping me with my question?

_mR

unread,
Jul 1, 2014, 1:27:21 AM7/1/14
to mitappinv...@googlegroups.com
hello, can you explain a little more?

_mR

unread,
Jul 1, 2014, 1:29:04 AM7/1/14
to mitappinv...@googlegroups.com
i need a FUNCTION to copy the text, not and add on app or something outside of the app.  

i.e  a button press will copy the textbox text, or some other type of trigger.


Enis

unread,
Jul 1, 2014, 1:31:03 AM7/1/14
to mitappinv...@googlegroups.com
That function is generally NOT available in App Inventor, except with the Sharing Component as Taifun said above.  Add one to your project and use that to do the copying and pasting.

Stephen Zipprich

unread,
Jul 1, 2014, 1:48:57 AM7/1/14
to mitappinv...@googlegroups.com
If you're looking to be able to use copy/paste functionality outside of your app, it's probably not possible except as you've been shown above.

However, if you're just wanting to have a user be able to copy paste from one text box to another in your app, you could simulate the clipboard.  The following picture was taken from http://developer.android.com/guide/topics/text/copy-paste.html

What functionality does App Inventor have that stores a description (tag) for data and the data under that description (tag)?

_mR

unread,
Jul 1, 2014, 9:04:22 AM7/1/14
to mitappinv...@googlegroups.com
as i said , in the app. just copy the text box so it can be pasted by user

_mR

unread,
Jul 1, 2014, 9:06:29 AM7/1/14
to mitappinv...@googlegroups.com
sharing component? 

Taifun

unread,
Jul 1, 2014, 9:17:05 AM7/1/14
to mitappinv...@googlegroups.com
you can find the Sharing component in the Social drawer

madhu manu

unread,
Jul 1, 2014, 10:32:07 AM7/1/14
to mitappinv...@googlegroups.com
user can longpress the text in the textbox..... then a top bar appears where copy option is there.... try it

Stephen Zipprich

unread,
Jul 1, 2014, 1:43:36 PM7/1/14
to mitappinv...@googlegroups.com
I was referring to TinyDB. You could simulate the clipboard using it.

Stephen Zipprich

unread,
Jul 1, 2014, 3:19:05 PM7/1/14
to mitappinv...@googlegroups.com
Simulated clipboard using TinyDB:


Scott Ferguson

unread,
Jul 1, 2014, 3:25:18 PM7/1/14
to mitappinv...@googlegroups.com
It describes how to do copy and paste on an Android device. If you need something else, then follow Taifun's suggestion.
---
Scott

Scott Ferguson

unread,
Jul 1, 2014, 3:27:26 PM7/1/14
to mitappinv...@googlegroups.com
Thanks, madu manu -- great suggestion! I did not know the procedure.
---
Scott
Message has been deleted

_mR

unread,
Jul 2, 2014, 3:43:32 AM7/2/14
to mitappinv...@googlegroups.com
how would that work if its not copied to the clipboard? to paste

madhu manu

unread,
Jul 2, 2014, 4:46:30 AM7/2/14
to mitappinv...@googlegroups.com
dude chill.... ;)   without copying anything you cannot paste anything.... but you can do something like this.... textbox1.text=textbox2.text.. then textbox2 will show textbox1 text :)

_mR

unread,
Jul 4, 2014, 12:03:06 PM7/4/14
to mitappinv...@googlegroups.com
AGAIN... that is not coping to the clipboard is it. 

Taifun

unread,
Jul 4, 2014, 12:07:06 PM7/4/14
to mitappinv...@googlegroups.com
in this thread you can find solutions to copy something to the clipboard
1. use the Sharing component and the "Copy to Clipboard" action
2. user can longpress the text in the textbox..... then a top bar appears where copy option is there
Taifun

Stephen Zipprich

unread,
Jul 4, 2014, 4:24:05 PM7/4/14
to mitappinv...@googlegroups.com
On Friday, July 4, 2014 9:03:06 AM UTC-7, _mR wrote:
AGAIN... that is not coping to the clipboard is it. 

Not really sure who you're directing your statement to...if you're talking about my simulation of the clipboard via TinyDB, then no, it's not actually copying to the clipboard; it would only work inside your app.  As Taifun says, there are two ways to copy to the clipboard shown for you in this thread.

_mR

unread,
Jul 5, 2014, 5:11:47 AM7/5/14
to mitappinv...@googlegroups.com
ok its still not clear to the people here 

I KNOW how to manually copy and paste on Android  just like 99% of people do. so please...

AGAIN i am looking for a way to COPY to clip board by an app button press. ONE press, not sharing not opening other things not using the OEM copy and paste method, 

i need a simple way to move app text to a web-viewer window with as limited actions as possible.

Taifun

unread,
Jul 5, 2014, 10:13:30 AM7/5/14
to mitappinv...@googlegroups.com
AGAIN i am looking for a way to COPY to clip board by an app button press.
unfortunately not possible
Taifun

Enis

unread,
Jul 5, 2014, 10:30:15 AM7/5/14
to
to _mR:

You have already been warned once by one of the moderators, and have even had a message deleted.

Please tone down your posts to us.  Most of us are volunteer support people.  We don't owe you anything, nor are we your peers (I'm sure all of us could program rings around you).  Don't make demands. 

If you're unhappy with the services that this forum offers, don't use it.  If you think you can do better than the current version of AI, feel free to use the open source to create your own fixes.  You can find the source code here: http://appinventor.mit.edu/appinventor-sources/

Either treat people, ALL people up here with respect, or just do not post on this forum.  If you can't abide by simple common etiquette here, we can rectify that too.
Message has been deleted

Taifun

unread,
Sep 22, 2014, 3:18:48 PM9/22/14
to mitappinv...@googlegroups.com
I now found a solution to this problem here
see External apps - Google Drive - Copy text to general clipboard

see also screenshot
the complete activity class is com.google.android.apps.docs.app.SendTextToClipboardActivity



Taifun

_mR

unread,
Oct 2, 2014, 4:25:59 AM10/2/14
to mitappinv...@googlegroups.com
hello, can you explain how to use this?

Taifun

unread,
Oct 2, 2014, 9:15:17 AM10/2/14
to mitappinv...@googlegroups.com
it seems to be, you do not have much experience with the Activity Starter?
see some examples using the Activity Starter here http://puravidaapps.com/snippets.php#2activity
hope this helps
Taifun

Taifun

unread,
Oct 2, 2014, 10:59:55 AM10/2/14
to mitappinv...@googlegroups.com
meanwhile I prepared a snippet, which is available here
Taifun

Pragya

unread,
Oct 7, 2014, 2:20:25 AM10/7/14
to mitappinv...@googlegroups.com
I am building an application that programmatically copies and paste data from global clipboard in android. I have read the following doc for this:

It describes three different types of data. Now, I have done with the first two types i.e plain text and Uri data but still not getting the purpose or implementation of intent data with clipboard.

Does anyone knows how to use intent for creating application shortcut that will be placed in clipboard as per the document.

Alexander Eichhorst

unread,
Nov 16, 2014, 12:27:21 PM11/16/14
to mitappinv...@googlegroups.com
Wow!
Taifuns answer is the best solution.
Problem solved before it arised.

Good forum here.
Reply all
Reply to author
Forward
0 new messages