embed MapView into Activity
<p>I am trying to embed MapView into FrameLayout of an activity for example ,</p>

<p><strong>UserActivity</strong> layout</p>

<pre><code> &lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"&gt;
&lt;FrameLayout android:id="@+id/map_frame" android:layout_gravity="center_horizontal" android:padding="0.0dip" android:clipChildren="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip"&gt;  
       &lt;ImageView android:id="@+id/map_img" android:layout_gravity="center" android:layout_width="294.0dip" android:layout_height="136.0dip" android:src="@drawable/place_map_frame" /&gt;
&lt;/FrameLayout&gt;    
&lt;/LinearLayout&gt;
</code></pre>

<p>Here , inside FrameLayout i want to display MapView when ever the list item gets clicked
for some reason its not possible to directly put inside framelayout so just because of that i created another activity which extends MapActivity</p>

<pre><code>&lt;com.google.android.maps.MapView 
android:layout_gravity="center" 
android:id="@+id/mapview" 
android:clickable="true" 
android:layout_width="294.0dip" 
android:layout_height="136.0dip" 
android:layout_centerInParent="true" 
android:apiKey="@string/google_maps_key" /&gt;
</code></pre>

<p><strong>UserMap</strong> layout</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"&gt;
    &lt;com.google.android.maps.MapView android:layout_gravity="center" android:id="@+id/mapview" android:clickable="true" android:layout_width="294.0dip" android:layout_height="136.0dip" android:layout_centerInParent="true" android:apiKey="@string/google_maps_key" /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<blockquote>
  <p>Here is the code for both the activities</p>
</blockquote>

<pre><code>import com.google.android.maps.MapActivity;

import android.app.Activity;
import android.os.Bundle;

public class UserMap extends MapActivity {


    @Override 
    public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
          setContentView(R.layout.user_map);


    }
    @Override
    protected boolean isRouteDisplayed() {
        // TODO Auto-generated method stub
        return false;
    }

}



import android.app.Activity;
import android.os.Bundle;
import android.widget.FrameLayout;
import android.widget.ImageView;

public class UserActivity extends Activity {


    @Override 
    public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);

         setContentView(R.layout.user_activity);                          
    }

}
</code></pre>

<p>Now , i want to embed a UserMap into UserActivity's FrameLayout and UserActivity will be called when a list item get clicked.</p>
