{ "id": "159106", "key": "AC-3422", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-04-06T14:35:11.000+0000", "created": "2016-03-29T11:55:59.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-04-06T14:35: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": [], "description": "The chromecast adapter must run in main thread. If I code:\r\n~~~\r\n@Kroll.method\r\npublic boolean startMediaRouter() {\r\n Context context = TiApplication.getInstance().getApplicationContext();\r\n mMediaRouter = createMediaRouter(context);\r\n return true;\r\n}\r\n~~~\r\n\r\nThen the system answered:\r\n_Message: Uncaught Error: The media router service must only be accessed on the application's main thread._\r\n\r\nHow can I run a module in main thread?\r\n", "attachment": [], "flagged": false, "summary": "Android module in application's main thread?", "creator": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "titanium@webmasterei-hamburg.de", "key": "titanium@webmasterei-hamburg.de", "displayName": "Rainer Schleevoigt", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android SDK5.2.0.GA", "comment": { "comments": [ { "id": "381078", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nI am not completely understanding your issue. You are using chromecast module. Could you explain a little more what you are trying to do. Please share full reproducible code about the issue that you are having. Also, Please provide a complete list of steps to follow for me to reproduce the issue in my environment. Also, Please attach the module itself in this ticket.\r\n\r\nRegards,\r\nSharif\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-03-30T19:36:59.000+0000", "updated": "2016-03-30T19:36:59.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }