Couldn't get connection factory client Error while running
<p>I am using following coding for running Google map:</p>

<pre><code>public class MapOverlayDemo extends Activity implements OnClickListener {
static Context context;
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
 // Get application context for later use
    context = getApplicationContext();

    // Add ClickListener for the button
    View firstButton = findViewById(R.id.mapshow_button);
    firstButton.setOnClickListener(this);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
}

@Override
public void onClick(View v) {
    // TODO Auto-generated method stub
     double lat = 35.955;
     double lon = -83.9265;
     switch(v.getId()){
         case R.id.mapshow_button:      
             Intent i = new Intent(this, ShowTheMap.class);
             ShowTheMap.putLatLong(lat, lon);
             startActivity(i);
             break;     
     }  
}

public static void showToast(String text){
    Toast.makeText(context, text, Toast.LENGTH_LONG).show();
}
</code></pre>

<p>And for showing map, I have code as follows:</p>

<pre><code>public class ShowTheMap extends MapActivity {

private static double lat;
private static double lon;
private int latE6;
private int lonE6;
private MapController mapControl;
private GeoPoint gp;
private MapView mapView;

private Button overlayButton, accessButton;

public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);  // Suppress title bar for more space
    setContentView(R.layout.showthemap);


    // Add map controller with zoom controls
    mapView = (MapView) findViewById(R.id.mv);
    mapView.setSatellite(false);
    mapView.setTraffic(false);
    mapView.setBuiltInZoomControls(true);   // Set android:clickable=true in main.xml

    int maxZoom = mapView.getMaxZoomLevel();
    int initZoom = maxZoom-2;

    mapControl = mapView.getController();
    mapControl.setZoom(initZoom);
    // Convert lat/long in degrees into integers in microdegrees
    latE6 =  (int) (lat*1e6);
    lonE6 = (int) (lon*1e6);
    gp = new GeoPoint(latE6, lonE6);
    mapControl.animateTo(gp);    

    // Button to control food overlay
    overlayButton = (Button)findViewById(R.id.doOverlay);
    overlayButton.setOnClickListener(new View.OnClickListener(){      
        public void onClick(View v) {   

        }
    });

    // Button to control access overlay
    accessButton = (Button)findViewById(R.id.doAccess);
    accessButton.setOnClickListener(new View.OnClickListener(){      
        public void onClick(View v) {   

        }
    });

}

// Method to insert latitude and longitude in degrees
public static void putLatLong(double latitude, double longitude){
    lat = latitude;
    lon =longitude;
}

// This sets the s key on the phone to toggle between satellite and map view
// and the t key to toggle between traffic and no traffic view (traffic view
// relevant only in urban areas where it is reported).

public boolean onKeyDown(int keyCode, KeyEvent e){
    if(keyCode == KeyEvent.KEYCODE_S){
        mapView.setSatellite(!mapView.isSatellite());
        return true;
    } else if(keyCode == KeyEvent.KEYCODE_T){
        mapView.setTraffic(!mapView.isTraffic());
        mapControl.animateTo(gp);  // To ensure change displays immediately
    }

        return(super.onKeyDown(keyCode, e));
}

// Required method since class extends MapActivity
@Override
protected boolean isRouteDisplayed() {
        return false;  // Don't display a route
}
</code></pre>

<p>Please help how could I remove this error.My app is showing no map with this error "Couldn't get connection factory client".</p>
