Questions tagged [clipboardmanager]

ClipboardManager is an Android service that is responsible for system-wide clipboard management.

126 questions
0
votes
0 answers

Is it possible to automatically copy every item that enters clipboard in React Native (a ios/andriod Clipboard Manager app idea)?

I am looking to make a clipboard manager within React Native. The concept is that everything you copy into the clipboard will be saved into the clipboard manager so that you can access items you copied in the past. For example, you might want to…
0
votes
0 answers

Is there any way to paste image file ( Uri form ) from clipboard to notepad app in android

Is there any way to paste image file from clipboard to notepad app in android. Notepad allow only text to paste from clipboard, but I have image file (Uri Format) in clipboard to paste in notepad app. If I am trying to paste in Notepad, i got a…
Kishan
  • 9
  • 1
0
votes
0 answers

Insert text into clipboard in android using java

I am trying to use the clipboard in android as described here: https://www.tutorialspoint.com/android/android_clipboard.htm ClipboardManager myClipboard; myClipboard = (ClipboardManager)getSystemService(CLIPBOARD_SERVICE); …
J.B.
  • 51
  • 1
  • 2
  • 10
0
votes
1 answer

I get a "Val cannot be reasigned error" even though I assigned the variable as var?

I'm trying to add "copy to clipboard" functionality to an application. I added a setOnClickListener on the image button for copying and wrote the code below. I still get "val cannot be reassigned" error on "clipBoard.primaryClip = clip" line …
Deniz Göçer
  • 25
  • 1
  • 4
0
votes
0 answers

Recyclerview item multiple text copy in clipboard

I am using recyclerview. And there are two textview in recyclerview item. I am unable to add multiple text in clipboard. But I need both text. Here is my code. public NameViewHolder(View itemView) { super(itemView); …
0
votes
0 answers

How do i append copied text to clipboard on a new line?

I am doing a task which requires me to copy urls of many vidoes using a chrome extension and paste them in a text file . Currently i am doing it one by one . I am just trying to save some time as currently its very time consuming. So unlike the…
Sachin
  • 1,217
  • 2
  • 11
  • 31
0
votes
1 answer

How to copy text from the RecyclerView item?

I want to add a copy Button in RecyclerView items and copy the text, I added a code for copying the text from the RecyclerView but it is not working. After I clicked the copy Button, app crashes. This is my code to copy the text. ClipboardManager…
0
votes
1 answer

Why Xamarin ClipboardManager does not contains html only plain text?

I am trying to simulate Copy/Paste behavior of HTML text like Gmail does it. I.e. If I manually copy from Chrome page some text to the new mail in Gmail, the formatting of the text stays (more or less) with bullets, headers and etc. I've tried use…
Tanya
  • 109
  • 1
  • 13
0
votes
0 answers

How to copy an Image or Gif to Android clipboard

I've searched a lot for this but found older questions when Android did not support copying gifs to clipboard. Is there any way now to copy gifs or images to Android clipboard? How does SwiftKey do that?
Jeet
  • 1,030
  • 2
  • 10
  • 20
0
votes
3 answers

Clipboard clip change listener not working when app closed in Android Oreo

I was following below tutorial to check copy text event while the app is background or closed. https://github.com/twaddington/Android-Clipboard-Monitor/blob/master/src/com/example/clipboardmonitor/service/ClipboardMonitorService.java Now It's not…
Shamsul
  • 435
  • 6
  • 15
0
votes
1 answer

Android: Delete single item from clipboard programmatically

The Android Clipboard-Service allows you just to add text or other items into the clipboard, where on most Android devices the Clipdata items will be inserted into a stack with undefined max number of content. My problem is the following: I have a…
0
votes
1 answer

JavaSecurityException using ClipData on Android

I am trying to paste text using ClipData on Android. The following code gives a java.lang.SecurityException. This does not happen all of the time. Should I declare any uses-permission to read the clipboard? java.lang.RuntimeException: at…
msfreire
  • 494
  • 6
  • 10
0
votes
2 answers

How to prevent one application clipboard text which reads by another app in background Android

I am creating application with copy & paste functionality in Edittext. Which has some secure text, that needs to be prevent to read from clipboard by another application. Is it possible to prevent our text to read from clipboard by other application…
Gopinath S
  • 518
  • 1
  • 4
  • 12
0
votes
1 answer

Android: Copy formatted text from app into clipboard and paste to another app

I am trying to copy formatted (rich) text to ClipboardManager in the form of HTML tags. But, when I paste it to another app, it pastes HTML tags which is a expected behaviour. How can I copy formatted text (with images) in ClipboardManager and when…
satish123
  • 541
  • 7
  • 25
0
votes
1 answer

Failed to use Android.context.Clipboardmanager to clip a phone number

Today, I was making a function in my application. This function is to use a floating action button to copy a phone number typed in a autocomplete textview. But after reading several documents of the clipboard manager, I was confused. Because the…
Zeng Tianyu
  • 53
  • 1
  • 1
  • 11
1 2 3
8 9