Android Question How to use clipboard?

Scotter

Active Member
Licensed User
My search here turned up some pretty old posts so I'm creating a new thread because I want to be sure I get the latest methodology for how to make this work.
I just reloaded a project using old clipboard ways. I'm not sure if I was using a custom library because this new computer doesn't have whatever custom libraries I installed.
I'm wondering if this is now a built in functionality or if I need to get a new custom library?

What I have that is now showing error:
B4X:
Dim UserClipBoard As BClipboard
UserClipBoard.SetText(s)

Error:
B4X:
Main - 798: Undeclared variable 'userclipboard' is used before it was assigned any value.
Main - 797: Unknown type: bclipboard<br />Are you missing a library reference?
Main - 280: Msgbox and other modal dialogs are deprecated. Use the async methods instead. (warning #34)

[IDE message - 4:30:13]
An error occurred.
Maven artifact not found: androidx.annotation/annotation-experimental

Thank you!
 

LucaMs

Expert
Licensed User
Longtime User
For this post I will get "bastonate" (italian 😄) from Erel:

is there a B4XClipboard somewhere?

"bastonate":
SM139CautionBeatings.jpg
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
bastonate:
beating
noun
- L'avete presa a bastonate?
You beat this with a stick?
Li scacciavo a bastonate.
I was beating them off with a stick.
Alle bastonate sono abituata.
I am accustomed to beating.
L'hanno un po' bastonata.
She took kind of a beating.
Le bastonate ti rendono più forte.
Beatings make you stronger.
O magari delle bastonate.
Perhaps a birch-tree beating.
Quel coglione merita una bastonata.
That jerk needs a major beating
Ha preso una bastonata.
Gosh, he's taken a beating.
- Vuoi una bastonata?
- You want a beating?
Uccidetelo a bastonate!
Beat him to death!
In some Asia countries, parents or teachers used “rotan” (rattan stick/cane) and feather duster to beat.
 
Upvote 0
Top