NullPointer exception when switching from one class to another using Intent on android phone
<p>My application works perfectly on emulator without any errors but when I run it on android real device/phone  then it stops unexpectedly! The logcat errors are: <code>java.lang.NullPointerException</code>. The code at which this application fails ,or in other words the code at which it runs correct on emulator but not working on real phone is:</p>

<pre><code> Intent intent = new Intent(FacebookActivity.this, GoogleMapActivity.class);
 startActivity(intent);
</code></pre>

<p>I just cant understand the problem please help.please help.</p>
