{ "id": "100576", "key": "TIMOB-10806", "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": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14127", "description": "Sprint 2012-19 API", "name": "Sprint 2012-19 API", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "14271", "description": "2012 Sprint 19", "name": "2012 Sprint 19", "archived": true, "released": true, "releaseDate": "2012-09-24" }, { "id": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15709", "description": "2013 Sprint 23 Core", "name": "2013 Sprint 23 Core", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "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-11-13T23:38:54.000+0000", "created": "2012-09-06T15:22:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api", "module_button", "qe-closed-3.2.0", "qe-port", "qe-testadded" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" } ], "issuelinks": [ { "id": "33214", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "122199", "key": "AC-2535", "fields": { "summary": "images from res-xxx folders not displayed on Android with SDK 3.2", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "33213", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "122199", "key": "AC-2535", "fields": { "summary": "images from res-xxx folders not displayed on Android with SDK 3.2", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-11-18T21:51:13.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": "h3. Issue\r\n\r\nThe Ti.UI.Button's image property does not work if the images are under the density specific Android image folders (res-port-hdpi etc.) It works if we put the image in the default image dir. \r\n\r\nh3. Sample Test Case\r\n\r\n1. Run the attached test project\r\n2. The density specific images are placed under Resources/android/images folder.\r\n3. In the sample code, if we swap the Ti.UI.Button with a view or an imageview, the appropriate images are used.\r\n\r\n", "attachment": [ { "id": "31570", "filename": "android_search.tiff", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-09-20T12:17:27.000+0000", "size": 6546, "mimeType": "image/tiff" }, { "id": "31571", "filename": "ios_search.tiff", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-09-20T12:17:27.000+0000", "size": 5880, "mimeType": "image/tiff" }, { "id": "31053", "filename": "T13975.zip", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2012-09-06T15:22:16.000+0000", "size": 2380189, "mimeType": "application/zip" }, { "id": "31142", "filename": "timob10806.zip", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-10T13:53:03.000+0000", "size": 2392426, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Ti.UI.Button.image property is not working for density specific images", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Platform OS: Android 2.3, 4.0\r\nTitanium SDK: 2.1.2.GA", "comment": { "comments": [ { "id": "218230", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/2902\r\n\r\nFor functional test:\r\n1. Download the attached test project \"timob10806.zip\".\r\n2. Run the test project. Should see an image on the button. \r\n3. Click the button. Should see the image is changed.\r\n", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-10T13:51:23.000+0000", "updated": "2012-09-10T13:51:23.000+0000" }, { "id": "218783", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Also found in SDK 2.1.1.GA", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2012-09-13T02:40:08.000+0000", "updated": "2012-09-13T02:40:08.000+0000" }, { "id": "219115", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR for 2_1_X: https://github.com/appcelerator/titanium_mobile/pull/2968", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-14T16:46:00.000+0000", "updated": "2012-09-14T16:46:00.000+0000" }, { "id": "219221", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nTitanium Studio: 2.1.2.201208301612\r\nTitanium SDK: 2.1.3.v20120915120319\r\nAndroid Device: Samsung Note (v2.3.6), Galaxy Nexus (v4.0.2)", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-17T00:33:18.000+0000", "updated": "2012-09-17T00:33:18.000+0000" }, { "id": "220248", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\n\r\nosx Mountain Lion 10.8.1\r\nTitanium Studio, build: 2.1.2.201208301612\r\nTitanium SDK: 2.1.3.v20120920154617\r\nTitanium SDK: 3.0.0.v20120921144915\r\n\r\nDevice: Nexus S3 4.0.4", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-21T17:12:45.000+0000", "updated": "2012-09-21T17:12:45.000+0000" }, { "id": "278890", "author": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "body": "I am using SDK 3.13 and this bug still occurs in the emulator (e.g. WXGA720). However on a real device (Samsung Galaxy S3, same xhdpi) the button image is correctly loading from the density specific Android image folder.\r\n\r\nIs this only an emulator related bug or can this also happen on production release?\r\n\r\n", "updateAuthor": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-11-11T09:11:54.000+0000", "updated": "2013-11-11T09:11:54.000+0000" }, { "id": "279417", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 3.1.3.GA. The image shows fine on emulator.\r\nBut when tested with the latest master(3.2.0), this bug still occurs. The log is\r\n{code}\r\nD/TiFileFactory( 5544): (main) [3,118] getting initial from parts: app://images/Tab1.png\r\nE/TiRHelper( 5544): (main) [4,122] Error looking up resource: tab1_c9dd4dedd9\r\nE/TiRHelper( 5544): java.lang.NoSuchFieldException: tab1_c9dd4dedd9\r\nE/TiRHelper( 5544): \tat java.lang.Class.getDeclaredField(Class.java:631)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.util.TiRHelper.lookupResource(TiRHelper.java:77)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.util.TiRHelper.getResource(TiRHelper.java:105)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.util.TiUIHelper.getResourceId(TiUIHelper.java:770)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.view.TiDrawableReference.fromUrl(TiDrawableReference.java:185)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.view.TiDrawableReference.fromUrl(TiDrawableReference.java:168)\r\nE/TiRHelper( 5544): \tat ti.modules.titanium.ui.widget.TiUIButton.processProperties(TiUIButton.java:68)\r\nE/TiRHelper( 5544): \tat org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1185)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:482)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:473)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:451)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:489)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:473)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:451)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:568)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:546)\r\nE/TiRHelper( 5544): \tat ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:280)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:32)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:451)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:527)\r\nE/TiRHelper( 5544): \tat org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)\r\nE/TiRHelper( 5544): \tat android.app.Activity.performCreate(Activity.java:5008)\r\nE/TiRHelper( 5544): \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)\r\nE/TiRHelper( 5544): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)\r\nE/TiRHelper( 5544): \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)\r\nE/TiRHelper( 5544): \tat android.app.ActivityThread.access$600(ActivityThread.java:130)\r\nE/TiRHelper( 5544): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)\r\nE/TiRHelper( 5544): \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\nE/TiRHelper( 5544): \tat android.os.Looper.loop(Looper.java:137)\r\nE/TiRHelper( 5544): \tat android.app.ActivityThread.main(ActivityThread.java:4745)\r\nE/TiRHelper( 5544): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\nE/TiRHelper( 5544): \tat java.lang.reflect.Method.invoke(Method.java:511)\r\nE/TiRHelper( 5544): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)\r\nE/TiRHelper( 5544): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)\r\nE/TiRHelper( 5544): \tat dalvik.system.NativeStart.main(Native Method)\r\nW/TiDrawableReference( 5544): (main) [93,215] Could not open stream to get bitmap\r\nW/TiDrawableReference( 5544): (main) [0,215] Could not open stream to get bitmap\r\n{code}\r\nIn /build/android/res/drawable-xxx/, I can see the image file \"tab1_94b63d84cf.png\". But when I use 3.1.3.GA to build the project, I can see the image file \"tab1_c9dd4dedd9.png\". Seems the hash of the file are calculated differently in the master CLI.\r\nRe-opened the ticket. Seems like the same issue with TC-3259.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-13T22:36:01.000+0000", "updated": "2013-11-13T23:00:19.000+0000" }, { "id": "279437", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/4961", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-13T23:10:55.000+0000", "updated": "2013-11-13T23:10:55.000+0000" }, { "id": "280048", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\nMac OSX 10.9 Mavericks\nTitanium Studio, build: 3.2.0.201311160316\nTitanium SDK, build: 3.2.0.v20131117001643\nCLI: 3.2.0-alpha\nAlloy: 1.3.0\nAndroid Emulator: 2.3.3, 4.4\nAndroid Device: Xperia Arc S (4.0.4)\n\nNo error is thrown in the console log.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-18T21:50:48.000+0000", "updated": "2013-11-18T21:50:48.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }