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!
 

aeric

Expert
Licensed User
Longtime User
In some Asia countries, parents or teachers used “rotan” (rattan stick/cane) and feather duster to beat.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…