Lazarus
Programming => Operating Systems => Android => Topic started by: wywong on April 08, 2020, 02:56:44 am
-
I try to copy some text to the Android clipboard using the Windows way:
uses ClipBrd,...
ClipBoard.setTextbuf('Hello');
or
ClipBoard.asText := 'Hello';
Both build OK but both crash my app when testing on my smartphone. Is clipboard implemented? If so, how to use it?
-
Some LAMW components has "build-in" clipboard methods....
-
Thanks jmpessoa. I tried the following code and it worked!
jTextView1.text := 'Hello'; jTextView1.copyToClipboard();