{ "id": "149553", "key": "TIMOB-19194", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-12-01T22:54:37.000+0000", "created": "2015-07-09T01:10:10.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "intent", "link", "module_android", "multiple", "notable", "qe-manualtest", "qe-testadded" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-01-27T00:05:11.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": "h6.Feature:\r\nRight Now, `Ti.Android.Intent` only gives the option to send a single url within the `putExtraUri()` function. We need the option to use the `ACTION_SEND_MULTIPLE` instead of `ACTION_SEND` constant in order to allow an Array of URLs to be passed instead of a single String value. \r\n\r\nh6.Usage example: \r\n{code}\r\nvar photos = [ firstImage.nativePath, secondImage.nativePath ];\r\nintent.putExtraUri(Ti.Android.EXTRA_STREAM, photos);\r\n{code}\r\n\r\nh6.Expected Result: \r\nsuccess intent call \r\n\r\nh6.Actual Result:\r\nRight now it generates an exception: \r\n{code}\r\n[WARN] Bundle: Key android.intent.extra.STREAM expected ArrayList but value was a android.net.Uri$StringUri. The default value was returned. \r\n[WARN] Bundle: Attempt to cast generated internal exception: \r\n[WARN] Bundle: java.lang.ClassCastException: android.net.Uri$StringUri cannot be cast to java.util.ArrayList \r\n[WARN] Bundle: at android.os.Bundle.getParcelableArrayList(Bundle.java:805) \r\n[WARN] Bundle: at android.content.Intent.getParcelableArrayListExtra(Intent.java:5116) \r\n[WARN] Bundle: at android.content.Intent.migrateExtraStreamToClipData(Intent.java:7852) \r\n[WARN] Bundle: at android.app.Instrumentation.execStartActivity(Instrumentation.java:1494) \r\n[WARN] Bundle: at android.app.Activity.startActivityForResult(Activity.java:3745) \r\n[WARN] Bundle: at android.app.Activity.startActivityForResult(Activity.java:3706) \r\n[WARN] Bundle: at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:817) \r\n[WARN] Bundle: at android.app.Activity.startActivity(Activity.java:4016) \r\n[WARN] Bundle: at android.app.Activity.startActivity(Activity.java:3984) \r\n[WARN] Bundle: at org.appcelerator.titanium.proxy.ActivityProxy.startActivity(ActivityProxy.java:110) \r\n[WARN] Bundle: at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method) \r\n[WARN] Bundle: at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57) \r\n[WARN] Bundle: at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:43) \r\n[WARN] Bundle: at ti.modules.titanium.TitaniumModule$Timer.run(TitaniumModule.java:152) \r\n[WARN] Bundle: at android.os.Handler.handleCallback(Handler.java:739) \r\n[WARN] Bundle: at android.os.Handler.dispatchMessage(Handler.java:95) \r\n[WARN] Bundle: at android.os.Looper.loop(Looper.java:135) \r\n[WARN] Bundle: at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)\r\n{code}", "attachment": [], "flagged": false, "summary": "Ti.Android.Intent: Ability to send multiple URI to an intent", "creator": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "subtasks": [], "reporter": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "environment": null, "closedSprints": [ { "id": 529, "state": "closed", "name": "2015 Sprint 24 SDK", "startDate": "2015-11-21T01:30:12.670Z", "endDate": "2015-12-05T01:30:00.000Z", "completeDate": "2015-12-07T03:57:17.094Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "371093", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7481\r\nTest code in PR.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-11-23T04:46:25.000+0000", "updated": "2015-11-23T04:46:25.000+0000" }, { "id": "375331", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the implementation.\r\n\r\nTi.Android.Intent now has the ability to send multiple URI to an intent.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.5.0.201601210853\r\nTi SDK : 5.2.0.v20160114021251\r\nTi CLI : 5.0.6\r\nAlloy : 1.7.33\r\nMAC Yosemite : 10.10.5\r\nAppc NPM : 4.2.3-1\r\nAppc CLI : 5.2.0-233\r\nNode: v0.12.27\r\nNexus 5 - Android 5.1.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-27T00:01:37.000+0000", "updated": "2016-01-27T00:01:53.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }