Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2555] Android: tiapp.xml changes to android->application element only work if other manifest-related entries exist

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:59:26.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M01
ComponentsAndroid
Labelsandroid, defect, release-1.6.0
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:22:36.000+0000
Updated2011-04-17T01:59:26.000+0000

Description

Example: If you have this in tiapp.xml:

<android xmlns:android="http://schemas.android.com/apk/res/android">
 <manifest>
  <application android:debuggable="true"/>
 </manifest>
</android>

... that debuggable attribute doesn't make it to AndroidManifest.xml. But if you add in something else under manifest in tiapp.xml, it does:

<android xmlns:android="http://schemas.android.com/apk/res/android">
 <manifest>
  <application android:debuggable="true"/>
    <supports-screens 
            android:smallScreens="false"
            android:normalScreens="true"
            android:largeScreens="true"
            android:anyDensity="true"
        />

 </manifest>
</android>

Comments

  1. Bill Dawson 2011-04-15

    To test:

    Create app and put this in tiapp.xml (replace the android section therein with this):

       <android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
         <application android:debuggable="true"/>
        </manifest>
       </android>
       

    Launch the app (don't worry about what the app does / looks like, that's all irrelevant.)

    After the app has launched, open the generated file build/android/AndroidManifest.xml. Find the <application> node in that xml file. In the failcase, you'll see android:debuggable="false". When fixed, you'll see it as true.

  2. Matt Schmulen 2011-04-15

    Bill this failed for me in 2.1 Sim [INFO] Titanium SDK version: 1.5.0 (12/10/10 15:05 f08319c)

       <application
           android:icon="@drawable/appicon"
           android:label="simple"
           android:name="SimpleApplication"
           android:debuggable="false"
       >
           <activity
               android:name=".SimpleActivity"
       
  3. Bill Dawson 2011-04-15

    Eh? Good, you proved the fail case. Now test with master. ;) (It wasn't meant for 1.5.0)

  4. Thomas Huelbert 2011-04-15

    [INFO] Titanium SDK version: 1.6.0 (01/10/11 08:25 3452f06) sim 2.2 and 1.6

JSON Source