Unable to view map on the android emulator
<p>i am unable to view maps on the emulator. I am under proxy internet connection, I also set the proxy via GUI and also have set api Key alongwith the perimissions and library.</p>

<p>here's my code:</p>

<pre><code>package com.example.MyMapActivity;
import org.apache.http.HttpHost;
import org.apache.http.conn.params.ConnRoutePNames;
import org.apache.http.impl.client.DefaultHttpClient;
import android.os.Bundle;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapController;
import com.google.android.maps.MapView;

public class MyMapActivity extends MapActivity {

private MapView mapview;
private MapController mapcontroller;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    DefaultHttpClient client = new DefaultHttpClient();

    String proxyHost = android.net.Proxy.getHost(this);
    if (proxyHost !=null) {
      int proxyPort = android.net.Proxy.getPort(this);

      HttpHost proxy = new HttpHost("*********", ***);

      client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
    }
    //mapview = (MapView)findViewById(R.id.mapview);
}

@Override
protected boolean isRouteDisplayed() {
    // TODO Auto-generated method stub
    // this method must return true if your app returns driving directions , else return false
    return false;
}
</code></pre>

<p>}</p>

<p><strong>The Layout file</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
&gt;
&lt;com.google.android.maps.MapView 
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
 android:apiKey="***********"&gt;     &lt;/com.google.android.maps.MapView&gt;
</code></pre>

<p></p>

<p><strong>The mainfest file</strong></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.example.MyMapActivity"
  android:versionCode="1"
  android:versionName="1.0"&gt;
&lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
    &lt;uses-library android:name="com.google.android.maps"&gt;&lt;/uses-library&gt;
    &lt;activity android:name=".MyMapActivity"
              android:label="@string/app_name"&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;/application&gt;
&lt;uses-sdk android:minSdkVersion="7" /&gt;

&lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt; 
&lt;uses-permission android:name ="android.permission.ACCESS_COARSE_LOCATION"/&gt;
</code></pre>

<p> </p>
