{ "id": "121930", "key": "TIMOB-15635", "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": "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-05T17:38:43.000+0000", "created": "2013-11-01T09:23:50.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "androidbuild", "cb-verified", "qe-closed-3.2.0" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-06-19T12:44:11.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": "The build process sets anyDensity to false without taking in account the tiapp.xml setting.\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: anyDensity is set to false always", "creator": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti SDK 3.2.0.v20131030184044\r\nAndroid", "comment": { "comments": [ { "id": "277655", "author": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi Dan Tamas,\n\nActually i don't find anyDensity is set to false always in tiapp.xml file please notify me clearly with some resource.\n\nThanks", "updateAuthor": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-11-01T10:17:18.000+0000", "updated": "2013-11-01T10:17:18.000+0000" }, { "id": "277656", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Are you kidding? What is not clear?\n\n", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-11-01T10:20:49.000+0000", "updated": "2013-11-01T10:20:49.000+0000" }, { "id": "277913", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~rborn] Hey Dan, I just tested this and even I'm not sure exactly what the problem is. I don't think the build process has ever set anyDensity to false.\n\nIf I put the following in my tiapp.xml, anyDensity remains true in the final AndroidManifest.xml:\n\n{code}\n\n\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\n\n{code}\n\nSo, either:\n\n1) You are using a custom AndroidManifest.xml and I have a bug (possible)\n2) There was a bug that was fixed in one of the 12+ CI builds since 3.2.0.v20131030184044 (likely)\n3) You forgot to put \"android:\" before the \"anyDensity\" (unlikely, but possible)\n4) You put the tag someplace that was NOT in the tag. The new Android build system is VERY strict about the tags. If you put anywhere besides in the tag, it disappears... forever!\n\nTo match parity with iOS and how it handles precedence, the custom AndroidManifest.xml wins over the default AndroidManifest.xml and the in the tiapp.xml wins over the custom AndroidManifest.xml and default AndroidManifest.xml.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-04T05:48:17.000+0000", "updated": "2013-11-04T05:48:17.000+0000" }, { "id": "277931", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Chris, here is the android part tiapp.xml.\r\nThe support-screens is a little different, and I tried with 3.2.0.v20131031141643\r\nNo custom manifest file :)\r\n\r\nHowever I right now I'm not able to test, so this is something for you just to know.\r\nAs soon as I'll be able I'll run some tests with the latest CI and let you know. \r\n\r\nThank you.\r\n\r\n{code}\r\n \r\n \r\n 10\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n\t \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n{code}", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-11-04T09:17:52.000+0000", "updated": "2013-11-04T09:17:52.000+0000" }, { "id": "277932", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~rborn] Cool. Looks pretty cut and dry. Let me know how the most recent CI build does.\n\nFYI, is deprecated in favor of , so now you can shave some bytes off your tiapp.xml.\n\nJust out of curiosity, when you look at build/android/AndroidManifest.xml, is anyDensity set to false? Or is it when your app is running? Or are you determining this based on behavior? Are you doing an emulator build or device build? If device, does the name of it start with X, end with M, and have a OO in the middle?\n\nFor fun, I grepped the Android source and found that there is a variable ingeniously named \"anyDensityFalse\" which is initialized to false and set to whatever true if the device supports it (based on the ApplicationInfo object). Personally, I think it would have been better to name it \"anyDensityNotTrue\" and have it initialized to {{!true}}. False is just so negative.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-04T09:29:50.000+0000", "updated": "2013-11-04T09:29:50.000+0000" }, { "id": "277959", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "@Chris - I tested with 3.2.0.v20131104014843 and it seems that the anyDensity is back.\r\nI didn't make any change to tiapp.xml so it seems to be fixed.\r\n\r\nHowever I didn't make more tests with more apps, just had 5 mins to run a fast compile :)\r\n\r\nI'll try later this days (this week) to run more tests and see how it's working.\r\n\r\nThank you.\r\n\r\n", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-11-04T15:55:52.000+0000", "updated": "2013-11-04T15:55:52.000+0000" }, { "id": "277963", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "I lied :(\r\n\r\nI cleaned the project, recompiled and here it is (in the generated manifest file)\r\n{code}\r\n\t \r\n{code}\r\n\r\nMore info:\r\n - I detected this behaviour because the screens don't fit anymore, they are huge - the project is old and at that moment that was the way to keep all the screen sizes happy\r\n - deploy to emulator with android 2.3.4\r\n - as mentioned before, the anyDensity is set to false in the generated AndroidManifest.xml\r\n\r\nWhat else do you need to know? \r\nThank you :)\r\n", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-11-04T16:01:47.000+0000", "updated": "2013-11-04T16:12:39.000+0000" }, { "id": "277966", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Dan: 1, Chris: 0.\n\nPull request: https://github.com/appcelerator/titanium_mobile/pull/4909\n\nTo test, un-Earth a module with a timodule.xml that contains:\n\n{code}\n\n \n \n \n\n{code}\n\nBuild an Android app and verify the generated build/android/AndroidManifest.xml.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-11-04T16:12:40.000+0000", "updated": "2013-11-04T16:12:40.000+0000" }, { "id": "278001", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Haha, nice catch. Indeed I have a module with anyDensity set to false.\r\nThanks a lot, waiting for the merge and I'll let you know", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-11-04T18:59:37.000+0000", "updated": "2013-11-04T18:59:37.000+0000" }, { "id": "282527", "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.201312031529\nTitanium SDK, build: 3.2.0.v20131203104847\nCLI: 3.2.0-beta\nAlloy: 1.3.0-beta\n\nTested using Chris Barber's test steps.\nIncluded code in the tiapp.xml and added modules with with anyDensity set to false.\nAndroidManifest.xml still had anyDensity set to true after build.\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-05T00:24:59.000+0000", "updated": "2013-12-05T00:24:59.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }