{ "id": "62431", "key": "TIMOB-1799", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:12.000+0000", "created": "2011-04-15T03:02:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "feature" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:12.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

See ticket #648 Creating an android specific ticket for\nbetter tracking.

\n

Feature from Brion

\n

Spent a little weekend hacking time and threw together a quick\nport of the Titanium.UI.Clipboard module interface from\nDesktop:
\nhttp://github.com/brion/titanium_mobile/tree/clipboard\nAPI docs, KitchenSink demo, Android, and iOS implementations are on\nthat branch in separate commits.
\nThe Android clipboard is limited to plaintext, which appears to\nwork nice enough in my initial testing.
\nOn iOS, in addition to text, there is theoretical support for URLs\n(marked as 'URL' or 'text/uri-list' as per Desktop, and using\nstrings on our side) and images (as 'image' or actual MIME type). I\nhaven't actually tested these code paths yet. :) Other data types\nmay or may not be properly converted by the system libraries from\nthe MIME type to the native clipboard UTI, and will also expect\ndata in blob form.

{html}", "attachment": [], "flagged": false, "summary": "Android: Add API Support for Clipboard", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126707", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Note: There is an example in KS at the end of the platforms\ntab.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:43.000+0000", "updated": "2011-04-15T03:02:43.000+0000" }, { "id": "126708", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [1cb0d8d9924777ca851e3192e395dc975f23a7fd])\n[#1799 state:fixed-in-qa] Initial Ti.UI.Clipboard\nmodule for Android, following the Ti.UI.Clipboard API from Titanium\nDesktop.

\n

Since the Android clipboard only appears to support plain text\nstrings, only text is supported. The getData(), setData(), and\nhasData() functions will pass text through if given 'text/plain',\nand otherwise do nothing.
\n\nhttp://github.com/appcelerator/titanium_mobile/commit/1cb0d8d992477...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:44.000+0000", "updated": "2011-04-15T03:02:44.000+0000" }, { "id": "126709", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

1.4.2.5935b3 g1 1.6, 2.2 sim. new record for iOS parity

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:44.000+0000", "updated": "2011-04-15T03:02:44.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }