1

I'm trying to put some info into the clipboard from my gluon-mobile based app and can't seem to figure out how. With Platform.isDesktop() it's easy, the below works fine:

import javafx.scene.input.Clipboard;
import javafx.scene.input.ClipboardContent;

Clipboard clipboard = Clipboard.getSystemClipboard();
ClipboardContent content = new ClipboardContent();
content.putString(addressStr);
content.putHtml("<a href=" + depositAddressUri(address) + ">" + addressStr + "</a>");
clipboard.setContent(content); 

But when Platform.isAndroid() this doesn't work. Any suggestions? Thanks!

Not Mandatory
  • 166
  • 2
  • 7
  • 1
    Check this [tutorial](https://www.tutorialspoint.com/android/android_clipboard.htm) on how to use Clipboard – Shubham Feb 06 '17 at 05:41
  • @Shubham thanks for the link, it looks like the way to do it on android. One other piece of the puzzle is using android apis in a gluon-mobile (javafx ports) app, but this [link](http://stackoverflow.com/questions/31112862/javafx-with-android-api) seems to explain that part. I'll give it a try and report back. – Not Mandatory Feb 07 '17 at 04:30
  • That link is quite outdated now. Check [this](http://stackoverflow.com/questions/41553087/how-to-implemented-in-javafx-gluon-a-button-to-go-to-the-default-send-message-fo) other one instead, as it shows how to extend the latest implementation of the Charm Down plugins – José Pereda Feb 07 '17 at 09:24
  • Thanks Josè! I will try it. – Not Mandatory Feb 08 '17 at 16:14

0 Answers0