我想使用自定义操作在我的应用程序中启动一个活动。我已经找到了一些答案,但尝试所有的方法都会抛出 java.lang.RuntimeException
,并显示No Activity found to handle Intent { act=com.example.foo.bar.YOUR_ACTION }。
这是我清单文件中的活动:
<activity
android:name=".FeedbackActivity" >
<intent-filter>
<action android:name="com.example.foo.bar.YOUR_ACTION" />
</intent-filter>
</activity>
这是我启动活动的方式:
Intent intent = new Intent("com.example.foo.bar.YOUR_ACTION");
startActivity(intent);
任何帮助都将不胜感激。