{ "id": "85096", "key": "TIMOB-7283", "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": [], "resolution": null, "resolutiondate": null, "created": "2012-01-18T16:06:49.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "13270", "description": "Release 1.8 Service Pack 3 (CI for 1_8_X)", "name": "Release 1.8.3", "archived": true, "released": false } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-02T17:31:43.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h3.Feature Request\r\nThe purpose of this feature request is to support Synchronous HTTP Calls on android as currently is in iOS.\r\n\r\nh6.HTTPClient method\r\nhttp://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Network.HTTPClient.open-method.html\r\n\r\nh6.Repro sequence to test\r\nPass a third argument (true/false) to open()\r\n{code:title=app.js}\r\nvar bool, xhr;\r\n xhr = Titanium.Network.createHTTPClient();\r\n bool = false;\r\n xhr.open(\"GET\", \"http://api.twitter.com/1/help/test.json\", false);\r\n xhr.onreadystatechange = function() {\r\n Ti.API.debug(\"Ready State change to \" + xhr.status);\r\n if (xhr.status === 200) {\r\n Ti.API.debug(\"Setting bool to true\");\r\n bool = true;\r\n }\r\n };\r\n xhr.send();\r\n Ti.API.debug(\"Bool is: \" + bool);\r\n{code}\r\n\r\nh6.Output\r\nD/TiAPI ( 304): Bool is: false", "attachment": [], "flagged": false, "summary": "Android: Support Synchronous HTTPClient calls", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: Mobile 1.8.0.1\r\nPlatform OS: Android\r\nPlatform OS Version: 2.2 ", "comment": { "comments": [], "maxResults": 4, "total": 4, "startAt": 0 } } }