{ "id": "127300", "key": "AC-1634", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-03-10T05:37:36.000+0000", "created": "2014-03-06T08:41:03.000+0000", "labels": [ "4.1.2", "Galaxy", "Note1", "Samsung", "android", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:38:07.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hello,\r\n\r\nI have following program.\r\n\r\n{code:title=app.js|borderStyle=solid}\r\n\r\nvar winMain = Titanium.UI.createWindow({\r\n\tbackgroundColor : 'black'\r\n});\r\n\r\nvar content = '' +\r\n'' +\r\n '' +\r\n\t\t'' +\r\n '' +\r\n '' +\r\n '' +\r\n '' +\r\n '

Declaração 1 é maior

' +\r\n '

Statement 1 er større

' +\r\n '

Stelling 1 is groter

' +\r\n '

Lausunto 1 on suurempi

' +\r\n '

Déclaration 1 est supérieure

' +\r\n '

Erklärung 1 größer ist

' +\r\n '

Δήλωση 1 είναι μεγαλύτερη

' +\r\n '

Pernyataan 1 lebih besar

' +\r\n '

Dichiarazione 1 è maggiore

' +\r\n '

ステートメント1は大きい

' +\r\n '

문 1 큰

' +\r\n '

Pernyataan 1 adalah lebih besar

' +\r\n '

Declaración 1 es mayor

' +\r\n '

Uttalelse 1 er større

' +\r\n '

Declaração 1 é maior

' +\r\n '

Утверждение 1 больше

' +\r\n '

表1是更大

' +\r\n '

Uttalande 1 är store

' +\r\n '

1 คำสั่งที่มีขนาดใหญ่

' +\r\n '

表1是更大

' +\r\n '

Açıklama 1 daha büyüktür

' +\r\n '

Tuyên bố 1 lớn

' +\r\n '' +\r\n'';\r\n\r\nvar webView = Titanium.UI.createWebView({\r\n\theight : '95%',\r\n\twidth : '95%'\r\n});\r\n\r\nwinMain.add(webView);\r\n\r\nwinMain.open();\r\n\r\nwebView.setHtml(content);\r\n// webView.setUrl('http://www.suchariya.com/test.html');\r\n\r\nalert(webView.getHtml());\r\n\r\n{code}\r\n\r\nThis is multiple language program content.\r\n\r\n\r\nThe problem is when I uses code \"webView.setUrl('http://www.suchariya.com/test.html');\" it works fine as it should. But when I copy the same HTML content from Web and setting as \"webView.setHtml(content);\" it does not work as it should.\r\n\r\n\r\nThe problem which I see is, Setting \"webView.setHtml(content);\" discard the content type and doctype but the same remain there while using \"webView.setUrl('http://www.suchariya.com/test.html');\"\r\n\r\n\r\nAnother surprising thing is when I uses \"webView.setHtml(content);\", it showing me wearied but when I print the same in alert \"\r\nalert(webView.getHtml());\" it is showing the correct content.\r\n\r\n\r\nThis problem I am facing on Samsung Galaxy Note 1 - Android 4.1.2 but the same is working fine on Nexus 5.\r\n\r\n\r\nI am also attaching .js file here. Because there is nothing else is required to run/test this project.\r\n\r\n\r\nI also attached wrong output (using Setting content in Web View) and correct output (using URL in Web View) as a device screenshot.\r\n\r\n\r\nCan you please help me out to work with this problem ?\r\n\r\n\r\nThank you.", "attachment": [ { "id": "46420", "filename": "app.js", "author": { "name": "a.suchariya", "key": "a.suchariya", "displayName": "AvtarSingh Suchariya", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-06T08:41:03.000+0000", "size": 1828, "mimeType": "application/x-javascript" }, { "id": "46426", "filename": "Correct Output - URL.png", "author": { "name": "a.suchariya", "key": "a.suchariya", "displayName": "AvtarSingh Suchariya", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-06T13:02:44.000+0000", "size": 126850, "mimeType": "image/png" }, { "id": "46425", "filename": "Wrong Output - Content.png", "author": { "name": "a.suchariya", "key": "a.suchariya", "displayName": "AvtarSingh Suchariya", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-06T13:02:44.000+0000", "size": 147558, "mimeType": "image/png" } ], "flagged": false, "summary": "Web View Set HTML not working specially for Content type - Only android some devices", "creator": { "name": "a.suchariya", "key": "a.suchariya", "displayName": "AvtarSingh Suchariya", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "a.suchariya", "key": "a.suchariya", "displayName": "AvtarSingh Suchariya", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Studio\r\n\r\nTitanium Studio, build: 3.2.1.201402041146\r\n(c) Copyright 2012-2013 by Appcelerator, Inc. All rights reserved.\r\n\r\nBuild: jenkins-titanium-rcp-master-95 (origin/master)\r\nDate: 04 February 2014, 11:47:38\r\n\r\nTitanium SDK - 3.0.2.GA", "comment": { "comments": [ { "id": "296148", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "AvtarSingh - I tried your code on Samsung Galaxy Note II 4.1.2 and was not able to reproduce. It is showing the correct results. My Titanium SDK version is 3.2.1 GA. Just curious why you are using Titanium SDK 3.0.2 with Studio 3.2.1 GA. Can you please upgrade all components (Studio, SDK and CLI) to the 3.2.1 GA version and see if it makes a difference?", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-07T18:44:11.000+0000", "updated": "2014-03-07T18:44:11.000+0000" }, { "id": "296229", "author": { "name": "a.suchariya", "key": "a.suchariya", "displayName": "AvtarSingh Suchariya", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Hello Ritu,\r\n\r\nI just tested with 3.2.1 GA and it's also working fine on my device.\r\n\r\nNow, I am using the version of 3.0.2 is because this product already build on that and working fine. but when we switch from previous SDK version to 3.2.1 GA or any newer than 3.0.2, It's getting problem mainly with facebook integration. So we are not updating the app. Not tested if there are other problem also.", "updateAuthor": { "name": "a.suchariya", "key": "a.suchariya", "displayName": "AvtarSingh Suchariya", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-03-08T06:46:47.000+0000", "updated": "2014-03-08T06:47:55.000+0000" }, { "id": "296256", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It is good to know that your program works fine with 3.2.1 release. This release includes many new enhancements and fixes including iOS7 support so I would strongly recommend you to upgrade. \n\nPlease file another ticket for Facebook integration and we would be happy to look at that issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-10T05:37:29.000+0000", "updated": "2014-03-10T05:37:29.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }