{ "id": "91936", "key": "TIMOB-10006", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-02-28T16:00:39.000+0000", "created": "2012-05-17T03:00:54.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "core", "exalture" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-17T18:19:44.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": "Opening an image file in a webView is a common solution to get pan and zoom for an image on Android.\r\nHowever, if the image is named @2x.png, the webView apparently gets confused and displays the image as text \r\n(see attachment)\r\nIf the very same file is simply renamed -hd.png, then it is displayed correctly.\r\nIt appears that the '@' symbol is being interpreted by the Android webView.\r\n\r\nI've tested it with a number of different valid png files.\r\n{code:javascript}\r\nvar imagehd = 'images/hmb-logo@2x.png';\r\nvar webView = Ti.UI.createWebView ({\r\n\t\turl : imagehd,\r\n\t\ttop : 0,\r\n\t\tleft : 0,\r\n\t\tscalesPageToFit : false,\r\n\t\tenableZoomControls : true,\r\n\t});\r\nwin.add(webView);\r\n{code}", "attachment": [ { "id": "27731", "filename": "device-2012-05-17-025034.png", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-17T03:00:54.000+0000", "size": 271570, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Open 'image@2x.png' in Android webView displays as text", "creator": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "2.01GA2 SDK, Android 2.3.6 on Motorola Atrix 2", "comment": { "comments": [ { "id": "240164", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried with 3.1, I couldn't reproduce the problem. I can see the image properly.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-02-28T16:00:39.000+0000", "updated": "2013-02-28T16:00:39.000+0000" }, { "id": "292477", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reproduced the failure w/ Ti SDK 3.2.1 & Android 2.3.5 (HTC Inspire 4G). Works w/ Android 4.3 (Samsung Galaxy 3).", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-11T21:54:10.000+0000", "updated": "2014-02-11T21:54:10.000+0000" }, { "id": "292483", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Screenshot for Feb 11 comment above: [http://s27.postimg.org/lhevv9gwj/device_2014_02_11_135540.png]\r\nOriginal Image: [http://s9.postimg.org/ijj66retr/cms_map_2x.png]", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-11T22:01:48.000+0000", "updated": "2014-02-11T22:01:48.000+0000" }, { "id": "413542", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-17T18:19:44.000+0000", "updated": "2017-03-17T18:19:44.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }