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

Summary: SDL does not support system clipboard on Android.
Product: SDL Reporter: Philipp Wiesemann <philipp.wiesemann>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Android (All)   
Attachments: patch for system clipboard support on Android
android_system_clipboard_support_patch.diff

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!