We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1573 - SDL does not support system clipboard on Android.
Summary: SDL does not support system clipboard on Android.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All Android (All)
: P2 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-18 14:09 UTC by Philipp Wiesemann
Modified: 2013-02-16 13:35 UTC (History)
0 users

See Also:


Attachments
patch for system clipboard support on Android (5.42 KB, patch)
2012-08-18 14:09 UTC, Philipp Wiesemann
Details | Diff
android_system_clipboard_support_patch.diff (5.54 KB, patch)
2012-09-23 06:10 UTC, Philipp Wiesemann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Wiesemann 2012-08-18 14:09:47 UTC
Created attachment 929 [details]
patch for system clipboard support on Android

Hello,

there is currently no way in SDL to interact with the system clipboard on Android.

I attached a patch which tries to implement the three clipboard functions for Android. It does not add the CLIPBOARDUPDATE event because this seems to require Android API 11 or polling.
Comment 1 Philipp Wiesemann 2012-09-23 06:10:27 UTC
Created attachment 955 [details]
android_system_clipboard_support_patch.diff

I attached an updated version of the patch because some related files were changed.
Comment 2 Sam Lantinga 2012-09-26 20:23:31 UTC
Patch applied, thanks!
http://hg.libsdl.org/SDL/rev/ab55284b389f
Comment 3 Philipp Wiesemann 2013-02-16 02:27:29 UTC
Thank you for applying my patch. I did not add the SDL license comment at the top of the files (SDL_androidclipboard.c and SDL_androidclipboard.h) only to keep the patch smaller. Now this makes the files inconsistent with the remaining source.
Comment 4 Sam Lantinga 2013-02-16 13:35:38 UTC
Fixed these as well.  Thanks!