{ "id": "155899", "key": "AC-3401", "fields": { "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "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:26:18.000+0000", "created": "2016-03-22T19:25:28.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-22T19:26:18.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": "var filename = 'someImage.jpg';\r\n\r\n \r\n\r\nvar file = Titanium.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, filename);\r\n\r\n \r\n\r\nvar window = Ti.UI.createWindow({\r\n\r\n\tbackgroundColor: 'white'\r\n\r\n});\r\n\r\n \r\n\r\n\tvar imageView = Ti.UI.createImageView({\r\n\r\n\t\ttop: 0,\r\n\r\n\t\twidth: '100%',\r\n\r\n\t\timage: file.nativePath\r\n\r\n\t});\r\n\r\n\t\r\n\r\n\tvar shareButton = Ti.UI.createView({\r\n\r\n\t\theight: 100,\r\n\r\n\t\twidth: 200,\r\n\r\n\t\tbackgroundColor: 'purple',\r\n\r\n\t\tbottom: 0,\r\n\r\n\t});\r\n\r\n\t\r\n\r\n \r\n\r\n\twindow.add(imageView);\r\n\r\n\twindow.add(shareButton); \r\n\r\n \r\n\r\n \r\n\r\n\tshareButton.addEventListener('click', function() {\r\n\r\n\t\talert('shareClick');\r\n\r\n\t\t\r\n\r\n\t\tvar shareIntent = Ti.Android.createIntent({\r\n\r\n\t action: Ti.Android.ACTION_SEND,\r\n\r\n\t type: \"image/jpeg\"\r\n\r\n });\r\n\r\n \r\n\r\n\t shareIntent.putExtra(Ti.Android.EXTRA_TITLE, 'title');\r\n\r\n\t shareIntent.putExtra(Ti.Android.EXTRA_TEXT, 'text');\r\n\r\n\t shareIntent.putExtraUri(Ti.Android.EXTRA_STREAM, file.nativePath);\r\n\r\n\t Ti.Android.currentActivity.startActivity(Ti.Android.createIntentChooser(shareIntent, 'share'));\r\n\r\n\t\t\r\n\r\n\t});\r\n\r\n \r\n\r\nwindow.open();\r\n", "attachment": [], "flagged": false, "summary": "hello", "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 } } }