'The application WhereAmI (com.paad.whereami) has stopped unexpectedly' Error
<p>When I run the code shown below, this alert is display in the emulator:</p>

<blockquote>
  <p>(Sorry! The application WhereAmI (com.paad.whereami) has stopped unexpectedly. Please try again. [Force Close]) </p>
</blockquote>

<p>If anyone know about this problem, please help me.</p>

<pre><code>        LocationManager locationManager;
        locationManager=(LocationManager)getSystemService(Context.LOCATION_SERVICE);
        Location location=locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);

        updateWithNewLocation(location);
    }
    private void updateWithNewLocation(Location location)
    {
        TextView myLocationText=(TextView)findViewById(R.id.myLocationText);
        String latLongString;
        if(location!=null)
        {

            double lat=location.getLatitude();
            double lng=location.getLongitude();
            latLongString="Lat:"+lat+"\nLong:"+lng;
        }else{
            latLongString="No location found";
        }
        myLocationText.setText("Your current position is:\n"+latLongString);
    }
}
</code></pre>
