Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3359] Android: Remove supports-screens from template AndroidManifest.xml so as to accept Android 2.1 defaults

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T02:01:32.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-11
ComponentsAndroid
Labelsandroid, feature, release-1.7.0
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:43:11.000+0000
Updated2011-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

FileDateSize
image_files.zip2011-04-15T03:43:12.000+000018110

Comments

  1. Bill Dawson 2011-04-15

    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.

  2. Bill Dawson 2011-04-15

    To test this, create a new project and use this as the app.js:

       Titanium.UI.setBackgroundColor('#000');
       var win = Titanium.UI.createWindow({  
           title:'Test',
           backgroundColor:'#000',
           exitOnClose: true
       });
       
       var iv = Ti.UI.createImageView({
           image:"images/density.png"
       });
       win.add(iv);
       
       
       win.open();
       

    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 and Resources/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.

  3. Bill Dawson 2011-04-15

    (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...

  4. Bill Dawson 2011-04-15

    (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...

  5. Natalie Huynh 2011-04-15

    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

JSON Source