ClipboardManager is an Android service that is responsible for system-wide clipboard management.
Questions tagged [clipboardmanager]
126 questions
0
votes
2 answers
Copy/Paste option from TextView to EditText in android
In my android app I want to give simple copy paste option.
User can copy text from text view by long clicking on it and I am successfully complete it, But not getting how can paste it to a edit text.
I am trying long press on a edit text but paste…

Guess
- 238
- 1
- 2
- 13
0
votes
1 answer
Copy text and font to clipboard
I'm working on a font App in which I've incorporated over 150 .ttf fonts into. You're able to select a font, type out a message in an editText and then apply the font to another editText.
Once the text has been placed in the second editText and…

Zachary Wathen
- 97
- 1
- 2
- 11
0
votes
2 answers
Copy/paste implementation in file manager using ClipBoardManager android
I am looking for an effective and efficient approach to implement Copy paste functionality. How is this achievable using ClipBoardManager Class. Everywhere it is shown how to copy text suing clip data. I want to copy a file or maybe a folder. Thanks…

puneet dubey mudia
- 115
- 12
0
votes
1 answer
Concat a string to clipboard in android
What i want is when user copies data from my application a string get added with the copied data.Or there is another way to do that.
I tried this:
ClipboardManager.OnPrimaryClipChangedListener mPrimaryChangeListener = new…

Puneet Kushwah
- 1,495
- 2
- 17
- 35
0
votes
1 answer
How to get image from clipboard copied in build-in android web browser
I need to retrieve image copied from webside in native, built-in android web browser. I am wondering what kind of mechanism is used for CopyPaste operations in built-in applications, because it is not "standard" clipboard. Eg. After copying image in…

Antoniossss
- 31,590
- 6
- 57
- 99
0
votes
0 answers
Handling Cursor Through Voice in Android
I am new in android and trying to Access particular line through Voice Recognition. I am developing an Editor and now going to implement cut,copy and paste using Voice commands. Now actually what problem i am facing is that want to go particular…

Avinash
- 497
- 1
- 6
- 19
0
votes
1 answer
Clipboard Manager Activity Not Working in Android
I have simple Clipboard Manager Activity Which Copy And Paste The Data From on EditText To next EditText box but The Activity Not Starting
My MainActivity is As Follows:
package com.example.clipboarddemo;
import…
user3391083
0
votes
1 answer
How do I use the Android clipboard from F# in Xamarin?
I'm writing an Android app with Xamarin and F# and need to use the ClipboardManager to copy some text to the clipboard. In Java the best way to do so is this:
android.content.ClipboardManager clipboard = (android.content.ClipboardManager)…

Ilya S.
- 11
- 2
0
votes
1 answer
Prevent System Generated Toast in Android
I have added a OnPrimaryClipChangedListener() in my service, which detects when user copies any text, and displays some output as Toast.
However in some apps (e.g. Gmail) when user copies the test, a Toast with message "Text copied to clipboard" is…

Abhi
- 3
- 3
0
votes
1 answer
When to retrieve data from from EditText and copy to the clipboard for the user to obtain?
I'm developing a clipboard manager app for Android, and it involves retrieving stored data from what the user had previously copied. I want this data to show up when the user hits paste. Does anybody know how I can implement this? My code is…

Nisarg
- 397
- 1
- 5
- 14
0
votes
1 answer
adding copy to your application
i'm trying to add copy ability to my application but when i added it when i click the textview it crashes i think there is some sort of error in my code i added in the SecondActivity.java
this is my code
package…

user3135137
- 37
- 1
- 4
0
votes
2 answers
Selecting Text from a TextView or EditText
I have a few TextView and a few EditText from which I would like to select a substring of the data for copyingfor API level 10 and above.I have implemented an OnLongClickListener for the problem but it(understandably) throws an…

vamsiampolu
- 6,328
- 19
- 82
- 183
0
votes
1 answer
Declare a variable inside an if statement and have it known to following method calls
I'm writing something in Android and in order to tailor for an older SDK, I need to change what a variable becomes. I'm using ClipboardManager which has different versions based on SDK. The issue is to create this variable easily, I have to do it in…

whitfin
- 4,539
- 6
- 39
- 67
0
votes
1 answer
Could not find class (android)
i am trying to run an android application for connecting to a server on my smartphone.
When i try to connect to a sample server saved in the app, i get this on LogCat:
Could not find class…

SegFault
- 2,020
- 4
- 26
- 41
0
votes
1 answer
Clipboard viewer: WM_DRAWCLIPBOARD sometimes fires many times
I've created a Clipboard viewer in the standard suggested way editing the WndProc as follows.
case WM_DRAWCLIPBOARD:
Logger.Main.LogMessage("Draw Clipboard event");
if (OnClipboardChanged != null) {
…

Andrea Nagar
- 1,233
- 2
- 13
- 23