-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Application::copyToClipboard for iOS #16
Conversation
See my comments on #14 |
I implemented the interface for every platform, but I have no idea how to get the information from Java to copy to the clipboard. Some direction would be appreciated! |
I found this SO answer: https://stackoverflow.com/questions/19253786/how-to-copy-text-to-clip-board-in-android The easiest way would be to add a function to NativeRootActivity.java ( probably a |
Yeah that’s what I did, but you need getSystemService which is a member function so it cannot be called from my static method... |
You can use NativeRootActivity.getRootActivity() to access the main activity object. |
Thanks, I will look into it @Maddimax! |
Alright, I implemented and tested Is there a way to have AndroidStudio show the cpp/java files like Xcode? It was lagging horribly and I couldn't get it to work, so I just ran |
Yes, a test button in the demo app would be nice! You should be able to see the cpp/java files in Android Studio. If you can't find them, double press Shift and it should bring up a quick open dialog (similar to Ctrl/Cmd+P in Sublime). If you enter the filename there, it should show up. Regarding the Android Studio and lagging: Yes, that's an issue. It's usually caused by Gradle sync and it's worse when the project is first opened. We found that it gets better if you generate a single target only (using |
Alright, I re-added the page, hopefully everything is done now :) |
Thanks a lot for the time and effort you put into this! |
Usage:
Currently I do not have enough disk space to test on an emulator on Android unfortunately. I will try to make space and implement it for Android and OSX too. I'll sign the CLA in a separate PR once that's applicable.