[TIMOB-3359] Android: Remove supports-screens from template AndroidManifest.xml so as to accept Android 2.1 defaults
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T02:01:32.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.0, Sprint 2011-11 |
Components | Android |
Labels | android, feature, release-1.7.0 |
Reporter | Bill Dawson |
Assignee | Bill Dawson |
Created | 2011-04-15T03:43:11.000+0000 |
Updated | 2011-04-17T02:01:32.000+0000 |
Description
Since our base Android api level is now 7 (Android 2.1) and that version supports the "anyDensity="true"" configuration by default, take out our template AndroidManifest.xml's supports-screens section because it's setting anyDensity to false, which is no longer in line with Android defaults. We should mimic android defaults.
Attachments
File | Date | Size |
---|---|---|
image_files.zip | 2011-04-15T03:43:12.000+0000 | 18110 |
And remove the builder.py warning about having density-specific images in the app's Resources/images/android folder but not setting anyDensity to true, since now anyDensity is true by default.
To test this, create a new project and use this as the app.js:
Take the attached image_files.zip and expand it in the Resources/android/images folder. So the result will be that you will have these files available:
Resources/android/images/high/density.png
andResources/android/images/medium/density.png
.When you run the application with the WVGA800 emulator, you should see the high density image (the image itself has text on it that identifies itself.) When you run the app in the HVGA emulator, you should see the medium density image.
(from [e37329357f99ebcbe657b01345b815c58561f3b1]) Remove supports-screens from template AndroidManifest.xml so as to accept Android 2.1 defaults [#3359] https://github.com/appcelerator/titanium_mobile/commit/e37329357f99ebcbe657b01345b815c58561f3b1"> https://github.com/appcelerator/titanium_mobile/commit/e37329357f99...
(from [630a27665a2e04da763ae85849469af7249e59fc]) KitchenSink not ready for high density, so give it a anyDensity=false in the android section of its tiapp.xml. [#3359] https://github.com/appcelerator/titanium_mobile/commit/630a27665a2e04da763ae85849469af7249e59fc"> https://github.com/appcelerator/titanium_mobile/commit/630a27665a2e...
Tested with Titanium SDK version: 1.7.0 (03/17/11 10:02 630a276) on
Emulator API 2.1 WVGA800 - High
Emulator API 2.2 WVGA800 - High
Emulator API 2.1 HVGA - Medium
Nexus S 2.3.2 - High