{ "id": "62201", "key": "TIMOB-1569", "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": [ { "id": "11229", "name": "Release 1.5.0 M04", "archived": true, "released": true, "releaseDate": "2010-12-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:56:32.000+0000", "created": "2011-04-15T02:56:16.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "feature" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:56:32.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": "{html}
Remote images are currently downloaded, but not cached. Add\nsupport for better background downloading and caching of\nimages.
My prototype code for the feature is on this branch dst-cachit\nit was done in 1_4_X so it'll have to be ported to 1.5.
\nThe goal of this support was to replace the current background\ndownload of images which doesn't know if something is already\ndownloaded. I also wanted to provide a cleanup thread and some\ncache configuration parameters like max # items, max mbs, scan\nfrequency. We should also add a clear method that could be invoked.\nEventually we'll turn this into a media agnostic cache manager, but\nthe initial need is for remote images. Especially wrt to TableViews\nuse of them.
The remote image test in KS (Base UI - Views - Image Views -\nRemote Image). Is it related to changes made for this ticket?\nTested with c680f8c in 2.1 emulator. I verified that my emulator\nhas an sdcard.
\nThere should also be a drillbit test for remote image.
\nLogcat:
\n\nE/TiDrawableReference( 326): java.io.FileNotFoundException: /sdcard/com.appcelerator.titanium/remote-image-cache/46b7e15e92d07bc31815c72c06be3693b5f73bed.hdr\nE/TiDrawableReference( 326): at org.apache.harmony.luni.platform.OSFileSystem.open(OSFileSystem.java:244)\nE/TiDrawableReference( 326): at java.io.FileInputStream.<init>(FileInputStream.java:77)\nE/TiDrawableReference( 326): at java.io.FileReader.<init>(FileReader.java:42)\nE/TiDrawableReference( 326): at org.appcelerator.titanium.util.TiResponseCache.get(TiResponseCache.java:179)\nE/TiDrawableReference( 326): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getFromCache(HttpURLConnection.java:848)\nE/TiDrawableReference( 326): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:755)\nE/TiDrawableReference( 326): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1051)\nE/TiDrawableReference( 326): at java.net.URL.openStream(URL.java:653)\nE/TiDrawableReference( 326): at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:147)\nE/TiDrawableReference( 326): at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:359)\nE/TiDrawableReference( 326): at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:171)\nE/TiDrawableReference( 326): at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:233)\nE/TiDrawableReference( 326): at org.appcelerator.titanium.util.TiBackgroundImageLoadTask.doInBackground(TiBackgroundImageLoadTask.java:71)\nE/TiDrawableReference( 326): at org.appcelerator.titanium.util.TiBackgroundImageLoadTask.doInBackground(TiBackgroundImageLoadTask.java:28)
\n
This also affects the \"Basic\" image view test, since it uses a\nremote url. And the Facebook login test. (Probably other tests\ntoo...)
(from [116948f0cb8a79ceff779c6f8955420d5aab547f])\n[#1569] TiResponseCache.get() should return null\nwhen cache doesn't contain item. If cachedir doesn't exist, create\nit. \nhttps://github.com/appcelerator/titanium_mobile/commit/116948f0cb8a...
(from [8e66e2c70caf59e50fd9b98641cc2e64acd2311f])\n[#1569] Test to guard against TiResponseCache\ncrashing \nhttps://github.com/appcelerator/titanium_mobile/commit/8e66e2c70caf...
(from [a0f4151a5b12ab0a7ed4a77d752ff74c1aeae581])\n[#1569 state:fixed-in-qa] work around android SDK\nbug which calls abort() even on success \nhttps://github.com/appcelerator/titanium_mobile/commit/a0f4151a5b12...
closed against (1.5.0.7d08f15) ks tests used: Basic image test,\nremote image
this is still an issue it seems under 1.5.1
\nremote images loaded in a scrollableView are re-downloaded on\neach scroll
Michael, are your images getting scaled at all? Or are they the\nprecise size that will be used?