{ "id": "114071", "key": "TIMOB-14078", "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": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-05T00:00:53.000+0000", "created": "2013-05-09T10:30:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "community" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-22T21:50:46.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": "h2. Problem\r\n\r\nIf a ImageView with a remote image is displayed to the user for the first time when no internet connectivity is available, the remote image will also not show if it is displayed later on when internet connectivity is available.\r\n\r\nOnly after a restart of the application the remote image will show.\r\n\r\nTitanium SDK 3.2.0 (HEAD)\r\nAndroid 4.2.1\r\nNexus S\r\n\r\n\r\nh2. Test case\r\n\r\n1. Run the app from the code below with the device in \"flight mode\" (no internet connectivity)\r\n2. Press the button \"Open\". The remote image will not show as expected.\r\n3. Go back with the back button.\r\n4. Put the app into background (do not close the app completely)\r\n5. Disable flight mode and wait for the internet connectivity to restore\r\n6. Open the app.\r\n7. Press the button \"Open\". I would now expect the remote image to appear. But it won't appear. It will only appear, if the app is fully closed and opened again.\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({});\r\n\r\nvar b = Ti.UI.createButton({\r\n\ttitle: 'Open'\r\n});\r\nwin.add(b);\r\n\r\nb.addEventListener('click', function(evt) {\r\n\tvar win2 = Ti.UI.createWindow({ modal: false });\r\n\t\r\n\tvar v1 = Ti.UI.createImageView({\r\n\t\theight: '64dp',\r\n\t\twidth: '64dp',\r\n\t\thires: true,\r\n\t\tbackgroundColor: 'green',\r\n\t\timage: \"https://raw.github.com/appcelerator/titanium_mobile/master/android/templates/app/default/Resources/android/appicon.png\",\r\n\t});\r\n\r\n\twin2.add(v1);\r\n\twin2.open();\r\n});\r\n\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Remote images not loaded at second load attempt when no internet connection on first load attempt ", "creator": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium SDK 3.2.0 (HEAD)\r\nAndroid 4.2.1\r\nNexus S", "comment": { "comments": [ { "id": "253184", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull Request:\n\nhttps://github.com/appcelerator/titanium_mobile/pull/4307", "updateAuthor": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-05-21T19:15:55.000+0000", "updated": "2013-05-21T19:15:55.000+0000" }, { "id": "276244", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix we can see the image when internet connectivity is resumed.\r\nThus closing.\r\n\r\nEnvironment:\r\nAppcel Studio : 3.2.0.201310221639\r\nTi SDK : 3.2.0.v20131022050844\r\nMac OSX : 10.8.5\r\nCLI - 3.2.0 with hash 72f7426b4ee6c2d2883c666d5b7e03906a16012f\r\nDevice: Samsung Galaxy S4 running android 4.2.2", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T21:50:46.000+0000", "updated": "2013-10-22T21:50:46.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }