-1
私は2つのプロジェクト:ProjectAとProjectBです。私は、次のコードで私のPROJECTA内からB_Activity活動を開くようになりましたProjectBのをしようとしています:startActivityForResult:インテントを処理するアクティビティが見つかりません
Intent intent = new Intent("com.orr.con.projectb");
startActivityForResult(intent, 0);
が、私は次のエラーを取得する:
android.content.ActivityNotFoundException: No Activity found to handle Intent
A_Activityのマニフェスト:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.test.or.test">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".A_Activity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
B_ActiのマニフェストVITY:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.orr.con.projectb">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".B_Activity" android:label="@string/app_name"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
まず私はデバイス上のProjectBの、その後、PROJECTAをインストールします。 私は関連する質問のほとんどを読んだことがありますが、私はここで何が問題なのか理解できません。
私も追加する必要:<カテゴリアンドロイド:名= "android.intent.category.DEFAULT" />しかし、それは助けTY – IIIIIIIIIIIIIIIIIIIIII