Android的消除动作完成对话框使用 [英] Android Eliminate Complete Action Using dialog
问题描述
我有2个应用程序和整合都包含一个活动的包。我的问题是,当我启动任何一个应用程序,而当它调用包装内的活动,它显示了我一个对话框:
I have 2 apps and both integrate a package containing an activity. My problem is that when I launch any one app, and when it calls the activity inside the package, it shows me a dialog:
使用完整的行动:
App1的
App2的
我想消除这个对话框,所以它只是从自己的集成包启动活动。
I want to eliminate this dialog, so it just launches the activity from its own integrated package.
目前,我的AndroidManifest.xml包含包活动:
Currently, my AndroidManifest.xml contains for the package activity:
<intent-filter>
<action android:name="com.example.test.TestActivity" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
谢谢
克里斯
Thanks Chris
推荐答案
您将需要更改&LT;意向滤光器&gt;
对的这两个副本中的一个活动。眼下,无论是广告,他们支持相同的操作字符串。换一个使用不同的操作字符串。或者,不使用操作字符串意图
- 使用新意图(这一点,TestActivity.class)
如果Java code是应用程序的一部分。
You will need to change the <intent-filter>
for one of those two copies of the activity. Right now, both are advertising that they support the same action string. Change one to use a different action string. Or, don't use the action string in the Intent
-- use new Intent(this, TestActivity.class)
if the Java code is part of your application.
这篇关于Android的消除动作完成对话框使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!