Hello all,
I have my remote service which try to run an activity from a diffrent application this way:
Intent i = new Intent("ValidateActivity.intent.action.Launch");
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);
Now also in the remote service app ive added in the manifest those lines:
<service android:name=".UdpListenerService">
<intent-filter>
<action android:name="com.something.IUdpListenerService" />
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</service>
now in the target activity's manifest(ValidateActivity) ive added in it's manifest those lines:
<activity android:name="com.something.ValidateActivity" >
<intent-filter>
<action android:name="ValidateActivity.intent.action.Launch"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
** i will mention that the target activity is in diffrent apk, and it has two packages:
1.com.something (there i have my ValidateActivity)
2.com.test (there i have another activity, which is not relevant for this question).
now after i try to run it i still get the error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.external/com.something.ValidateActivity}: java.lang.NullPointerException
thanks.