Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-436

Intent-filters not created for activities with url

    Details

      Description

      I'm trying to register an Activity from a url. I can do this by adding the following the the <android> section in tiapp.xml. Right?

      <activities>
          <activity url="myActivity.js">
              <intent-filter>
                  <action android:name="android.intent.action.VIEW"/>
                  <category android:name="android.intent.category.DEFAULT"/>
                  <category android:name="android.intent.category.BROWSABLE"/>
              	<data android:scheme="tryout"/>
          	</intent-filter>
      	</activity>
      </activities>
      

      I want to be able to start this activity from links clicked in other applications, so I added the scheme part. The problem is that the complete intent-filter part seems to be ignored.

      Am I trying something weird? Shouldn't this be possible? If not, is there another way to do this?

      The generated AndroidManifest.xml looks like this (removed the parts not needed for this case).

      <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.company.tryout" android:versionCode="1" android:versionName="1.0.0" android:installLocation="auto">
      	<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="21"/>
      	<application android:icon="@drawable/appicon" android:label="Try Out" android:name="TryOutApplication" android:debuggable="false" android:theme="@style/Theme.AppCompat" android:hardwareAccelerated="true" android:largeHeap="true">
      		<!--- set of Titanium activities -->
      		<activity android:name="com.company.tryout.MyActivityActivity" android:configChanges="keyboardHidden|orientation|screenSize"/>
      	</application>
      	<!--- set of permissions -->
      </manifest>
      

        Attachments

          Activity

            People

            • Assignee:
              mrahman Mostafizur Rahman
              Reporter:
              gertjans Gertjan Smits
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration