{ "id": "155901", "key": "AC-3402", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2016-03-22T19:34:19.000+0000", "created": "2016-03-22T19:31:55.000+0000", "labels": [], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-22T19:34:19.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": [], "description": "h3. Steps to Reproduce\nvar filename = 'someImage.jpg';\n\nvar file = Titanium.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, filename);\n\nvar window = Ti.UI.createWindow({\n\n backgroundColor : 'white'\n\n});\n\nvar imageView = Ti.UI.createImageView({\n\n top : 0,\n\n width : '100%',\n\n image : file.nativePath\n\n});\n\nvar shareButton = Ti.UI.createView({\n\n height : 100,\n\n width : 200,\n\n backgroundColor : 'purple',\n\n bottom : 0,\n\n});\n\nwindow.add(imageView);\n\nwindow.add(shareButton);\n\nshareButton.addEventListener('click', function() {\n\n alert('shareClick');\n\n var shareIntent = Ti.Android.createIntent({\n\n action : Ti.Android.ACTION_SEND,\n\n type : 'image/jpeg'\n\n });\n\n shareIntent.putExtra(Ti.Android.EXTRA_TITLE, 'title');\n\n shareIntent.putExtra(Ti.Android.EXTRA_TEXT, 'text');\n\n shareIntent.putExtraUri(Ti.Android.EXTRA_STREAM, file.nativePath);\n\n Ti.Android.currentActivity.startActivity(Ti.Android.createIntentChooser(shareIntent, 'share'));\n\n});\n\nwindow.open();\n\nh3. Actual Result\ntest\n\nh3. Expected Result\ntest", "attachment": [ { "id": "58687", "filename": ".log", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-22T19:32:48.000+0000", "size": 2834008, "mimeType": "text/plain" }, { "id": "58688", "filename": "diagnostic5635592284493218885.log", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-22T19:33:27.000+0000", "size": 850155, "mimeType": "text/plain" } ], "flagged": false, "summary": "test", "creator": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }