我正在通过网址启动MyApp。
我声明了意图并且它有效:
<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 = "https"
android:host = "formiik.com"
android:pathPrefix ="/citas"/>
<data android:scheme = "http"
android:host = "www.formiik.com"
android:pathPrefix ="/citas"/>
</intent-filter>
但是只有在Activity上使用intent.action.MAIN声明它时才有效。
如果我将意图发布或在另一个Activity中,意图不会捕获该URL。
我无法将其发布到另一个不是MAIN的活动中吗?
或者我需要另一条指令?
感谢您的帮助。
答案 0 :(得分:1)
您的意图看起来很好,请确保您想要的其他活动android:exported="true"
,因为它不是一个启动器活动,那么您应该好好去!