Im using google Maps API V2. In this application im attempting to get the users current location and view it on the map aswell as show the address i.e. street, city, country etc in the textView. So ass the app starts it shows your current location on the map and street address in the textView. Unfortunaly the application just crashes at the moment. Does anybody have an idea of how to resolve this, i will be extremely grateful.

public class MainActivity extends Activity {

// Google Map

public GoogleMap googleMap;

private TextView textView;

private LocationManager locationManager;

private String bestProvider;

private Location location;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_main);

try {

// Loading map

initilizeMap();

// Changing map type

googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);

// googleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);

// googleMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);

// Showing / hiding your current location

googleMap.setMyLocationEnabled(true);

// Enable / Disable zooming controls

googleMap.getUiSettings().setZoomControlsEnabled(true);

// Enable / Disable my location button

googleMap.getUiSettings().setMyLocationButtonEnabled(true);

// Enable / Disable Compass icon

googleMap.getUiSettings().setCompassEnabled(true);

// Enable / Disable Rotate gesture

googleMap.getUiSettings().setRotateGesturesEnabled(true);

// Enable / Disable zooming functionality

googleMap.getUiSettings().setZoomGesturesEnabled(true);

} catch (Exception e) {

e.printStackTrace();

}

}

/**

* function to load map If map is not created it will create it for you

* */

private void initilizeMap() {

if (googleMap == null) {

googleMap = ((MapFragment) getFragmentManager().findFragmentById(

R.id.map)).getMap();

// check if map is created successfully or not

if (googleMap == null) {

Toast.makeText(getApplicationContext(),

"Sorry! unable to create maps", Toast.LENGTH_SHORT)

.show();}

}

}

public void onMyLocationChange(Location location) {

//Get current location

LatLng position = new LatLng(location.getLatitude(), location.getLongitude());