remote service start activity from diffrent application(apk)
<p>I have my remote service which try to run an activity from a diffrent application this way:</p>

<p>Intent i = new Intent("ValidateActivity.intent.action.Launch");</p>

<p>i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);</p>

<p>startActivity(i);</p>

<p>Now also in the remote service app ive added in the manifest those lines:</p>

<pre><code>          &lt;service android:name=".UdpListenerService"&gt;
             &lt;intent-filter&gt;
               &lt;action android:name="com.something.IUdpListenerService" /&gt;
               &lt;category android:name="android.intent.category.DEFAULT"/&gt;
             &lt;/intent-filter&gt;
          &lt;/service&gt;
</code></pre>

<p>now in the target activity's manifest(ValidateActivity) ive added in it's manifest those lines:</p>

<pre><code>         &lt;activity android:name="com.something.ValidateActivity" &gt;
            &lt;intent-filter&gt;        
             &lt;action android:name="ValidateActivity.intent.action.Launch"/&gt;
              &lt;category android:name="android.intent.category.DEFAULT"/&gt;  
            &lt;/intent-filter&gt;
          &lt;/activity&gt;
</code></pre>

<p>** i will mention that the target activity is in diffrent apk, and it has two packages:</p>

<p>1.com.something (there i have my ValidateActivity)</p>

<p>2.com.test (there i have another activity, which is not relevant for this question).</p>

<p>now after i try to run it i still get the error:</p>

<p>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.external/com.something.ValidateActivity}: java.lang.NullPointerException</p>

<p>thanks.</p>
