Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19242] Android: Child nodes of javascript-based not generated as described in doc

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-09-02T07:56:10.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.0.0
ComponentsTooling
Labelsandroid, build
ReporterAndrey Tkachenko
AssigneeChris Barber
Created2015-07-11T13:14:24.000+0000
Updated2017-03-16T22:58:15.000+0000

Description

I can't add intent-filter child tag to the appcelerator custom tag in my tiapp.xml Children tag is absent in result AndroidManifest.xml file. [Documentation reference](https://docs.appcelerator.com/platform/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference-section-29004921_tiapp.xmlandtimodule.xmlReference-activities)

Comments

  1. Radamantis Torres-Lechuga 2015-07-16

    [~falko] we can not replicate this issue, can you please send us more information and a test case to try to replicate? Thanks
  2. Andrey Tkachenko 2015-07-16

    Create Default Alloy project in Appcelerator Studio, build: 4.1.0.201507071122 Android section from tiapp.xml
       <android xmlns:android="http://schemas.android.com/apk/res/android">
           	<activities>
                   <activity url="test.js">
                   	<intent-filter>
                           <category android:name="android.intent.category.DEFAULT" />
       	            <category android:name="android.intent.category.BROWSABLE" />
       	            <action android:name="android.intent.action.VIEW" />
                       </intent-filter>
                   </activity>
               </activities>    	
           </android>
       
    Place empty file test.js to app/lib folder and run build. Result AndroidManifest.xml application section:
       <application android:icon="@drawable/appicon" android:label="tc5620" android:name="Tc5620Application" android:debuggable="false" android:theme="@style/Theme.AppCompat">
       		<activity android:name=".Tc5620Activity" android:label="@string/app_name" android:theme="@style/Theme.Titanium" android:configChanges="keyboardHidden|orientation|screenSize">
       			<intent-filter>
       				<action android:name="android.intent.action.MAIN"/>
       				<category android:name="android.intent.category.LAUNCHER"/>
       			</intent-filter>
       		</activity>
       		<activity android:name="org.appcelerator.titanium.TiActivity" android:configChanges="keyboardHidden|orientation|screenSize"/>
       		<activity android:name="org.appcelerator.titanium.TiTranslucentActivity" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/Theme.AppCompat.Translucent"/>
       		<activity android:name="ti.modules.titanium.ui.android.TiPreferencesActivity" android:configChanges="screenSize"/>
       		<activity android:name="falkolab.tc5620.TestActivity" android:configChanges="keyboardHidden|orientation|screenSize"/>
       		<service android:name="com.appcelerator.analytics.APSAnalyticsService" android:exported="false"/>
       	</application>
       
    You can see that falkolab.tc5620.TestActivity without intent filters.
  3. Chris Barber 2015-09-01

    TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/7111 TiSDK 5_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/7112
  4. Ashraf Abu 2015-09-02

    PR reviewed and merged.
  5. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source