Switch from Android Activity to MapActivity
<p>I am developing an Android app, in which I have to move to MapActivity on Button click event.
But the app is crashing while switching from Activity to MapActivity.</p>

<p>can anyone help me on this?</p>

<p>Thanks in advance.</p>

<p>Here is my code,</p>

<pre><code>public class PopupActivity extends Activity implements GPSCallback
{
    .......
     public void display_map(String str)
     {
         Intent showMap_intent = new Intent(this,DisplayGoogleMaps.class);
         PopupActivity.this.startActivity(showMap_intent);
     }

}
</code></pre>

<p>This is my map Activity class</p>

<pre><code> public class DisplayGoogleMaps extends MapActivity 
{
    MapView mapView;

    /** Called when the activity is first created. */

    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.map);
    }
}
</code></pre>

<p>And This is my Manifest.xml</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.xxxx"
    android:versionCode="1"
    android:versionName="1.0" &gt;



    &lt;uses-permission android:name="android.permission.INTERNET" /&gt; 
    &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
    &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;    

    &lt;application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" &gt;

        &lt;uses-library android:name="com.google.android.maps" /&gt;

        &lt;activity
            android:label="@string/app_name"
            android:name=".PopupActivity" &gt;
            &lt;intent-filter &gt;
                &lt;action android:name="android.intent.action.MAIN" /&gt;

                &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
            &lt;/intent-filter&gt;
        &lt;/activity&gt;

        &lt;activity
             android:label="@string/app_name"
             android:name=".DisplayGoogleMaps" &gt;
        &lt;/activity&gt;
    &lt;/application&gt;

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

<p>there is nothing in error log while crashing!</p>
