How to call an Activity in Android
<p>I have the following scenario.
I have 2 packages in my application.
com.example.package1;
org.otherexample.package2;</p>

<p>I declare in manifest like this:</p>

<pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
   package="com.example.package1"
   android:versionCode="1"
   android:versionName="1.0" &gt;
   &lt;activity android:name=".ActivityfromPackage1"/&gt;
   &lt;activity android:name="org.otherexample.package2.ActivityFromPackage2"/&gt;

&lt;/manifest&gt;
</code></pre>

<p>This being the manifest, now I want to Call From ActivityFromPackage1 ActivityFromPackage2
I've done like this:</p>

<pre><code>import org.otherexample.package2.ActivityFromPackage2
..........
Intent intent = new Intent(this,ActivityFromPackage2.class);
startActivity(intent);
</code></pre>

<p>I receive following error:</p>

<pre><code>Unable to start Activity com.example.package1/org.otherexample.package2.ActivityFromPackage2:
JavaLang nullpointer exception
</code></pre>

<p>How to call the Activity?
Thanks a lot.</p>
