{ "id": "89429", "key": "TIMOB-8507", "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": "15079", "description": "2013 Sprint 02 API", "name": "2013 Sprint 02 API", "archived": true, "released": true, "releaseDate": "2013-01-28" }, { "id": "14812", "description": "2013 Sprint 02", "name": "2013 Sprint 02", "archived": true, "released": true, "releaseDate": "2013-01-28" } ], "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-01-22T00:27:14.000+0000", "created": "2012-04-03T13:56:44.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "SupportTeam", "api" ], "versions": [ { "id": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "13270", "description": "Release 1.8 Service Pack 3 (CI for 1_8_X)", "name": "Release 1.8.3", "archived": true, "released": false } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T20:50:00.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 description\r\nDensity specific launcher icons are not used. Icons included in platform/res/drawable-/ folders are not used.\r\n\r\nh2. Steps to reproduce\r\nAs described in https://wiki.appcelerator.org/display/guides/Using+density-specific+resources+on+Android#Usingdensity-specificresourcesonAndroid-Theappicon , folders for specific icons resolutions are created. \r\n\r\nDifferent versions of myAppicon.png file is put inside each folder, however only the file icon specified in TiAPP.xml (/path-to-icon/myAppicon.png) is actually used. Other versions (set with the same name) inside res/drawable folder are ignored.\r\n\r\nSame result if using the default appicon.png filename\r\n\r\nh2. Additional notes\r\nCustomer ticket link: http://support-admin.appcelerator.com/display/APP-536715", "attachment": [ { "id": "35028", "filename": "timob8507.zip", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-22T00:26:36.000+0000", "size": 3834070, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: density specific resolution images for launcher icon are not used", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK 2.1.3 GA \r\nAndroid OS", "comment": { "comments": [ { "id": "189773", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "HD ticket: http://support.appcelerator.com/tickets/APP-536715\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-04T04:19:30.000+0000", "updated": "2012-04-04T04:19:30.000+0000" }, { "id": "190618", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "The filename (other than appicon.png) listed in the section of TiApp.xml isn't being carried into the AndroidManifest.xml file. I'd rather not name all of my apps' launcher icons \"appicon.png\"...that would get hard to manage with multiple apps.\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-11T14:07:09.000+0000", "updated": "2012-04-11T14:07:09.000+0000" }, { "id": "218797", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Still a problem in SDK 2.1.0.GA.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-09-13T07:37:57.000+0000", "updated": "2012-09-13T07:37:57.000+0000" }, { "id": "218799", "author": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I just ran into this issue. I have all my launcher icons setup in the platform directory, but Titanium is still requiring that the launcher icon ALSO exists in the /Resources/Android/ directory as well. ", "updateAuthor": { "name": "jlbarnhart", "key": "jlbarnhart", "displayName": "Jon Barnhart", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-13T07:52:04.000+0000", "updated": "2012-09-13T07:52:04.000+0000" }, { "id": "221351", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Ping, please take a look at the detail in the HD ticket referenced above.. Part of this problem is that the actual icon name listed in TiApp.xml is not carried over to the android:icon section of AndroidManifest.xml.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-09-28T13:20:53.000+0000", "updated": "2012-09-28T13:20:53.000+0000" }, { "id": "235279", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Based on the [doc|http://docs.appcelerator.com/titanium/3.0/#!/guide/Icons_and_Splash_Screens-section-29004897_IconsandSplashScreens-Icons%2Csplashscreens%2Candstorerequirements], the density-specific Android icons should be put inside platform/res/drawable-/ folders and the file name has to be *appicon.png*. Tested with latest master and 3.0 branch. The density-specific icons work fine.\r\nAttached a test project \"timob8507\".", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-22T00:25:40.000+0000", "updated": "2013-01-22T19:09:16.000+0000" }, { "id": "235328", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Ping, in your zip file, you still have appicon.png *also* listed under the Resources/android/ directory. See Jon Barnhart's comment above about Titanium requiring it. Under what circumstances does that copy of the icon get used?", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2013-01-22T13:28:16.000+0000", "updated": "2013-01-22T13:28:16.000+0000" }, { "id": "235362", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Shawn, I deleted the /Resources/android/image/appicon.png file and the attached project still works fine. When we build the project, we will always check whether /platform/res/drawable/*appicon.png* exists or not. If it does not exist, we will try to copy /Resources/android/image/appicon.png to /platform/res/drawable/. In this situation, the /Resources/android/image/appicon.png is used.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-22T19:07:43.000+0000", "updated": "2013-01-22T19:07:43.000+0000" }, { "id": "235376", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Ping, thanks for clarifying.\r\n\r\n> When we build the project, we will always check \r\n> whether /platform/res/drawable/appicon.png exists or not.\r\n\r\nDoes that go for any of the /platform/res/drawable-/ directories, or just /platform/res/drawable/ specifically? I have \\platform\\android\\res\\drawable-hdpi, \\platform\\android\\res\\drawable-mdpi, and \\platform\\android\\res\\drawable-xhdpi directories, but no plain \\platform\\res\\drawable\\ directory.\r\n\r\nI just tried to do a clean build of a project and got this error in the Application Installer console window:\r\n{panel}\r\n{code}\r\nIOError: [Errno 2] No such file or directory: u'C:\\\\Titanium\\\\blablaWorkspace\\\\blablaProject\\\\build\\\\android\\\\bin\\\\assets\\\\Resources\\\\appicon.png'\r\n{code}\r\n{panel}\r\n\r\nI'm using Windows 7. I have appicon.png in these locations only:\r\n\\platform\\android\\res\\drawable-mdpi\\appicon.png \r\n\\platform\\android\\res\\drawable-hdpi\\appicon.png \r\n\\platform\\android\\res\\drawable-xhdpi\\appicon.png\r\n\r\nSo something is still wrong. I have to throw a copy of the appicon.png file into this location to get it to build:\r\n/Resources/android/appicon.png\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2013-01-22T19:42:38.000+0000", "updated": "2013-01-22T19:44:06.000+0000" }, { "id": "235377", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Shawn, we only check for /platform/res/*drawable*/ directory. In your case, since you don't have /platform/res/drawable/appicon.png, we will try to copy it from /Resources/android/. And since there is no /Resources/android/appicon.png, it throws the error as you described.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-22T19:49:33.000+0000", "updated": "2013-01-22T19:49:33.000+0000" }, { "id": "235378", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "OK, got it. I just tested and throwing the extra copy in /platform/res/drawable/ makes it happy.\r\n\r\nHowever, I still have two points:\r\n1. That's still an extra copy of the icon that will never be used.\r\n2. The only reason I have for the /platform/res/drawable-/ directories is for the launcher icons. Every other density-specific image is handled by the /Resources/android/images/low|medium|high|res-xhdpi/ directory structure. It would be nice if Titanium would look in those (the latter) directories for the launcher icons also.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2013-01-22T19:58:12.000+0000", "updated": "2013-01-22T19:58:12.000+0000" }, { "id": "416539", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce this issue, tested with the following environment; \r\nPixel (7.1) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.2 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T20:50:00.000+0000", "updated": "2017-03-31T20:50:00.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }